MC9RS08KA and MTIM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC9RS08KA and MTIM

1,923 次查看
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

标签 (1)
0 项奖励
回复
4 回复数

1,316 次查看
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 项奖励
回复

1,316 次查看
Mickey
Contributor III

RS08 Peripheral MTIM does not support interrupt.

0 项奖励
回复

1,316 次查看
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 项奖励
回复

1,316 次查看
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 项奖励
回复