RTC alarm set s32k144 MATLAB simulink MBDT example

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

RTC alarm set s32k144 MATLAB simulink MBDT example

453件の閲覧回数
Haris_raghav_G
Contributor I

I am using MATLAB Simulink example for RTC Alarm for S32K144 , The RTC Get time and RTC Alarm set is used int it to set RTC alarm ISR when ever I want to set ISR more than 25 sec from RTC get time but the ISR is not triggered , The ISR is triggered for all values from 1-25 sec from the RTC get time but not more than the 25sec. What is the cause of this , explain the process behind it and how to over this and implement to kick RTC alarm after for higher time interval.

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

445件の閲覧回数
helen628young
Contributor I

Hello,

 

If you can access low-level registers or custom driver code (via S32 SDK or S32 Design Studio), then:

Read current RTC time from RTC_TSR.

Set RTC_TAR = RTC_TSR + desired_offset_in_seconds.

Ensure RTC_IER has the alarm interrupt enabled.

Make sure your RTC module clock is properly set.

Check boundary conditions if RTC_TAR overflows a minute or hour — handle it gracefully.

 

Best Regard,

Helen

 

0 件の賞賛
返信