rtc interrupts and details about rtc

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
prbh_3338016
Level 4
Level 4
10 likes given 5 likes given First like received

Hello ,

I need to use rtc component for event driven logic. I am able to run the component and getting proper results on lcd. I am not able to use rtc pre-defined interrupts function like sec,hour etc..

I just placed the desired code to be executed inside inside static void rtc_EverySecondHandler(void); this funtion but nothing happens.

My question is how to make use of these funtions and use rtc capability for time based event handling.Please help as i am stuck from 2 days.

My another  question is this rtc component hardware or software componet?

0 Likes
1 Solution
prbh_3338016
Level 4
Level 4
10 likes given 5 likes given First like received

problem solved. for first question.

first question answer ...one has to masked the interrupt bits in main code. before starting rtc_Start();

/* Set interval mask - handling of interrupt stubs of the rtc component */

    rtc_WriteIntervalMask(rtc_INTERVAL_SEC_MASK  | rtc_INTERVAL_MIN_MASK   |

                          rtc_INTERVAL_HOUR_MASK | rtc_INTERVAL_DAY_MASK   |

                          rtc_INTERVAL_WEEK_MASK | rtc_INTERVAL_MONTH_MASK |

                          rtc_INTERVAL_YEAR_MASK);

Second question still remains please answer someone

View solution in original post

0 Likes
1 Reply
prbh_3338016
Level 4
Level 4
10 likes given 5 likes given First like received

problem solved. for first question.

first question answer ...one has to masked the interrupt bits in main code. before starting rtc_Start();

/* Set interval mask - handling of interrupt stubs of the rtc component */

    rtc_WriteIntervalMask(rtc_INTERVAL_SEC_MASK  | rtc_INTERVAL_MIN_MASK   |

                          rtc_INTERVAL_HOUR_MASK | rtc_INTERVAL_DAY_MASK   |

                          rtc_INTERVAL_WEEK_MASK | rtc_INTERVAL_MONTH_MASK |

                          rtc_INTERVAL_YEAR_MASK);

Second question still remains please answer someone

0 Likes