The Real Time Interrupt module provides timer functionality and is used to generate periodic interrupts. The counters also allow you to benchmark certain areas of code by reading their values at the beginning and the end of the desired code range and calculating the difference between the values.
Features Supported
- Support for two independent counter blocks.
- Support for four compare blocks for generating events. They can use any of the two counter blocks.
- Support for fast enabling/disabling of events.
- Two Capture functions, one for each counter block.
- Support to enable/disable continue on debug/emulation suspend. If enabled, the counters countinue to work in debug mode.
SysConfig Features
- Note
- It is strongly recommend to use SysConfig where it is available instead of using direct SW API calls. This will help simplify the SW application and also catch common mistakes early in the development cycle.
- RTI instance name
- Input clock frequency to be used for RTI module
- Enable/Disable Continue on suspend
- Support for enabling and configuring two counter blocks
- Support for enabling and configuring four compare blocks
- Support to attach callback functions to each of the compare events
- Enabling/Disable DMA trigger generation in each compare block
Features NOT Supported
Example Usage
Include the below file to access the APIs
Example usage to start the timer
Example usage to stop the timer
API
APIs for RTI