7
FN1547.9
Decemember 8, 2015
Programmers Model - Clock Registers
NAMEWRITE/READ REGISTERSHEX ADDRESS
TENS 0 TO 5
TENS 0 TO 5
12
HR
24
X
PM/AM
TENS 0 TO 2
DB7
XXXX
TENS 0 TO 3
TENS 0 TO 1
TENS 0 TO 9
UNITS 0 TO 9
UNITS 0 TO 9
UNITS 0 TO 9
UNITS 1 TO 7
UNITS 0 TO 9
UNITS 0 TO 9
UNITS 0 TO 9
76543210
76543210
WRITE ONLY REGISTERS
TENS 0 TO 5
TENS 0 TO 5
UNITS 0 TO 9
UNITS 0 TO 9
UNITS 0 TO 9
PM/AM
TENS 0 TO 2
XX
765 432 1 0
DB0
SECONDS (00 TO 59)
MINUTES (00 TO 59)
DB7, 1 = 12 HR, 0 = 24 HR
DB = 1 PM, 0 = AM
HOURS (01 TO 12 OR 00 TO 23
DATE
DAY OF MONTH
MONTH (01 TO 12) JAN = 1
DEC = 12
YEARS (00 TO 99)
CONTROL
INTERRUPT
ALARM SECONDS (00 TO 59)
ALARM MINUTES (00 TO 59)
ALARM HOURS (01 TO 12 OR 00 TO 23)
PLUS AM/PM IN 12 HR MODE
PM = 1, AM = 0
READ ONLY REGISTERS
STATUS
7654321 0
BIT
HEX ADDRESS 00-1F
20
21
22
23
24
25
26
31
32
28
29
2A
30
RAM DATA BYTE
01 TO 28
29
30
31
NOTE: X = Don’t care writes, X = 0 when read.
X
DAY OF WK (01 TO 07) SUNDAY = 1
D7 D6 D5 D4 D3 D2 D1 D0
CDP68HC68T1
8
FN1547.9
Decemember 8, 2015
Functional Description
The SPI real-time clock consists of a clock/calendar and a
32x8 RAM. Communications is established via the SPI
(Serial Peripheral Interface) bus. In addition to the
clock/calendar data from seconds to years, and system
flexibility provided by the 32-byte RAM, the clock features
computer handshaking with an interrupt output and a
separate squarewave clock output that can be one of seven
different frequencies. An alarm circuit is available that
compares the alarm latches with the seconds, minutes and
hours time counters and activates the interrupt output when
they are equal. The clock is specifically designed to aid in
power-down/power-up applications and offers several pins
to aid the designer of battery backup systems.
Mode Select
The voltage level that is present at the V
SYS
input pin at the
end of power-on-reset selects the device to be in the single
supply or battery backup mode.
Single-Supply Mode
If V
SYS
is a logic high when power-on-reset is completed, CLK
OUT, PSE and CPUR
will be enabled and the device will be
completely operational. CPUR
will be placed low if the logic
level at the V
SYS
pin goes low. If the output signals CLK OUT,
PSE and CPUR
are disabled due to a power-down instruction,
V
SYS
brought to a logic low and then to a logic high will re-
enable these outputs. An example of the single-supply mode is
where only one supply is available and V
DD
, V
BATT
and V
SYS
are tied together to the supply.
Battery Backup Mode
If V
SYS
is a logic low at the end of power-on-reset, CLK
OUT, PSE and CPUR
will be disabled (CLK OUT, PSE and
CPUR
low). This condition will be held until V
SYS
rises to a
threshold (about 1.0V) above V
BATT
. The outputs CLK OUT,
PSE and CPUR
will then be enabled and the device will be
operational. If V
SYS
falls below a threshold above V
BATT
the
outputs CLK OUT, PSE and CPUR
will be disabled. An
example of battery backup operation occurs if V
SYS
is tied to
V
DD
and V
DD
is not connected to a supply when a battery is
connected to the V
BATT
pin. (See "Functional Description",
V
BATT
for Battery Backup Operation on page 11.)
Clock/Calendar (See Figures 1 and 2)
The clock/calendar portion of this device consists of a long
string of counters that is toggled by a 1Hz input. The 1Hz
input is generated by a prescaler driven by an on-board
oscillator that utilizes one of four possible external crystals or
that can be driven by an external clock source. The 1Hz
trigger to the counters can also be supplied by a 50Hz or
60Hz input source that is connected to the LINE input pin.
The time counters offer seconds, minutes and hours data in
12 hour or 24 hour format. An AM/PM indicator is available
that once set, toggles every 12 hours. The calendar counters
consist of day (day of week), date (day of month), month and
years information. Data in the counters is in BCD format. The
hours counter utilizes BCD for hour data plus bits for 12/24 hour
and AM/PM. The seven time counters are accessed serially at
addresses 20H through 26H. See Table 1.
RAM
The real-time clock also has a static 32x8 RAM that is located
at addresses 00-1FH. Transmitting the address/control word
with Bit 5 low selects RAM access. Bits 0 through 4 select the
RAM location.
Alarm
The alarm is set by accessing the three alarm latches and
loading the required data. The alarm latches consist of
seconds, minutes and hours registers. When their outputs
equal the values in the seconds, minutes and hours time
counters, an interrupt is generated. The interrupt output will go
low if the alarm bit in the Interrupt Control Register is set high.
The alarm interrupt bit in the Status Register is set when the
interrupt occurs (see "Functional Description", INT
Pin on
page 10). To preclude a false interrupt when loading the time
counters, the alarm interrupt bit should be set low in the
Interrupt Control Register. This procedure is not required when
the alarm time is set.
Watchdog Function (See Figure 6)
When Bit 7 in the Interrupt Control Register is set high, the
Clock’s CE (chip enable) pin must be toggled at a regular
interval without a serial data transfer. If the CE is not toggled,
the clock will supply a CPU reset pulse and Bit 6 in the Status
Register will be set. Typical service and reset times are listed in
Table 2.
Clock Out
The value in the three least significant bits of the Clock Control
Register selects one of seven possible output frequencies.
(See “Clock Control Register” on page 11). This squarewave
signal is available at the CLK OUT pin. When power-down
operation is initiated, the output is set low.
Control Registers and Status Registers
The operation of the Real-Time Clock is controlled by the Clock
Control and Interrupt Control Registers. Both registers are
Read-Write Registers. Another register, the Status Register, is
available to indicate the operating conditions. The Status
Register is a Read only Register.
Power Control
Power control is composed of two operations, Power Sense
and Power-Down/Power-Up. Two pins are involved in power
sensing, the LINE input pin and the INT
output pin. Two
additional pins are utilized during power-down/power-up
operation. They are the PSE (Power Supply Enable) output
pin and V
SYS
input pin.
TABLE 2.
50Hz 60Hz XTAL
MIN MAX MIN MAX MIN MAX
Service Time - 10ms - 8.3ms - 7.8ms
Reset Time 20 40ms 16.7 33.3ms 15.6 31.3ms
CDP68HC68T1
9
FN1547.9
Decemember 8, 2015
Power Sensing (See Figure 3)
When Power Sensing is enabled (Bit 5 = 1 in Interrupt
Control Register), AC transitions are sensed at the LINE input
pin. Threshold detectors determine when transitions cease.
After a delay of 2.68ms to 4.64ms, plus the external input
circuit RC time constant, an interrupt is generated and a bit is
set in the Status Register. This bit can then be sampled to see
if system power has turned back on. See "Functional
Description", Line pin on page 10. The power-sense circuitry
operates by sensing the level of the voltage presented at the
line input pin. This voltage is centered around V
DD
and as
long as it is either plus or minus a threshold (about 1V) from
V
DD
a power-sense failure will not be indicated. With an AC
signal present, remaining in this V
DD
window longer than a
minimum of 2.68ms will activate the power-sense circuit. The
larger the amplitude of the AC signal, the less time it spends
in the V
DD
window, and the less likely a power failure will be
detected. A 60Hz, 10V
P-P
sinewave voltage is an applicable
signal to present at the LINE input pin to setup the power
sense function.
Power-Down (See Figure 4)
Power-down is a processor-directed operation. A bit is set in
the Interrupt Control Register to initiate operation. Three pins
are affected. The PSE (Power Supply Enable) output,
normally high, is placed low. The CLK OUT is placed low.
The CPUR
output, connected to the processors reset input
is also placed low. In addition, the Serial Interface is
disabled.
Power-Up (See Figures 5 and 6)
Two conditions will terminate the Power-Down mode.
1. The first condition (see Figure 5) requires an interrupt.
The interrupt can be generated by the alarm circuit, the
programmable periodic interrupt signal, or the power
sense circuit.
FIGURE 3. POWER-SENSING FUNCTIONAL DIAGRAM
FIGURE 4. POWER-DOWN FUNCTIONAL DIAGRAM FIGURE 5. POWER-UP FUNCTIONAL DIAGRAM (INITIATED
BY INTERRUPT SIGNAL
XTAL IN
XTAL OUT
LINE
V
DD
REAL-TIME CLOCK
CDP68HC68T1
STATUS REGISTER
INT
INT
CPU
CDP68HC05C16B
V
DD
0V
I
V
SYS
INTERRUPT
CONTROL
REGISTER
I
SERIAL
INTERFACE
CLK
OUT
CPUR
REAL-TIME CLOCK
CDP68HC68T1
PSE
OSC
RESET
CPU
CDP68HC05C4B
MISO
MOSI
FROM SYSTEM
POWER
TO SYSTEM
POWER CONTROL
POWER
SENSE
OR
ALARM
CIRCUIT
SERIAL
INTERFACE
PERIODIC
INTERRUPT
SIGNAL
POWER-UP
REAL-TIME CLOCK
CDP68HC68T1
PSE
CPUR
CLK
OUT
INT
MISO
MOSI
CDP68HC68T1

CDP68HC68T1M

Mfr. #:
Manufacturer:
Renesas / Intersil
Description:
Real Time Clock PERIPH SPIAL-TIME- CLK 20W IND
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union