UNIT RTC

SKU:U126

Description

UNIT RTC is a programmable real-time clock module, integrated HYM8563 low-power CMOS real-time clock/calendar chip, using I2C communication interface, full-coverage case can effectively protect the circuit, making its operation more stable. Applicable to a variety of embedded devices, instruments and instruments as a system clock.

Role of RTC

Most MCUs are built-in timers, which usually start working automatically when the hardware is powered on, and reset when the hardware is powered off. The built-in timer can handle some simple timing tasks, but if we want to implement data timestamp recording, clock, alarm clock and other time-span functions, a system power-independent clock RTC is the best choice.

Product Features

  • Support second/minute/hour/day/month/year. time data reading and writing
  • 32.768kHz high-precision clock crystal, greatly reducing the time error
  • Low power consumption, coin battery can work continuously for years
  • With century mark
  • I2C communication interface

Includes

  • 1x Unit RTC
  • 1x Coin cell battery (38mAh)
  • 1x HY2.0-4P cable

Applications

  • Clock, alarm clock
  • Power down time synchronization

Specifications

Specifications Parameters
Clock chip HYM8563
Crystal Frequency 32.768kHz
Communication interface I2C, addr: 0x51, bus max speed 400Kbps
Power supply voltage 5V DC
Net weight 4.1g
Gross Weight 8.3g
Product Dimensions 48 * 24 * 8mm
Package Size 136 * 92 * 13mm

Schematic

Example

Arduino

UIFlow Example

  • Clock Example

  • Timer Example

  • Alarm Example

UIFlow

  • Set RTC(year(0 - 99), month, date, weekday(1 - 7), hour, minute, second)
    • weekday
      • 1: Sunday
      • 2: Monday
      • 3: Tuesday
      • 4: Wednesday
      • 5: Thursday
      • 6: Friday
      • 7: Saturday

  • Get RTC
    Get list of RTCData. ex. (22, 7, 23, 6, 13, 0, 0)
    notice: Before UIFlow v1.10.1
    • year(0 - 99)
    • month(1 - 12)
    • date(0 - 31)
    • weekday(1:Sunday - 7:Saturday)
    • hour(0 - 23)
    • minute(0 - 59)
    • second(0 - 59)

  • Get RTC
    Get RTCData.
    notice: After UIFlow v1.10.2
    • year(0 - 99)
    • month(1 - 12)
    • date(0 - 31)
    • weekday(1:Sunday - 7:Saturday)
    • hour(0 - 23)
    • minute(0 - 59)
    • second(0 - 59)

  • Set alarm (date, hour, minute)
    Set the alarm date and time.

  • Check alarm flag
    Returns True at the specified date and time.

  • Turn off alarm
    Turn off alarm and reset alarm flag.

  • Disable alarm

  • Set timer value(count, unit)
    Set timer in minutes or seconds.

  • Get timer value
    Get current timer count.

  • Check timer flag
    Returns True at the specified date and time.

  • Turn off timer
    Reset timer flag. but timer count don't stop.

  • Disable timer. Reset timer flag and count stop .

  • Pause timer.
    Pause timer count.

  • Resume timer.
    Resume after pause is executed.

Video