hi,When count0 is set to 1ms, an interrupt will be generated. Only the first interrupt will be generated, not periodic interrupt will be generated. The interrupt flag of RTI is also cleared
Thanks a lot.
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.
hi,When count0 is set to 1ms, an interrupt will be generated. Only the first interrupt will be generated, not periodic interrupt will be generated. The interrupt flag of RTI is also cleared
Thanks a lot.
Hi Xiaohong,
When count0 is set to 1ms
Do you RTI compare 0 like the selection in the pic below, and compare 0 uses counter0?
Please check your RTI config if both compare 0 value and update compare 0 value are set correctly:
rtiREG1->CMP[0U].COMPx and rtiREG1->CMP[0U].UDCPx
To allow periodic interrupts, a certain value can be added to the compare value in RTICOMPx automatically. This value is stored in the update compare register (RTIUDCPx) and will be added after a compare is matched.
If RTIUDCPx = 0, only 1 interrupt is generated.