cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

user_3716231
New Contributor II

hi,

i have a technical question about RTC component in CY8CKIT-059.2020 is the leap year and i set time to 2019/12/31,23:59:55.when it runs to 2020/1/1,0:0:0,the bit RTC_STATUS_LY which is contained in status register will go high when the current year is a leap year,but when i set time to 2020/2/28,23:59:55 and let it run,not only the bit RTC_STATUS_LY won't go high but also the date isn't 2020/2/29.

sean

0 Likes
1 Solution
Yugandhar
Moderator
Moderator

Hello Sean,

The project which you sent was not opening at my end. I checked one of the PSoC Creator example project(RtcDesign) with time set value 2020/2/28,23:59:55 and after five seconds the date was changing to 2020/2/29 with Leap year status to high as shown in attached image.

Please check the "RtcDesign" code example in the PSoC Creator for more information.

Thanks,

P Yugandhar.

View solution in original post

0 Likes
3 Replies
Yugandhar
Moderator
Moderator

Hello Sean,

Can you please share your project ?

Thanks,

P Yugandhar.

0 Likes
user_3716231
New Contributor II

here it is.

0 Likes
Yugandhar
Moderator
Moderator

Hello Sean,

The project which you sent was not opening at my end. I checked one of the PSoC Creator example project(RtcDesign) with time set value 2020/2/28,23:59:55 and after five seconds the date was changing to 2020/2/29 with Leap year status to high as shown in attached image.

Please check the "RtcDesign" code example in the PSoC Creator for more information.

Thanks,

P Yugandhar.

View solution in original post

0 Likes