MC9RS08KA and MTIM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC9RS08KA and MTIM

2,047件の閲覧回数
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,440件の閲覧回数
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,440件の閲覧回数
Mickey
Contributor III

RS08 Peripheral MTIM does not support interrupt.

0 件の賞賛
返信

1,440件の閲覧回数
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,440件の閲覧回数
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 件の賞賛
返信