Bit-banged I2C driver and UART configuration tool for DS3231 RTC on CH32 microcontrollers.
| DS3231 | CH32 |
|---|---|
| SDA | PC1 |
| SCL | PC2 |
- Read/set time and date
- Aging offset calibration
- Temperature reading
- Square wave output configuration
- Continuous display mode
make
make flashConnect via serial (115200 baud) and use the menu:
r- Read date/timet- Set time (HH:MM:SS)d- Set date (YYYY-MM-DD)a- Set aging offsetg- Get aging offsete- Temperaturec- Continuous displays- SQW configuration
python set_rtc_time_precise.py /dev/ttyUSB0Syncs RTC to system time with sub-second precision.