Skip to content

Seeed-Studio/Grove_High_Precision_RTC_PCF85063TP

Repository files navigation

Grove - High Precision RTC_PCF85063TP Build Status

Grove - High Precision RTC is based on PCD85063TP, it's usage is almost the same with ds1307.

Grove - High Precision RTC

Grove - High Precision RTC based on the clock chip PCF85063TP which is a CMOS Real-Time Clock (RTC) and calendar optimized for low power consumption. An offset register allows fine-tuning of the clock. All addresses and data are transferred serially via the I2C bus and the maximum bus speed is 400 kbit/s.

For more information please visit wiki page.

Methods

  • void startClock(void);
  • void stopClock(void);
  • void setTime(void);
  • void getTime(void);
  • void setcalibration(int mode, float Fmeas);
    • mode 0 - offset is made once every 2 hours
    • mode 1 - offset is made once every 4 minutes
    • Fmeas - real clock frequency you detcet

  • uint8_t readCalibrationReg(void);
    • Read offset register at 0x02

  • uint8_t calibratBySeconds(int mode, float offset_sec);
    • offset_sec - need a long time running RTC and work out the offset by one second
  • void reset();
  • void fillByHMS(uint8_t _hour, uint8_t _minute, uint8_t _second);
  • void fillByYMD(uint16_t _year, uint8_t _month, uint8_t _day);
  • void fillDayOfWeek(uint8_t _dow);

This software is licensed under The MIT License. Check License.txt for more information.

Seeed Studio is an open hardware facilitation company based in Shenzhen, China.
Benefiting from local manufacture power and convenient global logistic system,
we integrate resources to serve new era of innovation. Seeed also works with
global distributors and partners to push open hardware movement.

Analytics