Before learning about the RTC real-time clock, let’s first understand Unix timestamps. Unix timestamp Unix Timestamp is defined as the number of seconds that have elapsed since 0:00:00 on January 1, 1970 UTC/GMT, regardless of leap seconds. The timestamp is stored in a seconds counter, which is a 32-bit/64-bit integer variable. The seconds counter is […]
Tag: clock
STM32F103 microcontroller internal RTC real-time clock driver
1. STM32f103 series RTC function The RTC real-time clock function is a commonly used function in embedded software development. Generally, the RTC function of MCU has a year, month, day and time register, such as the STM32F4xx series. The RTC description is as follows: It can be seen that the RTC function of the F4 […]
[STM32] Clock setting function (register version)
1. STM32 clock setting function transplantation 1. Clock module review A question The previous code does not set the clock why it can be used directly. 2. Clock tree 3. Clock tree analysis 1. Internal crystal oscillator (HSI) The internal crystal oscillator is unstable. When we power on, itwill automatically vibrate and generate a clock, […]
[Arduino TFT] Weather clock based on ESP8266 and SSD1306
Forget the past and surpass yourself Blog homepage Microcontroller rookie brother, a wild non-professional hardware IOT enthusiast Creation record of this article 2023-10-21 Update record of this article 2023-10-21 Welcome to follow Like Collection Leave a message This blog is written by the blogger alone and is not operated by any commercial team. If you […]
Html — text clock
Html – text clock Text clock, I have implemented related effects on Android before. I have nothing to do, so I made a web version to play with. . . Upload the code directly: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>Text Clock</title> <style type=”text/css”> html, body {<!– –> margin: 0; padding: 0; background: black; […]
clock_glitch_free_switch
______________________ // | | // ______ _________ _________ _________ | ________ | // sel—————-| ) | | | | | | | | | | // | | & amp; )–|D Q|—-|D Q|—-|D Q|–i–|D Q| | // | i-|______) | | | | | | | | | // | | | CLK | | […]
The STM32F1 microcontroller uses the HAL library and the LL library to jointly develop the RTC real-time clock to solve the problem of the 24-hour date remaining unchanged in standby mode.
Project requirements: Use STM32F103CBT6 microcontroller to jointly develop the RTC real-time clock through HAL library development and LL library. And the entire device is powered by batteries. Considering the size of the product, it does not use an external clock chip and a backup clock battery. The RTC clock uses the HSE of the microcontroller. […]
stm32—real-time clock (RTC, BKP, PWR)
Graphic and text overview: Code: MyRTC.c: #include “stm32f10x.h” // Device header #include <time.h> /* Set the initial date and time structure displayed */ struct tm MainTime = {57, 59, 23, 9, 10, 2023}; //Seconds, minutes, hours, days, months (offset -1), years (counted from 1970, with offset) void MyRTC_SetTime(void); /** * @brief MyRTC_Init—Initialize RTC * @param […]
Change the DS1302 clock based on the 51 microcontroller sending time through the serial port
Article summary **This code function uses LCD1602 to display time based on DS1302 clock. Change the value in the DS1302 register through the serial port to change the clock display. Data is sent through the serial port of the 51 microcontroller AT89C52, and the data is input to the DS1302 clock chip in the microcontroller […]
Simple sound and light time clock based on microcontroller
1. Main functions This design displays hours, minutes and seconds on a digital tube. The circuit includes: keyboard, microcontroller and display circuit. Description of each part: (1) The keyboard is used to correct and adjust the time displayed on the digital tube. (2) The microcontroller drives and controls the normal operation of each part by […]