TS-5620

From embeddedTS Manuals
TS-5620
ts-5620-onboard.gif
Documents
Schematic
Mechanical Drawing

Overview

This option uses an ST Micro M48T86PC1 module for the real-time clock function. This module contains the lithium battery, 32.768 kHz crystal, and a RTC chip with 114 bytes of battery-backed CMOS RAM. It will maintain clock operation for a minimum of 10 years in the absence of power. The 114 bytes of non-volatile RAM, physically located in the RTC chip, are available to the user. The TS-Kernel shipped with the boards includes support for the TS-5620 peripheral board including the TS-72XX series and the TS-5XXX series.

Usage

As the boards implement a kernel driver, you can simply use the hwclock command to communicate with the RTC.

 hwclock -r or hwclock --show
 hwclock -w or hwclock --systohc
 hwclock -s or hwclock --hctosys
 hwclock -a or hwclock --adjust
 hwclock -v or hwclock --version
 hwclock --set --date=newdate
 hwclock --getepoch
 hwclock --setepoch --epoch=year