mpeters,
Do you also happen to have PIT timer sample code? I've been able to configure the timer, but haven't been able to get it to produce an interrupt on the M5211DEMO board using CW 6.4.
In my mcf5xxx_vectors.s I have at the top:
.extern IRQ_PIT0
...nothing else changed until...
vector055: .long IRQ_PIT0
In main.c I have:
void IRQ_PIT0( void )
{
printf( "IRQ_PIT0\r\n" );
}
And, interestingly, if I don't make a call to it in main, IRQ_PIT0 is never linked as a defined symbol, as shown in the produced map file.
So, I put a call to it at the top of main, found it my linker map, but still no interrupt.
MCF_PIT0_PCSR = 0x023B;
MCF_PIT0_PMR = 0x0040;
...is my current PIT0 configuration. Perhaps I've got things improperly configured?
Is there some other method of configuring interrupt handlers that I haven't yet figured out? I've only had about 3 hours with this board.
Take Care.
Rob!