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 one independent counter block.
- Support for three compare blocks for generating events.
- Support for easy enabling/disabling of events.
- one Capture function, for the 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 one counter block
- Support for enabling and configuring three 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
- NTU input to FRC0
- Although two counter blocks and four compare blocks are present in the device, counter block 0 and compare block 0 are reserved for FreeRTOS ticks, hence not configurable via SysConfig.
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