rtc interrupt every sec whilst continuing count

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

rtc interrupt every sec whilst continuing count

765件の閲覧回数
avditkohli
Contributor III

Hi,

I wish to program the RTC of MC9S08pa16 to generate an interrupt every second where I compute some data whilst the RTC keeps counting. How do I do that?

 

Thanks,

Avdit

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 返信

419件の閲覧回数
ankur_kala
NXP Employee
NXP Employee

Hi Avdit,

From your description it seems that you need a periodic interrupt of 1 sec using RTC. For this you can use PE ->Init_RTC module, set the clock source as 1-KHz Low Power Oscillator, clock gate -> Enabled, Prescaler -> 100, Modulo Value -> 9. In the interrupts section, you must enable the interrupt and give the name of the ISR that you may define in your application.

Hope this answers your question.

Regards,

Ankur

P.S. - If you see the answer helpful/correct, please mark appropriately.