Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 992 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 992 Bytes

DS1307 Real-time clock (RTC)

Device driver for DS1307 Real-time clock (RTC) based on STM32 HAL Library, What do You need?

  • Any STM32 Nucleo-Board or any STM32 Microcontrollers
  • STM32Cube IDE (HAL Libraries)
  • Any dev-board DS1307 or your custom hardware

How to use:

  • Created new project in your STM32Cube IDE
  • Select your STM32 Microcontroller in my case I used a STM32F103CBTx (Blue Pill board)
  • Select your preferred I2C peripheral in my case I used I2C1
  • If you need to use another I2C peripheral just modify this macro DS1307_HANDLER in the file ds1307.h
  • Include the source files in your project
  • Enjoy!!

How to contribute to the project?

Submit Merge Requests to fix issues or add features to the repo.

Schematic Connection

STM32F103CBT DS1307
PB6 SCL
PB7 SDA

Build Status