AM263x MCU+ SDK  08.05.00
RTI

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

  • NTU input to FRC0

Example Usage

Include the below file to access the APIs

#include <drivers/rti.h>

Example usage to start the timer

/* start the rti counter */

Example usage to stop the timer

/* stop the rti counter */

API

APIs for RTI

RTI_TMR_CNT_BLK_INDEX_0
#define RTI_TMR_CNT_BLK_INDEX_0
RTI Timer counter block 0.
Definition: rti/v0/rti.h:91
RTI_counterEnable
int32_t RTI_counterEnable(uint32_t baseAddr, uint32_t cntIndex)
Start the timer.
RTI_counterDisable
int32_t RTI_counterDisable(uint32_t baseAddr, uint32_t cntIndex)
Stop the timer.
rti.h