PSOC4 RTC

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

cross mob
NiGa_4328111
Level 1
Level 1
First like given

HI,

I am using PSOC4 (CY8C4247LQI-BL483), i am using internal rtc, RTC_SetDateAndTime(dateTime[0],dateTime[1]); RTC_GetDateAndTime(&dateTimeStruct), with 12 hours format

The time is updating but the am and pm does not update (eg it won't switch from 11:59AM to 12:00PM, the rtc will update to 12:00PM). Hence the date and the month is not incrementing/ changing.

Need some help with the same.

Cheers

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I dug my old RTC Alarm Project for CY8CKIT-044

and removed Alarm function

and set starting time to 2019/06/28 11:59:50 AM.

I used RTC_GetAmPm() to decide if it's AM or PM.

The serial output log was

000-TeraTerm-log.JPG

The good news is that Yes, we get  "PM",

but the bad news is PM comes after 2 seconds ! (I wonder why?)

Anyway, just for your information 😉

moto

View solution in original post

1 Reply
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I dug my old RTC Alarm Project for CY8CKIT-044

and removed Alarm function

and set starting time to 2019/06/28 11:59:50 AM.

I used RTC_GetAmPm() to decide if it's AM or PM.

The serial output log was

000-TeraTerm-log.JPG

The good news is that Yes, we get  "PM",

but the bad news is PM comes after 2 seconds ! (I wonder why?)

Anyway, just for your information 😉

moto