MC9RS08KA and MTIM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9RS08KA and MTIM

1,090 Views
barbercolman
Contributor III

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

Labels (1)
0 Kudos
4 Replies

483 Views
ProcessorExpert
Senior Contributor III

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

0 Kudos

483 Views
Mickey
Contributor III

RS08 Peripheral MTIM does not support interrupt.

0 Kudos

483 Views
ProcessorExpert
Senior Contributor III

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

0 Kudos

483 Views
bigmac
Specialist III

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

 

0 Kudos