User guide
CIF Peripheral Model - SimpleTimer
114 CoMET Version 5.9 – Tutorial
CODE ENDS
At this point it is appropriate to perform another build. See Building the Project, page 101.
1. Click on the build button to do a build of your device, if all of the code has been added
correctly the device should build with no errors or warnings. NOTE: depending on
where you placed your callback and helper functions you may need to create function
prototypes for the callback and helper functions.
Adding the SimpleTimer Device to the Virtual Platform
The SimpleTimer device is now complete. We can now add an instance of the device to our
Virtual Platform. The steps involved are:
Create the SimpleTimer1 instance of the SimpleTimer in the Virtual Platform
Create the additional IrqNet required to connect the SimpleTimer to the VPM
Add and modify Instance Port Connections as required
Set the SimpleTimer base address by modifying the associated SimpleTimer1 Parameter
Override in the Prototype Configuration (.pcx) file
The block diagram below shows the SimpleTimer instance in the SimpleVsp.