1 Reply Latest reply on Jun 27, 2019 7:26 AM by MoTa_728816

    PSOC4 RTC

    NiGa_4328111

      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

        • 1. Re: PSOC4 RTC
          MoTa_728816

          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

          1 of 1 people found this helpful