RTC alarm set s32k144 MATLAB simulink MBDT example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTC alarm set s32k144 MATLAB simulink MBDT example

365 Views
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.

Labels (1)
0 Kudos
Reply
1 Reply

357 Views
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 Kudos
Reply