Hi ronco.
I have a similar problem Kirilian has.
I need to operate dual timer using Decrementer and FIT.
I used to two timer handlers independently using 20ms-timeout Decrementer and 5ms(about)-timeout FIT as if MPC5554 Cook book shows.
However, I’ll use complex dual timer.
For instance, at the start time, I only initialize the Decrementer(20ms-timeout).
Once taking Decrementer exception, FIT(5ms-timeout) is set in the Decrementer Interrupt handler.
Then, after 5ms, It will be occurred FIT exception. In the FIT Interrupt handler, I disable FIT.
With this concept, I made two timer handler toggling each GPIO.
I expected the result like attached jpg image.
but FIT exception timing is very unstable.
That means FIT exception must occur after every 5ms from Decrementer exception.
But it doesn’t work.
Would you check my pseudo code attached txt file?
Please give me your comment~
Thanks a lot.
Message Edited by zozzoo on 2009-12-18 02:33 AM