Skip to content

timdoug/ds3231_ch32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DS3231 RTC Driver for CH32

Bit-banged I2C driver and UART configuration tool for DS3231 RTC on CH32 microcontrollers.

Wiring

DS3231 CH32
SDA PC1
SCL PC2

Features

  • Read/set time and date
  • Aging offset calibration
  • Temperature reading
  • Square wave output configuration
  • Continuous display mode

Build

make
make flash

Usage

Connect via serial (115200 baud) and use the menu:

  • r - Read date/time
  • t - Set time (HH:MM:SS)
  • d - Set date (YYYY-MM-DD)
  • a - Set aging offset
  • g - Get aging offset
  • e - Temperature
  • c - Continuous display
  • s - SQW configuration

Python Helper

python set_rtc_time_precise.py /dev/ttyUSB0

Syncs RTC to system time with sub-second precision.

About

UART configuration tool for DS3231 RTC on CH32 microcontrollers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors