cancel
Showing results for 
Search instead for 
Did you mean: 

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

ryang
Associate

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.

3 REPLIES 3

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

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

Read out and check the RTC registers content.

JW