I am working on my first Freescale project using CW10. I was able to use the processor expert to set up the GIPO and initialize the MTIM. I could not find any timer callbacks in the processor expert. Is there any other support for MTIM in the PE?
Thanks
Hello,
generation of ISRs into Events.c (Events.h) is handled by "Generate ISRs" property from "Processor Expert Project Options" window. You can for example open this window by using "Properties" menu command from project pop-up menu.
best regards
Vojtech Filip
Processor Expert Support Team
RS08 Peripheral MTIM does not support interrupt.
Hello,
sorry for my previous confusing response. This family does not support an interrupt controller with vector table lookup mechanism. Interrupts within this family can be used only for wake-up MCU from wait or stop mode. For more details please refer to chapter '5.5 Interrupts' of KA8RM.
best regards
Vojtech Filip
Processor Expert Support Team
Hello,
To determine whether MTIM overflow has occurred, you will need to frequently poll within your main program loop. You may test either the appropriate bit within the SIP1 register, or alternatively the flag bit within the MTIMSC register.
It you utilize the MTIM to exit from wait mode, you would need to test the SIP1 register to determine that the MTIM was the source of wakeup.
Regards,
Mac