AWC86A Real-Time Clock
The AWC86A version of the Slim-Link® Server
incorporates a Real-Time Clock. The Real-Time Clock
tracks month, date, year, day, hours, minutes and seconds.
Applying a battery voltage to Pin 24 permits the Real-
Time Clock to maintain the time when power is shut down
to the AWC86A.
The Real-Time Clock interfaces to the AM186 controller
through Programmable Input/Output lines 15, 26, and 29.
PIO15 controls the Real-Time Clock Reset. Reset must
be high during serial communications and should be held
low otherwise. PIO26 provides the serial data path to the
Real-Time Clock. PIO29 provides the serial clock which
synchronizes the data exchange with the AM186. Data
sent to the Real-Time Clock is read on the Trailing edge
of the serial clock; data is sent from the Real-Time Clock
on the failing edge of the serial clock. Clock frequency
should be no greater than 2 MHz.
The Real-Time Clock stores Clock/Calendar data in seven
registers. Other registers store control information and
access a thirty byte RAM. Data can be read or written
from the Real-Time Clock one register at a time or
multiple registers may be addressed in a single burst.
Command Byte:
A command byte precedes each data transfer in the Real-
Time Clock. The bit mapping of the 8-bit command byte
is shown below.
Bit 7 - Most Significant Bit, Always 1
Bit 6 - 0 - Clock/Calendar Data
1 - RAM Data
Bits 1-5 - Register Address
Bit 0 - 0 - Write to Real-Time Clock
1 - Read from Real-Time Clock
Clock/Calendar Registers:
Seven registers store the clock and calendar information
for the Real-Time Clock. Each of these registers is
described below.
Seconds: Register Address 00000
This register stores the second count in BCD form. The
Clock Halt Flag is stored in bit seven. When this flag is
set the clock’s oscillator is stopped.
Minutes: Register Address 00001
This register stores the minute count in BCD form.
Hours: Register Address 00010
This register stores the hour count in BCD form. Bit seven
selects whether a 12-hour or 24-hour clock will be used.
A 1 selects a 12-hour clock. When a 12-hour clock is
used bit 5 stores AM/PM status.
Date: Register Address 00011
This register stores the Date in BCD form.
Month: Register Address 00100
This register stores the month in BCD form.
Day: Register Address 00101
This register stores the day in BCD form.
Year: Register Address 00110
This register stores the year in BCD form.
Write Protect Register:
Register address 00111 provides write protection for the
Clock/Calendar Registers. New values cannot be written
into these registers if bit seven of the Write Protect
Register is set.
Trickle Charge Register:
The AWC86A can charge the battery used to backup the
Real-Time Clock. The Trickle Charge Register, address
0100, controls the function. The bit-mapping of this
register is shown below. The remaining bits set the
maximum charging current as shown below.
Bit 0 1 2 3 Max. Charge Current*
0 1 0 1 2.2 milliamps
0 1 1 0 1.1 milliamps
0 1 1 1 0.55 milliamps
1 0 0 1 1.8 milliamps
1 0 1 0 0.9 milliamps
1 0 1 1 0.45 milliamps
* All register settings not shown are invalid.
Clock Burst Register:
The Clock Burst Register, address 01111, allows the seven
Clock/Calendar Registers and the Write Protect Register
to be addressed with a single, continuous data string.
RAM Burst Register:
The RAM Burst Register, address 11111, allows all thirty
of the RAM registers to be addressed with a single,
continuous data string.
Advanced Web Communication
(12)
Slim-Link® Server