User guide
CIF Peripheral Model - SimpleTimer
CoMET Version 5.9 – Tutorial 91
The fmx file shows the ports as follows.
Adding Tasks
Tasks handle the initialization, execution flow, and destruction of the module instance. Most
peripheral models have a single task which initializes and then suspends indefinitely. After
initialization, callbacks handle execution.
CoMET automatically creates one task for a new CIF Peripheral Model project.
Adding a PortOrNetView
For task behavioral code to have access to a Port, the port must be associated with the Task
via a PortOrNetView.
When the New Project wizard creates a CIF Peripheral Model, it creates default Ports, a
single Task and a PortOrNetView for each default Port. CoMET has created a
PortOrNetView for the BusClock, Bus and Reset ports. We have to add a PortOrNetView for
each of the remaining Ports.