Skip to main content
ryang
Associate
September 20, 2019
Question

why STM32F401RCT6's RTC HT value can't be zero when over 24:00

  • September 20, 2019
  • 2 replies
  • 851 views

I find the RTC's HT's Value exceeds 24,when i use a stm32f401 mcu's RTC module to upload sensor data to geteway.I'm very confusing.

My project is made by stm32cubemx,and using the newest HAL library.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
September 20, 2019

This happens if you set the RTC to 12-hour (AM/PM) mode (RTC_CR.FMT = 1) and set hour to 13 or higher.

JW

ryang
ryangAuthor
Associate
September 23, 2019

I set the hour to 13 in fact,but don't set the RTC to 12-hour mode.I'll change the hour value to 10 and check again tomorrow.

Rui

0690X00000ARUvwQAH.png

waclawek.jan
Super User
September 23, 2019

Read out and check the RTC registers content.

JW