Kinetis RTC and RTC Seconds Interrupt

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

Kinetis RTC and RTC Seconds Interrupt

1,404件の閲覧回数
mjbcswitzerland
Specialist V

Hi All

 

Does any one have experience with the RTC and know for sure whether the RTC seconds interrupt is implemented in the K40 and K60?

 

According to the user's manual "This interrupt is optional and may not be implemented on all devices". The interrupt enable bit is however indicated in the register description so I am not sure...

 

When I tried to use it I didn't get any interrupt on the K40.

 

When I enabled the alarm interrupt I did get an interrupt though. What I did to realise a seconds interrupt was to set the alarm time so that the alarm interrupt would arrive the next time the 1s counter is incremented. On each "seconds" interrupt the next alarm is configured and so this essentially gives a seconds interrupt (although the alarm function can not really be used at the same time for its normally intended application).

 

I can't exclude that I did something wrong when trying to get the seconds interrupt working though - any one manged it or can confirm that it is not implemented?

 

Regards

 

Mark

 

0 件の賞賛
3 返答(返信)

613件の閲覧回数
anthony_huereca
NXP Employee
NXP Employee

Chapter 3 of the Kinetis RM's contain all the chip specific configurations. So on the current K60/K40 parts, the seconds interrupt is not implemented

 

3.8.6.3 RTC_WAKEUP seconds interrupt
The RTC seconds interrupt is not supported on this device.

0 件の賞賛

613件の閲覧回数
mjbcswitzerland
Specialist V

Thanks - now I see better how to work with the manual.

 

Regards

 

Mark

 

0 件の賞賛

613件の閲覧回数
egoodii
Senior Contributor III

The new RTC_IER indicates a Seconds Interrupt Enable -- haven't tried it myself.  Should work on Rev 1.2 Silicon (mask set 1N30D/2N30D).

0 件の賞賛