Hello,
I am working on using the RTI timers to:
1) manually restart the timer upon specific interrupts
Initially, I was able to get the timer to only work once. If I tried again, the timer would not expire. I was reading the forums, and despite what I read here (https://e2e.ti.com/support/microcontrollers/hercules/f/312/p/325643/1134436#1134436
rtiResetCounter(rtiCOUNTER_BLOCK0);
Is this correct?
2) dynamically change the timeout period
I have not been successful in updating the timeout period dynamically. I tried the following to no avail. Please advise:
/** - Setup NTU source, debug options and disable both counter blocks */
rtiREG1->GCTRL = (uint32)((uint32)0x0U << 16U) | 0x00000000U;
/** - Setup compare 0 value. This value is compared with selected free running counter. */
rtiREG1->CMP[0U].COMPx = 10000000U;
/** - Setup update compare 0 value. This value is added to the compare 0 value on each compare match. */
rtiREG1->CMP[0U].UDCPx = 10000000U;
rtiResetCounter(rtiCOUNTER_BLOCK0);
/* Enable RTI compare 0 notification */
rtiEnableNotification(rtiNOTIFICATION_COMPARE0);
/* Start counter */
rtiStartCounter(rtiCOUNTER_BLOCK0);
Thanks.
Ubaid