RTC DST related problem | Cypress Semiconductor
RTC DST related problem
I'm using the DST option of the RTC component (PSoC5LP CY8C5868AXI-LP035) in this way:
RTC_WriteDSTStartHour(1); // + 1 at 01:00 last Sunday of March
RTC_WriteDSTStartWeek(5); // last week of March
RTC_WriteDSTStopHour(1); // - 1 at 01:00 last Sunday of October
RTC_WriteDSTStopWeek(4); // Last week of October RTC_WriteDSTStopMonth(OCTOBRE);
RTC_WriteDSTOffset(60); // 60-minute delay
RTC_WriteDSTMode(1); // Relative
When I set the date & time for the last Sunday of March, at 01:00 the time is correctly incremented by 60 minutes (01:00 => 02:00).
However when I set it for the last Sunday of October, at 01:00 the time also shift to 02:00. However I expect to read 00:00.
Am I missing something in the DST setup above?