AnsweredAssumed Answered

Newbie question: Programming the PIT in MCF52256

Question asked by PRAKRUTHI RAO on Apr 28, 2009
Latest reply on May 15, 2009 by Abhijit Khadtare

I'm a newbie to uC programming and I have a doubt regarding the PIT.

I'm using the PE to configure the PIT0 for 1ms. For a system frequency of 80MHz, (PIT clock = system frequency/2) I'm using:


Prescaler =4 and Modulus register=10000.


I'm required to generate interrupts at 1ms, 30ms and 300ms. Can I use the same PIT0 function configured for 1ms and change the values of the modulus registers to generate interrupts at 30ms and 300ms?

Can only one interrupt be generated for each PIT channel?


Thanking you in advance for your reply.