This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM57L843: How to calibrate RTI interrupt cycle time

Part Number: RM57L843

Tool/software:

Hi TI team.

When measuring the RTI 1ms interrupt execution cycle, I confirmed that it was executed about 60004 times after 60 seconds.
The measurement cycle was based on external signal input that comes in every 60 seconds.
[Question]
Is it possible to manipulate the register of the RTI module so that the 1ms interrupt occurs exactly 60000 times every 60 seconds?
If possible, I would like to know how.

Best regards.

Gene.

  • RTI module configuration is as follow.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    void rtiInit(void)
    {
    /* USER CODE BEGIN (2) */
    /* USER CODE END */
    /** @b Initialize @b RTI1: */
    /** - Setup NTU source, debug options and disable both counter blocks */
    rtiREG1->GCTRL = (uint32)((uint32)0xAU << 16U) | 0x00000000U;
    /** - Setup timebase for free running counter 0 */
    rtiREG1->TBCTRL = 0x00000000U;
    /** - Enable/Disable capture event sources for both counter blocks */
    rtiREG1->CAPCTRL = 2U | 0U;
    /** - Setup input source compare 0-3 */
    rtiREG1->COMPCTRL = 0x00001000U | 0x00000100U | 0x00000000U | 0x00000000U;
    /** - Reset up counter 0 */
    rtiREG1->CNT[0U].UCx = 0x00000000U;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    1. NTU2 : PLL2 - 330 MHz

    2. RTI1CLK : 110 MHz

    3. Actual Requency : 10 MHz

    Best regrads.

    Gene.

  • Hi Gene,

    Actually, there is no calibration available, i mean we can't do any fine tuning using RTI module.

    All we can do is that we can change the compare value, 

    I mean as we are getting more than required count so just try to reduce the compare value by one and see the result. However, i don't think this will solve the issue because it might make the result value way less than the required, but please test it once.

    --
    Thanks & regards,
    Jagadish.