RTC alarm set s32k144 MATLAB simulink MBDT example

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

RTC alarm set s32k144 MATLAB simulink MBDT example

370 次查看
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 回复

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