I am trying to configure LPTMR0 for a 1-second interval. I followed the lptmr example in the SDK examples to configure my timer. The interval at which the interrupt is generated never correct.
Here are the steps I followed:
- Configure the LPTMR0 clock source to 96MHz with a divider of 16. The clock frequency for LPTMR0 is 6MHz.
- After code generation, I set the timer count to 6,000,000 for 1 second interval.
I confirmed that the timer is a 32 bit timer. The timer does work but the interval duration is not 1 second. It is something else.
Did I skip a step in configuring the timer?