Other Parts Discussed in Thread: OMAP-L138
Hello,
I want to use a Timer 0, to generate an interrupt at 50 kHz. So I've set the appropriate PRD = ( ( 24 MHz / 50 KHz ) - 1 ), and put a GPIO toggle in the related interrupt that occurs, for that Timer 0, 12, and am checking it on a scope. But it comes out to 45.88 KHz on a scope, hooked up to that GPIO pin. I've confirmed the input AUXCLK used to drive the TIMER 0, 12 counting, as 24 MHz. For that, the PRD should be 479, which it is. So I'm not sure why the interrupt is not occurring at 50 KHz, as it should be, and so any help with trying to figure that out why would be appreciated. Is the 50 KHz interrupt rate too quick, for the processor to keep up? Would the act of toggling the GPIO slow it down enough to result in that?
Regards,
Robert