Datasheet MC68HC68T1DW, MC68HC68T1P Datasheet (Motorola)

MC68HC68T1MOTOROLA
1
      
CMOS
The MC68HC68T1 HCMOS Clock/RAM p eripheral contains a real–time clock/calendar, a 32 x 8 static RAM, and a synchronous, serial, three–wire interface for communication with a microcontroller or processor. Operating in a burst mode, successive Clock/RAM locations can be read or written using only a single starting a ddress. An on–chip o scillator a llows acceptance o f a selectable crystal frequency or the device can be programmed to accept a 50/60 Hz line input frequency.
The LINE and system voltage (V
SYS
) pins g ive the MC68HC68T1 the capability for sensing power–up/power–down conditions, a capability useful for battery–backup systems. The device has an interrupt output capable of signaling a microcontroller or processor of an alarm, periodic interrupt, or power sense condition. An alarm can be set for comparison with the seconds, minutes, and hours registers. This alarm can be used in conjunction with the power supply enable (PSE) output to initiate a system power–up sequence if the V
SYS
pin is powered to the proper level.
A software power–down sequence can be initiated by setting a bit in the
interrupt control register. This applies a reset to the CPU via the CPUR
pin, sets the clock out (CLKOUT) and PSE pins low, and disables the serial interface. This condition is held until a rising edge is sensed on the V
SYS
input pin, signaling system power coming on, or by activation of a previously enabled interrupt if the V
SYS
pin is powered up.
A watchdog circuit can be enabled that r equires t he microcontroller or processor to toggle the slave select (SS) pin of the MC68HC68T1 periodically without performing a serial transfer. If this condition is not met, the CPUR
line
resets the CPU.
Full Clock Features — Seconds, Minutes, Hours (AM/PM), Day–of–Week,
Date, Month, Year (0 – 99), Auto Leap Year
32–Byte General Purpose RAM
Direct Interface to Motorola SPI and National MICROWIREt Serial Data
Ports
Minimum Timekeeping Voltage: 2.2 V
Burst Mode for Reading/Writing Successive Addresses in Clock/RAM
Selectable Crystal or 50/60 Hz Line Input Frequency
Clock Registers Utilize BCD Data
Buffered Clock Output for Driving CPU Clock, Timer, Colon, or LCD
Backplane
Power–On Reset with First Time–Up Bit
Freeze Circuit Eliminates Software Overhead During a Clock Read
Three Independent Interrupt Modes — Alarm, Periodic, or Power–Down
CPU Reset Output — Provides Orderly Power–Up/Power–Down
Watchdog Circuit
Pin–for–Pin Replacement for CDP68HC68T1
Chip Complexity: 8500 FETs or 2125 Equivalent Gates
Also See Application Notes ANE425 “Use of the MC68HC68T1 RTC with
M6805 Microprocessor”, AN457 “Providing a Real–Time Clock for the MC68302”, and AN1065 “Use of the MC68HC68T1 Real–Time Clock with Multiple Time Bases”
MICROWIRE is a trademark of National Semiconductor Inc.
Order this document
by MC68HC68T1/D

SEMICONDUCTOR TECHNICAL DATA
PIN ASSIGNMENT

P SUFFIX
PLASTIC DIP
CASE 648
DW SUFFIX
SOG PACKAGE
CASE 751G
ORDERING INFORMATION
MC68HC68T1P Plastic DIP MC68HC68T1DW SOG Package
16
1
16
1
13
14
15
16
9
10
11
125
4
3
2
1
8
7
6
V
SYS
V
BATT
XTAL
in
XTAL
out
V
DD
PSE
POR
LINE
SCK
INT
CPUR
CLKOUT
V
SS
SS
MISO
MOSI
Motorola, Inc. 1996
REV 2 2/96
MC68HC68T1 MOTOROLA 2
OSCILLATOR PRESCALE SECOND MINUTE HOUR
DAY/
DATE
MONTH
AM/PM
AND HOUR LOGIC
CALENDAR
LOGIC
50/60 Hz
STOP
/START
PRESCALE
SELECT
CLOCK
SELECT
CLOCK
CONTROL REG
INTERRUPT
CONTROL REG
8–BIT DATA BUS
COMPARATOR
YEAR
SECOND
LATCH
MINUTE
LATCH
HOUR
LATCH
CLOCK
AND
INT
LOGIC
STATUS
REGISTER
POWER
SENSE
CONTROL
SERIAL
INTERFACE
FREEZE CIRCUIT
32 x 8
RAM
PIN 16 = V
DD
PIN 8 = V
SS
XTAL
in
XTAL
out
V
BATT
LINE
CLKOUT
INT
V
SYS
POR
PSE
CPUR
SCK MISO MOSI
SS
12 10
14 15
13
11
1 3
9 2
4 6
5 7
BLOCK DIAGRAM
MC68HC68T1MOTOROLA
3
ABSOLUTE MAXIMUM RATINGS* (Voltages Referenced to V
SS
)
Symbol Parameter Value Unit
V
DD
DC Supply Voltage – 0.5 to + 7.0 V
V
in
DC Input Voltage (except Line Input**) – 0.5 to VDD + 0.5 V
V
out
DC Output Voltage – 0.5 to VDD + 0.5 V
I
in
DC Input Current, per Pin ± 10 mA
I
out
DC Output Current, per Pin ± 10 mA
I
DD
DC Supply Current, VDD and VSS Pins ± 30 mA
P
D
Power Dissipation, per Package*** 500 mW
T
stg
Storage Temperature – 65 to + 150 °C
T
L
Lead Temperature (10–Second Soldering) 260 °C
*Maximum Ratings are those values beyond which damage to the device may occur.
**See Electrical Characteristics Table.
***Power Dissipation Temperature Derating: 12 mW/_C from 65 to 85_C.
ELECTRICAL CHARACTERISTICS (T
A
= – 40 to + 85_C, Voltages Referenced to VSS)
Symbol
Parameter Test Condition
V
DD V
Guaranteed
Limit
Unit
V
DD
Power Supply Voltage Range 3.0 to 6.0 V
V
(stdby)
Minimum Standby (Timekeeping) Voltage* 2.2 V
V
IL
Maximum Low–Level Input Voltage 3.0
4.5
6.0
0.9
1.35
1.8
V
V
IH
Minimum High–Level Input Voltage 3.0
4.5
6.0
2.1
3.15
4.2
V
V
in
Maximum Input Voltage, Line Input Power Sense Mode 5.0 12 V p–p
V
OL
Maximum Low–Level Output Voltage
I
out
= 0 mA
I
out
= 1.6 mA
4.5 0.1
0.4
V
V
OH
Minimum High–Level Output Voltage
I
out
= 0 mA
I
out
= 1.6 mA
4.5 4.4
3.7
V
I
in
Maximum Input Current, Except SS Vin = VDD or V
SS
6.0 ± 1
m
A
I
IL
Maximum Low–Level Input Current, SS Vin = V
SS
6.0 – 1.0
m
A
I
IH
Maximum Pull–Down Current, SS Vin = V
DD
6.0 100
m
A
I
OZ
Maximum Three–State Leakage Current V
out
= VDD or V
SS
6.0 ± 10
m
A
I
DD
Maximum Quiescent Supply Current
Vin = VDD or VSS, All Input; I
out
= 0 mA
6.0 50
m
A
I
DD
Maximum RMS Operating Supply Current
Crystal Operation
I
out
= 0 mA,
f
XTALin = 32 kHz
Vin = VDD or VSS, all
f
XTALin = 1 MHz
inputs except XTALin,
f
XTALin = 2 MHz
Clock Out Disabled,
f
XTALin = 4 MHz
No Serial Access Cycles
5.0 0.1
0.6
0.84
1.2
mA
Maximum RMS Operating Supply Current
External Frequency Source Driving XTALin, XTAL
out
Open
I
out
= 0 mA,
f
XTALin = 32 kHz
Vin = VDD or VSS,
f
XTALin = 1 MHz
Clock Out Disabled,
f
XTALin = 2 MHz
No Serial Access
f
XTALin = 4 MHz
Cycles
5.0 0.024
0.12
0.24
0.5
I
batt
Maximum RMS Standby Current
Crystal Operation
V
BATT
= 3.0 V,
f
XTALin = 32 kHz
V
SYS
= 0.0 V,
f
XTALin = 1 MHz
VDD = 0.0 V,
f
XTALin = 2 MHz
I
out
= 0 mA,
f
XTALin = 4 MHz Vin = Don’t Care, all inputs except XTALin, Clock Out Disabled, No Serial Access Cycles
0.0 25 250 360 600
m
A
*Timekeeping function only, no read/write accesses. Data in the registers and RAM retained.
This device contains circuitry to protect the inputs against damage due to high static voltages or electric fields. However, pre
­cautions must be taken to avoid applications of any voltage higher than maximum rated volt­ages to this high–impedance circuit. For proper operation, Vin and V
out
should be constrained
to the range VSS (Vin or V
out
) VDD.
Unused inputs must always be tied to an
appropriate logic voltage level (e.g., either V
SS
or VDD). Unused outputs must be left open.
MC68HC68T1 MOTOROLA 4
AC ELECTRICAL CHARACTERISTICS (T
A
= – 40 to + 85_C, CL = 200 pF, Input tr = tf = 6 ns, Voltages Referenced to VSS)
Symbol
Parameter
Figure
No.
V
DD V
Guaranteed
Limit
Unit
f
SCK
Maximum Clock Frequency (Refer to SCK tw, below) 1, 2, 3 3.0
4.5
6.0
2.1
2.1
MHz
t
PLH
,
t
PHL
Maximum Propagation Delay, SCK to MISO 2, 3 3.0
4.5
6.0
200 100 100
ns
t
PLZ
,
t
PHZ
Maximum Propagation Delay, SS to MISO 2, 4 3.0
4.5
6.0
200 100 100
ns
t
PZL
,
t
PZH
Maximum Propagation Delay, SCK to MISO 2, 4 3.0
4.5
6.0
200 100 100
ns
t
TLH
,
t
THL
Maximum Output Transition Time, Any Output (Measured Between 70% V
DD
and 20% VDD)
2, 3 3.0
4.5
6.0
200 100 100
ns
C
in
Maximum Input Capacitance 10 pF
TIMING REQUIREMENTS (T
A
= – 40 to + 85_C, Input tr = tf = 6 ns, Voltages Referenced to VSS)
Symbol
Parameter
Figure
No.
V
DD V
Guaranteed
Limit
Unit
t
su
Minimum Setup Time, SS to SCK 1, 2 3.0
4.5
6.0
200 100 100
ns
t
su
Minimum Setup Time, MOSI to SCK 1, 2 3.0
4.5
6.0
200 100 100
ns
t
h
Minimum Hold Time, SCK to SS 1, 2 3.0
4.5
6.0
250 125 125
ns
t
h
Minimum Hold Time, SCK to MOSI 1, 2 3.0
4.5
6.0
200 100 100
ns
t
rec
Minimum Recovery Time, SCK 1, 2 3.0
4.5
6.0
200 200 200
ns
t
w(H)
,
t
w(L
)
Minimum Pulse Width, SCK 1, 2 3.0
4.5
6.0
400 200 200
ns
t
w
Minimum Pulse Width, POR 3.0
4.5
6.0
— 100 100
ns
tr, t
f
Maximum Input Rise and Fall Times (Except XTALin and POR) (Measured Between 70% VDD and 20% VDD)
1, 2 3.0
4.5
6.0
2 2
m
s
MC68HC68T1MOTOROLA
5
MOSI
SCK
SS
t
su
t
w(L)
t
r
t
w(H)
1/f
SCK
t
h
t
rec
t
h
t
su
t
f
A6 A5 A0 D7
O
D6
O
D0
N
NOTE: Measurement points are VIL and VIH unless otherwise noted on the AC Electrical Characteristics table.
— V
DD
— V
SS
— V
DD
— V
SS
— V
DD
— V
SS
D1
N
W/R
Figure 1. Write Cycle
MOSI
SCK
SS
t
su
t
w(L)
t
r
t
w(H)
1/f
SCK
t
h
t
rec
t
h
W/R
A6 A5 A0
D6
O
D0
N
NOTE: Measurement points are VOL, VOH, VIL, and VIH unless otherwise noted on the AC Electrical Characteristics table.
— V
DD
— V
SS
— V
DD
— V
SS
— V
DD
— V
SS
D1
N
D7
O
MISO
t
su
t
f
t
TLH
, t
THL
t
PLZ
, t
PHZ
t
PLH
, t
PHL
tpZL, tp
ZH
HIGH
IMPEDANCE
Figure 2. Read Cycle
DEVICE UNDER
TEST
OUTPUT
TEST POINT
CL*
*Includes all probe and fixture capacitance.
DEVICE UNDER
TEST
OUTPUT
TEST POINT
CL*
*Includes all probe and fixture capacitance.
CONNECT TO VDD WHEN TESTING t
PLZ
AND t
PZL
CONNECT TO VSS WHEN TESTING t
PHZ
AND t
PZH
Figure 3. Test Circuit Figure 4. Test Circuit
MC68HC68T1 MOTOROLA 6
OPERATING CHARACTERISTICS
The real–time clock consists of a clock/calendar and a 32 x 8 RAM (see Figure 5). Communication with the device may be established via a serial peripheral interface (SPI) or MICROWIRE bus. In addition to the clock/calendar data from seconds to years, and systems flexibility provided by the 32–byte RAM, the clock features computer handshaking with an interrupt output and a separate square–wave clock output that can be one of seven different frequencies. An alarm cir­cuit is available that compares the alarm latches with the se­conds, minutes, and hours time counters and activates the interrupt output when they are equal. The clock is specifically designed to aid in power–up/power–down applications and offers several pins to aid the designer of battery–backup sys­tems.
CLOCK/CALENDAR
The clock/calendar portion of this device consists of a long string of counters that is toggled by a 1 Hz input. The 1 Hz input is derived from the on–chip oscillator that utilizes one of four possible external crystals or that can be driven by an ex­ternal frequency source. The 1 Hz trigger to the counters can also be supplied by a 50 or 60 Hz source that is connected to the LINE input pin.
The time counters offer seconds, minutes, and hours data in 12– or 24–hour format. An AM/PM indicator is available that once set, toggles at 12:00 AM and 12:00 PM. The calen­dar counters consist of day of week, date of month, month, and year information. Data in the counters is in BCD format. The hours counter utilizes BCD for hours data plus bits for 12/24 hour and AM/PM modes. The seven time counters are read serially at addresses $20 through $26. The time count­ers are written to at addresses $A0 through $A6. (See Fig­ures 5 and 6 and Table 1.)
32 x 8 GENERAL–PURPOSE RAM
The real–time clock also has a static 32 x 8 RAM. The RAM is read at addresses $00 through $1F and written to at addresses $80 through $9F (see Figure 5).
ALARM
The alarm is set by accessing the three alarm latches and loading the desired data. (See Serial Peripheral Interface.) The alarm latches consist of seconds, minutes, and hours registers. When their outputs equal the values of the se­conds, minutes, and hours time counters, an interrupt is gen­erated. The interrupt output goes low if the alarm bit in the status register is set and the interrupt output is activated after an alarm time is sensed (see Pin Descriptions, INT
Pin). To preclude a false interrupt when loading the time counters, the alarm interrupt bit in the interrupt control register should be reset. This procedure is not required when the alarm time is being loaded.
WATCHDOG FUNCTION
When Watchdog (bit 7) in the interrupt control register is set high, the clock’s slave select pin must be toggled at regu­lar intervals without a serial data transfer. If SS is not toggled at the rate shown in Table 2, the MC68HC68T1 supplies a
CPU reset pulse at Pin 2 and Watchdog (bit 6) in the status register is set (see Figure 7). Typical service and reset times are shown in Table 2.
CLOCK OUT
The value in the three least significant bits of the clock control r egister selects one of seven possible output fre­quencies. (See Clock Control Register.) This square–wave signal is available at the CLKOUT pin. When the power– down operation is initialized, the output is reset low.
CONTROL REGISTER AND STATUS REGISTER
The operation of the real–time clock is controlled by the clock control and interrupt control registers, which are read/ write registers. Another register, the status register, is avail­able to indicate the operating conditions. The status register is a read–only register, and a read operation resets status bits.
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 mode or battery–backup mode.
Single–Supply Mode
If V
SYS
is powered up when power–on reset is completed;
CLKOUT, PSE, and CPUR
are enabled high and the device
is completely operational. CPUR
is asserted low if the volt-
age level at the V
SYS
pin subsequently falls below V
BATT
+
0.7 V. If CLKOUT, PSE, and CPUR
are reset low due to a
power–down instruction, V
SYS
brought low and then pow-
ered high re–enables these outputs.
An example of the single–supply mode is where only one
supply is available and VDD, V
BATT
, and V
SYS
are tied to-
gether to the supply.
Battery–Backup Mode
If V
SYS
is not powered up (V
SYS
= 0 V) at the end of pow-
er–on reset, CLKOUT, PSE, CPUR
, and SS are disabled
(CLKOUT, PSE, and CPUR
low). This condition is held until
V
SYS
rises to a threshold (approximately 0.7 V) above V
BATT
. CLKOUT, PSE, and CPUR are then enabled and the device is operational. If V
SYS
falls below a threshold above V
BATT
, the outputs CLKOUT, PSE, and CPUR
are reset low.
An example of battery–backup operation occurs if V
SYS
is tied to the 5 V supply and is not receiving voltage from a sup­ply. A rechargeable battery is connected to the V
BATT
pin,
causing a POR while V
SYS
= 0 V. The device retains data
and keeps time down to a minimum V
BATT
voltage of 2.2 V.
The power consumption may not settle to the specified lim-
it until main power is cycled once.
POWER CONTROL
Power control is composed of t wo 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, PSE and V
SYS
, are utilized during
power–down/power–up operation.
MC68HC68T1MOTOROLA
7
FREEZE FUNCTION
The freeze function p revents an i ncrement o f the time counters, if any of the registers are being read. Also, alarm operation is delayed if the registers are being read. This causes the clock to lose time with increasing rates of accel­eration.
POWER SENSING
When power sensing is enabled (Power Sense Bit in the interrupt control register), ac/dc transitions are sensed at the LINE input pin. Threshold detectors determine when tran­sitions cease. After a delay of 2.68 to 4.64 ms plus the exter­nal input RC circuit time constant, an interrupt true bit is set high in the status register. This bit can then be sampled to see if system power has turned back on (see Figure 8).
The power–sense circuitry operates by sensing the level of the voltage present at the LINE input pin. This voltage is cen­tered around VDD, and as long as the voltage is either plus or minus a threshold (approximately 0.7 V) from VDD, a power sense failure is not indicated. With an ac signal present, remaining in this VDD window longer than a maximum of
4.64 ms activates the power–sense circuit. The larger the amplitude of the signal, the less likely a power failure would be detected. A 50 or 60 Hz, 10 V p–p sine–wave voltage is an acceptable signal to present at the LINE input pin to set up the power–sense function. When ac power fails, an inter­nal circuit pulls the voltage at the line pin within the detection window.
Power–Down
Power–down is a p rocessor–directed operation. The power–down bit is set in the interrupt control register to initi-
ate power–down operation. During power–down, the power supply enable (PSE) output, normally high, is driven low. The CLKOUT pin is driven low. The CPUR
output, connected to the processor reset input pin, is also driven low. In addition, the serial interface (MOSI and MISO) is disabled (see Fig­ure 9).
Power–Up
There are four methods that can initiate the power–up mode. Two of the methods require an interrupt to the micro­controller or processor by programming the interrupt control register. The interrupts can be generated by the alarm circuit by setting the alarm bit and the appropriate alarm registers. Also, an interrupt can be generated by programming the peri­odic interrupt bits in the interrupt control register. V
SYS
must
be at 5 volts for this operation to occur.
The third method is by initiating the power sense circuit with the power sense bit in the interrupt control register set to sense power loss along with the V
SYS
pin to sense subse­quent power–up condition (see Figure 10). (Reference Fig­ure 19 for application circuit for third method.)
The fourth method that initiates power–up occurs when the
level on the V
SYS
pin rises 0.7 V above the level of the V
BATT
pin, after previously falling to the level of V
BATT
while in the battery–backup mode. An interrupt is not generated when the fourth method is utilized.
While in the single–supply mode, power–up i s initiated
when the V
SYS
pin loses power and then returns high. There is no interrupt generated when using this method (see Fig­ure 11).
MC68HC68T1 MOTOROLA 8
SECONDS
MINUTES
HOURS
DAY OF THE WEEK
DATE OF THE MONTH
MONTH
YEAR NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED
STATUS REGISTER
CLOCK CONTROL REGISTER
INTERRUPT CONTROL REGISTER
$20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $2A $2B $2C $2D $2E $2F $30 $31 $32
$00
$1F $20
$32 $33
$7F $80
$9F $A0
$B2
T H R U
T H R U
T H R U
T H R U
T H R U
WRITE ADDRESSES ONLY
WRITE ADDRESSES ONLY
NOT USED
READ ADDRESSES ONLY
READ ADDRESSES ONLY
32 BYTES GENERAL–PURPOSE USER
32 BYTES GENERAL–PURPOSE USER
RAM
CLOCK/CALENDAR
RAM
HEXADECIMAL
SECONDS
MINUTES
HOURS
DAY OF THE WEEK
DATE OF THE MONTH
MONTH
YEAR
NOT USED
SECONDS ALARM
MINUTES ALARM
HOURS ALARM
NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED
CLOCK CONTROL REGISTER
INTERRUPT CONTROL REGISTER
$A0 $A1 $A2 $A3 $A4 $A5 $A6 $A7 $A8
$A9 $AA $AB $AC $AD $AE $AF
$B0
$B1
$B2
HEXADECIMAL
HEXADECIMAL
CLOCK/CALENDAR
Figure 5. Address Map
MC68HC68T1MOTOROLA
9
$A0
$A1
$A2
$A3
$A4
$A5
$A6
$B1
$B2
TENS 0 – 5
TENS 0 – 5
TENS 0 – 3
TENS 0 – 1
TENS 0 – 9
UNITS 0 – 9
UNITS 0 – 9
UNITS 0 – 9
UNITS 1 – 7
UNITS 0 – 9
UNITS 0 – 9
UNITS 0 – 9
$20
$21
$22
$23
$24
$25
$26
$31
$32
READ WRITE
HEX ADDRESS READ/WRITE REGISTERS
DB7
DB0
12
HR
24
PM/AM
TENS 0 – 2
X
X X X X X
7 6 5 4 3 2 1 0
WRITE–ONLY REGISTERS
READ–ONLY REGISTER
RAM DATA BYTE
$A8
$A9
$AA
N/A
N/A
N/A
N/A$B0
$00 T0 $1F $80 T0 $9F
FUNCTION
SECONDS (00 – 59)
MINUTES (00 – 59)
DB7, 1 = 12 HR, 0 = 24 HR DB5, 1 = PM, 0 = AM HOURS (01 – 12 OR 00 – 23)
DAY OF WEEK (01 – 07) SUNDAY = 1
MONTH (01 – 12) JAN = 1
DATE OF MONTH (01 – 31)
YEAR (00 – 99)
CLOCK CONTROL REGISTER
INTERRUPT CONTROL REGISTER
SECONDS ALARM (00 – 59)
MINUTES ALARM (00 – 59)
HOURS ALARM (01 – 21 OR 00 – 23) DB5, 1 = PM, 0 = AM IN 12 HR MODE
STATUS REGISTER
DATA
7 6 5 4 3 2 1 0
D7 D6 D5 D4 D3 D2 D1 D0
UNITS 0 – 9
UNITS 0 – 9
UNITS 0 – 9
TENS 0 – 5
TENS 0 – 5
PM/AM
TENS 0 – 2
X X
NOTE:
X = Don’t Care for Write X = 0 for Read N/A = Not Applicable
Figure 6. Clock/RAM Registers
7 6 5 4 3 2 1 0
MC68HC68T1 MOTOROLA 10
Table 1. Clock/Calendar and Alarm Data Modes
Address Location
Read Write
Function Decimal Range BCD Data Range BCD Date* Example
$20 $A0 Seconds 0 – 59 00 – 59 21 $21 $A1 Minutes 0 – 59 00 – 59 40 $22 $A2 Hours** (12 Hour Mode) 1 – 12 81 – 92 (AM)
A1 – B2 (PM)
90
Hours (24 Hour Mode) 0 – 23 00 – 23 10 $23 $A3 Day of Week (Sunday = 1) 1 – 7 01 – 07 03 $24 $A4 Date of Month 1 – 31 01 – 31 16 $25 $A5 Month (Jan = 1) 1 – 12 01 – 12 06 $26 $A6 Year 0 – 99 00 – 99 87 N/A $A8 Seconds Alarm 0 – 59 00 – 59 21 N/A $A9 Minutes Alarm 0 – 59 00 – 59 40 N/A $AA Hours Alarm*** (12 Hour Mode) 1 – 12 01 – 12 (AM)
21 – 32 (PM)
10
Hours Alarm (24 Hour Mode) 0 – 23 00 – 23 10
N/A = Not Applicable
*Example: 10:40:21 AM, Tuesday, June 16, 1987.
**Most significant data bit, D7, is “0” for 24–hour mode and “1” for 12–hour mode. Data bit D5 is “1” for PM and “0” for AM in 12–hour mode.
***Data bit D5 is “1” for PM and “0” for AM in 12–hour mode. Data bits D7 and D6 are Don’t Cares.
Table 2. Watchdog Service and Reset Times
50 Hz 60 Hz XTAL
Min Max Min Max Min Max
Service Time 10 ms 8.3 ms 7.8 ms Reset Time 20 ms 40 ms 16.7 ms 33.3 ms 15.6 ms 31.3 ms
NOTE: Reset does not occur immediately after slave select is toggled. Approximately two clock cycles later,
reset initiates.
SERVICE
TIME
SERVICE
TIME
SS
SCK
CPUR
Figure 7. Watchdog Operation Waveforms
MC68HC68T1MOTOROLA
11
V
DD
0 V
V
DD
XTAL
in
XTAL
out
LINE
MSB LSB
1
REAL–TIME CLOCK
MC68HC68T1
INT
V
DD
IRQ
MC68HC05C4
CPU
NOTE: A 60 Hz, 10 V p–p sine–wave voltage is an acceptable signal to present at the LINE input pin.
Figure 8. Power Sensing Functional Diagram
(STATUS REGISTER)
INTERRUPT
CONTROL
REGISTER
MSB LSB
1
REAL–TIME CLOCK
MC68HC68T1
V
DD
RESET
MC68HC05C4
CPU
OSC 1
CPUR
SERIAL
INTERFACE
CLKOUT
PSE
MISO MOSI
TO SYSTEM
POWER CONTROL
Figure 9. Software Power–Down Functional Diagram
V
SYS
V
BATT
MC68HC68T1 MOTOROLA 12
MOSI
REAL–TIME CLOCK
MC68HC68T1
SERIAL
INTERFACE
CPUR
PSE
POWER
SENSE
CIRCUIT
PERIODIC
INTERRUPT
SIGNAL
ALARM
CIRCUIT
POWER–UP
CLKOUT
MISO
INT
NOTE: The V
SYS
pin must be powered up.
INTERNAL
INTERRUPT
SIGNAL
Figure 10. Power–Up Functional Diagram (Initiated by Internal Interrupt Signal Generation)
MOSI
REAL–TIME CLOCK
MC68HC68T1
SERIAL
INTERFACE
CPUR
PSE
CLKOUT
MISO
V
SYS
V
BATT
BACKUP SWITCH
POWER SWITCH/ MODE CONTROL
V
BATT
V
DD
Figure 11. Power–Up Functional Diagram (Initiated by a Rise in Voltage on the V
SYS
Pin)
MC68HC68T1MOTOROLA
13
PIN DESCRIPTIONS
CLKOUT Clock Output (Pin 1)
This signal is the buffered clock output which can provide one of the seven selectable frequencies (or this output can be reset low). The contents of the three least significant bit positions in the clock control register determine the output frequency (50% duty cycle, except 2 Hz in the 50 Hz time– base mode). During power–down operation (Power–Down bit in the interrupt control register set high), the CLKOUT pin is reset low.
CPUR CPU Reset (Pin 2)
This pin provides an N channel, open–drain output and requires an external pullup resistor. This active low output can be used to drive the reset pin of a microprocessor to per­mit orderly power–up/power–down. The CPUR
output is low from 15 to 40 ms when the watchdog function detects a CPU failure (see Table 2). The low level time is determined by the input frequency source selected as the time standard. CPUR is reset low when power–down is initiated.
INT Interrupt (Pin 3)
This active–low output is driven from a single N channel transistor and must be tied to an external pullup resistor. Interrupt is activated to a low level when any one of the fol­lowing takes place:
1. Power sense operation is selected (Power Sense Bit in the interrupt control register is set high) and a power failure occurs.
2. A previously set alarm time occurs. The alarm bit in the status register and the interrupt signal are delayed
30.5 ms when 32 kHz or 1 MHz operation is selected,
15.3 ms for 2 MHz operation, and 7.6 ms for 4 MHz operation.
3. A previously selected periodic interrupt signal activates.
The status register must be read to reset the interrupt out­put after the selected periodic interval occurs. This is also true when conditions 1 and 2 activate the interrupt. If power– down has been previously selected, the interrupt also sets the power–up function only if power is supplied to the V
SYS
pin to the proper threshold level above V
BATT
.
SCK Serial Clock (Pin 4)
This serial clock input is used to shift data into and out of the on–chip interface logic. SCK retains its previous state if the line driving it goes into a high–impedance state. In other words, if the source driving SCK goes to the high–impedance state, the previous low or high level is retained by on–chip control circuitry.
MOSI Master Out Slave In (Pin 5)
The serial data present at this port is latched into the inter­face logic by SCK if the logic is enabled. Data is shifted in,
either on the rising or falling edges of SCK, with the most sig­nificant bit (MSB) first.
In Motorola’s microcomputers with SPI, the state of the CPOL bit determines which is the active edge of SCK. If SCK is high when SS goes high, the state of the CPOL bit is high. Likewise, if a rising edge of SS occurs while SCK is low (see Figure 13), then the CPOL bit in the microcomputer is low.
MOSI retains its previous state if the line driving it goes into high–impedance state. In other words, if the source driving MOSI goes to the high–impedance state, the pre­vious low or high level is retained by on–chip control circuitry.
MISO Master In Slave Out (Pin 6)
The serial data present at this port is shifted out of the interface logic by SCK if the logic is enabled. Data is shifted out, either on the rising or falling edge of SCK, with the most significant bit (MSB) first. The state of the CPOL bit in the microcomputer determines which is the active edge of SCK (see Figure 13).
SS Slave Select (Pin 7)
When high, the slave select input activates the interface logic; otherwise the logic is in a reset state and the MISO pin is in the high–impedance state. The watchdog circuit is toggled at t his pin. SS has an i nternal pulldown d evice. Therefore, if SS is in a low state before going to high imped­ance, SS can be left in a high–impedance state. That is, if the source driving SS goes to the high–impedance state, the previous low level is retained by on–chip control circuitry.
V
SS
Ground (Pin 8)
This pin is connected to ground.
PSE Power Supply Enable (Pin 9)
The power supply enable output is used to control system power and is enabled high under any one of the following conditions:
1. V
SYS
rises above the V
BATT
voltage after V
SYS
is
reset low by a system failure.
2. An interrupt occurs (if the V
SYS
pin is powered up 0.7 V
above V
BATT
).
3. A power–on reset occurs (if the V
SYS
pin is powered up
0.7 V above V
BATT
).
PSE is reset low by writing a high into the power–down bit of the interrupt control register.
POR Power–On Reset (Pin 10)
This active–low Schmitt–trigger input generates an inter­nal power–on reset signal using an external RC network (see Figures 18 through 21). Both control registers and frequency dividers for the oscillator and line inputs are reset. The status register is reset except for the first time–up bit (bit 4), which is set high. At the end of the power–on reset, single–supply or battery–backup mode is selected at this time, determined by the state of V
SYS
.
This pin may be more aptly named first–time–up reset.
MC68HC68T1 MOTOROLA 14
LINE Line Sense (Pin 11)
The LINE sense input can be used to drive one of two functions. The first function utilizes the input signal as the fre­quency source for the timekeeping counters. This function is selected by setting the line/XTAL
bit high in the clock control register. The second function enables the LINE input to de­tect a power failure. Threshold detectors operating above and below VDD sense an ac voltage loss. The Power Sense bit in the interrupt control register must be set high, and crystal or external clock source operation is required. The line/XTAL
bit in the clock control register must be low to select crystal operation. When Power Sense is enabled, this pin, left unconnected, floats to VDD.
This output has no ESD protection diode tied to VDD which allows this pin’s voltage to rise above VDD. Care must be taken in the handling of this device.
V
SYS
System Voltage (Pin 12)
This input is connected to system voltage. The level on this pin initiates power–up if it rises 0.7 V above the level at the V
BATT
input pin after previously falling below 0.7 V below
V
BATT
. When power–up is initiated, the PSE pin returns high
and the CLKOUT pin is enabled. The CPUR
output pin is
also set high. Conversely , if the level of the V
SYS
pin falls be-
low V
BATT
+ 0.7 V, the PSE, CLKOUT, and CPUR
pins are placed low. The voltage level present at this pin at the end of POR
determines the device’s operating mode.
V
BATT
Battery Voltage (Pin 13)
This pin is the
only
oscillator power source and should be
connected to the positive terminal of the battery . The V
BATT
pin always supplies power to the MC68HC68T1, even when the device is not in the battery–backup mode. To maintain timekeeping, the V
BATT
pin must be at least 2.2 V . When the
level on the V
SYS
pin falls below V
BATT
+ 0.7 V, V
BATT
is
internally connected to the VDD pin.
When the LINE input is used as the frequency source,
the unused V
BATT
and XTAL pins m ay be tied to VSS.
Alternatively, if V
BATT
is connected to VDD, XTALin can be
tied to either VSS or VDD.
This output has no ESD protection diode tied to VDD which allows this pin’s voltage to rise above VDD. Care must be taken in the handling of this device.
XTALin, XTAL
out
Crystal Input/Output (Pins 14, 15)
For crystal operation, these two pins are connected to a
32.768 kHz, 1.048576 MHz, 2.097152 MHz, or 4.194304 MHz crystal. If crystal operation is not desired and Line Sense is used as frequency source, connect XTALin to VDD or V
SS
(caution: see V
BATT
pin description) and leave XTA
out
open. If an external clock is used, connect the external clock to XTALin and leave XTAL
out
open. The external clock must swing from at least 30 to 70% of (VDD – VSS). Preferably, this input should swing from VSS to VDD.
V
DD
Positive Power Supply (Pin 16)
For full functionality, the positive power supply pin may range from 3.0 to 6.0 V with respect to VSS. T o maintain time­keeping, the minimum standby voltage is 2.2 V with respect to VSS. For proper operation in b attery–backup mode, a diode must be placed in series with VDD.
CAUTION
Data transfer to/from the MC68HC68T1 must not be attempted if the supply voltage falls below
3.0 V.
REGISTERS
CLOCK CONTROL REGISTER (READ/WRITE) — READ ADDRESS $31/WRITE ADDRESS $B1
CLK OUT
0
CLK OUT
2
50 Hz
60 Hz
XTAL
SELECT
1
LINE
XTAL
CLK OUT
1
XTAL
SELECT
0
MSB
D7
LSB
D0
D1D2D3D4D5D6
All bits are reset low by a power–on reset.
START
STOP
Start–Stop
A high written into this bit enables the counter stages of clock circuitry. A low holds all bits reset in the divider chain from 32 Hz to 1 Hz. The clock out signal selected by bits D0, D1, and D2 is not affected by the stop function except the 1 and 2 Hz outputs.
Line/ XTAL
When this bit is high, clock operation uses the 50 or 60 cycle input present at the LINE input pin. When the bit is low, the XTALin pin is the source of the time update.
XTAL Select
Accommodation of one of four possible crystals are se­lected by the value in bits D4 and D5.
0 = 4.194304 MHz 2 = 1.048576 MHz 1 = 2.097152 MHz 3 = 32.768 kHz
The MC68HC68T1 has an on–chip 150 kW resistor that is switched in series with the internal inverter when 32 kHz is selected via the clock control register. At power–up, the de­vice sets up for a 4 MHz oscillator and the series resistor is not part of the oscillator circuit. Until this resistor is switched in, oscillations may be unstable with the 32 kHz crystal. (See Figure 12.)
XTAL
in
XTAL
out
REAL–TIME CLOCK
MC68HC68T1
5 – 30 pF
C1
R2
R1
10 – 40 pF
C2
Figure 12. Recommended Oscillator Circuit
(C1, C2 Values Depend Upon the Crystal Frequency)
MC68HC68T1MOTOROLA
15
Resistor R1 i s recommended to be 10 M for 32 kHz operation. Consult crystal manufacturer for R1 value for oth­er frequencies. Resistor R2 must be used in 32 kHz opera­tion only. Use a 200 to 300 k range. This stabilizes the oscillator until the control register is set properly and reduces standby current.
50 Hz – 60 Hz
50 Hz may be used as the input frequency at the LINE in­put when this bit is set high; a low accommodates 60 Hz. The power sense bit in the interrupt control register must be reset low for line frequency operation.
Clock Out
Three bits specify one of the seven frequencies to be used as the square–wave clock output (CLKOUT).
0 = XTAL 4 = Disable (low output) 1 = XTAL/2 5 = 1 Hz 2 = XTAL/4 6 = 2 Hz 3 = XTAL/8 7 = 50/60 Hz for LINE operation
7 = 64 Hz for XTAL operation
All bits in the clock control register are reset by a power–on reset. Therefore, XTAL is selected as the clock output at this time.
INTERRUPT CONTROL REGISTER (READ/WRITE) — READ ADDRESS $32/WRITE ADDRESS $B2
PERIODIC SELECT
POWER
SENSE
POWER–
DOWN
ALARM
All bits are reset low by power–on reset.
WATCH–
DOG
MSB
D7
LSB
D0
D1D2D3D4D5D6
Watchdog
When this bit is set high, the watchdog operation is en­abled. This function requires the CPU to toggle the SS pin periodically without a serial transfer requirement. In the event this does not occur, a CPU reset is issued at the CPUR
pin. The status register m ust be read before re–enabling the watchdog function.
Power–Down
A high in this location initiates a power–down. A CPU reset
occurs via the CPUR
output, the CLKOUT and PSE output
pins are reset low, and the serial interface is disabled.
Power Sense
When set high, this bit is used to enable the LINE input pin to sense a power failure. When power sense is selected, the input to the 50/60 Hz prescaler is disconnected; therefore, crystal operation is required. An interrupt is generated when a power failure is sensed and the power sense and interrupt true bit in the status register are set. When power sense is activated, a logic low must be written to this location followed by a high to re–enable power sense.
Alarm
The output of the alarm comparator is enabled when this bit is set high. When an equal comparison occurs between the seconds, minutes, and hours time counters and alarm latches, the interrupt output is activated. When loading the time counters, this bit should be reset low to avoid a false in­terrupt. This is not required when loading the alarm latches. See INT
pin description for explanation of alarm delay.
Periodic Select
The value in these four bits (D0, D1, D2, and D3) selects the frequency of the periodic output (see Table 3).
Table 3. Periodic Interrupt Output Frequencies
(at INT
Pin)
D3 – D0
Frequency Timebase
Value (Hex)
Periodic Interrupt
Output Frequency
XTAL Line
0 Disable 1 2048 Hz X 2 1024 Hz X 3 512 Hz X 4 256 Hz X 5 128 Hz X 6 64 Hz X
50 or 60 Hz X 7 32 Hz X 8 16 Hz X 9 8 Hz X
A 4 Hz X B 2 Hz X X C 1 Hz X X D 1 Cycle per Minute X X E 1 Cycle per Hour X X F 1 Cycle per Day X X
STATUS REGISTER (READ ONLY) — ADDRESS $30
POWER
SENSE
INT
ALARM
INT
WATCH–
DOG
MSB
D7
LSB
D0
D1D2D3D4D5D6
CLOCK
INT
INTER-
RUPT TRUE
FIRST TIME–
UP
00
NOTE
All bits are reset low by a power–on reset except the first time–up bit which is set high. All bits ex­cept the power sense bit are reset after a read of the status register.
Watchdog
If this bit is set high, the watchdog circuit has detected a
CPU failure.
First Time–Up
Power–on reset sets this bit high. This signifies the data in
the RAM and Clock is not valid and should be initialized.
MC68HC68T1 MOTOROLA 16
After the status register is read, the first time–up bit is set low if the POR
pin is high. Conversely, if the POR pin is held low,
the first time–up bit remains set high.
Interrupt True
A high in this bit signifies that one of the three interrupts
(power sense, alarm, or clock) is valid.
Power–Sense Interrupt
This bit set high signifies that the power–sense circuit has generated an interrupt. This bit is not reset after a read of this register.
Alarm Interrupt
When the contents of the seconds, minutes, a nd hours time counters and alarm latches are equal, this bit is set high. The status register must be read before loading the interrupt control register for valid alarm indication after the alarm acti­vates.
Clock Interrupt
A periodic interrupt sets this bit high (see Table 3).
SERIAL PERIPHERAL INTERFACE (SPI)
The serial peripheral i nterface ( SPI) utilized by the MC68HC68T1 is a serial synchronous bus for address and data transfers. The shift clock (SCK), which is generated by the microcomputer, is active only during address and data transfer. In systems using the MC68HC05C4 or MC68HC11A8, the inactive clock polarity is determined by the clock polarity (CPOL) bit in the microcomputer’s control register.
A unique feature of the MC68HC68T1 is that the level of the inactive clock is determined by sampling SCK when SS
becomes active. Therefore, either SCK polarity is accom­modated. Input data (MOSI) is latched internally on the inter­nal strobe edge and output data (MISO) is shifted out on the shift edge (see Table 4 and Figure 13). There is one clock for each bit transferred. Address as well as data bits are trans­ferred in groups of eight.
Table 4. Function Table
Signal
Mode
SS SCK MOSI MISO
Disabled
Reset
L Input
Disabled
Input
Disabled
High–Z
Write H
CPOL = 0
CPOL = 1
Data Bit
Latch
High–Z
Read H
CPOL = 0
CPOL = 1
X Next Data
Bit Shifted
Out*
*MISO remains at a High–Z until eight bits of data are ready to be
shifted out during a read. MISO remains at a High–Z during the entire write cycle.
ADDRESS AND DATA FORMAT
There are three types of serial transfers:
1. Read or write address
2. Read or write data
3. Watchdog reset (actually a non–transfer)
The address and data bytes are shifted MSB first, into the serial data input (MOSI) and out of the serial data output (MISO). Any transfer of data requires the address of the byte to specify a write or read Clock or RAM location, followed by one or more bytes of data. Data is transferred out of MISO for a read operation and into MOSI for a write operation (see Figures 14 and 15).
MC68HC68T1MOTOROLA
17
MOSI
SCK
SS
SCK
SS
CPOL = 0*
CPOL = 1*
MSB
MSB–1
SHIFT
INTERNAL
STROBE
SHIFT
INTERNAL
STROBE
*CPOL is a bit that is set in the microcomputer’s Control Register.
Figure 13. Serial Clock (SCK) as a Function of MCU Clock Polarity (CPOL)
MOSI
A7 A6 A5 A4 A3 A2 A1 A0
LSBMSB
SCK*
SS
*SCK can be either polarity.
Figure 14. Address Byte Transfer Waveforms
MOSI
D7 D6 D5 D4 D3 D2 D1 D0
LSBMSB
SCK*
SS
MISO
D7 D6 D5 D4 D3 D2 D1 D0
LSBMSB
*SCK can be either polarity.
Figure 15. Read/Write Data Transfer Waveforms
MC68HC68T1 MOTOROLA 18
Address Byte
The address byte is always the first byte entered after SS goes true. To transmit a new a ddress, SS m ust first b e brought low and then taken high again.
A7 A6 A5 A4 A3 A2 A1 A0
LSBMSB
A7 — High initiates one or more write cycles.
Low initiates one or more read cycles. A6 — Must be low (zero) for normal operation. A5 — High signifies a clock/calendar location.
Low signifies a RAM location.
A0 – A4 — Remaining address bits (see Figure 5).
Address and Data
Data transfers can occur one byte at a time or in multi–byte burst mode (see Figures 16 and 17). After the MC68HC68T1 is enabled (SS = high), an address byte selects either a read or a write of the Clock/Calendar or RAM. For a single–byte read or write, one byte is transferred to or from the Clock/Cal­endar r egister or RAM location specified by an address. Additional reading or writing requires re–enabling the device and providing a new address byte. If the MC68HC68T1 is not disabled, additional bytes can be read or written in a burst mode. Each read or write cycle causes the Clock/Calendar register or RAM address to automatically increment. Incre­menting continues after each byte transfer until the device is disabled. After incrementing to $1F or $9F, the address wraps to $00 and continues if the RAM is selected. When the Clock/Calendar is selected, the address wraps to $20 after incrementing to $32 to $B2.
MOSI
ADDRESS BYTE DATA BYTE
SCK
SS
MISO
ADDRESS BYTE
MOSI
WRITE
READ
DATA BYTE
Figure 16. Single–Byte Transfer Waveforms
MOSI
ADDRESS BYTE DATA BYTE 0
SCK
SS
MISO
MOSI
WRITE
READ
DATA BYTE 1 DATA BYTE n
ADDRESS BYTE
DATA BYTE 0 DATA BYTE 1 DATA BYTE n
ADDRESS BYTE ADDRESS BYTE + 1 ADDRESS BYTE + n
W/R ADDRESS
Figure 17. Multiple–Byte Transfer Waveforms
MC68HC68T1MOTOROLA
19
APPLICATION CIRCUITS
BRIDGE/
REGULATOR
LOW VOLTAGE
AC LINE
100 k
0.1 mF
40
NOTE 2
NOTE 1
11
13
3 12
2
7 4 5 6
34 33 32 31
NOTE 3
1
2
1016
14
V
DD
39
38
V
DD
V
DD
LINE
V
BATT
INT
V
SYS
CPUR
SS
SCK
MOSI MISO
PORT SCK MOSI MISO
RESET
IRQ
MC68HC68T1 MC68HC05C4
NOTES:
1. Clock circuit driven by line input frequency.
2. Power–on reset circuit included to detect power failure.
3. If an MC68HC11 MCU is used, delete the capacitor at the RESET
pin.
XTAL
in
Figure 18. Power–Always–On System
POR
MC68HC68T1 MOTOROLA 20
BRIDGE/
REGULATOR
AC LINE
MC68HC68T1 MC68HC05C4
V
DD
VDDPOR
V
BATT
LINE
CPUR
RESET
V
SYS
INT
IRQ
CLKOUT
SS MISO MOSI
SCK
OSC 1 PORT (e.g., PC0) MISO MOSI SCK
NOTE 2
NOTE 1
NOTE 3
V
DD
100 k
0.1 mF
13 16
10
40
14
15
11
12
3
2
7 6 5 4
2
1
28 31 32 33
39
1
R
CHARGE
NOTES:
1. The LINE input pin can sense when the switch opens by use of the power sense interrupt. The MC68HC68T1 crystal drives the clock input to the CPU using the CLKOUT pin. On power–down when V
SYS
< V
BATT
+ 0.7 V, V
BATT
powers the clock. A threshold detect activates an on–chip P channel switch, connecting V
BATT
to VDD. V
BATT
always supplies power to the oscillator, keeping voltage frequency variation to a minimum.
2. For 32.768 kHz oscillator, see Figure 12. This configuration, when the MC68HC68T1 supplies the MCU clock, usually requires a 1 to 4 MHz clock.
3. If an MC68HC11 MCU is used, delete the capacitor at the RESET
pin.
Figure 19. Externally–Controlled Power System
POWER–SENSING POWER–DOWN PROCEDURE
A procedure for power–down operation consists of the fol-
lowing:
1. Set power sense operation by writing bit 5 high in the interrupt control register.
2. When an interrupt occurs, the CPU reads the status register to determine the interrupt source.
3. Sensing a power failure, the CPU does the necessary housekeeping to prepare for shutdown.
4. The CPU reads the status register again after several milliseconds to determine validity of power failure.
5. The CPU sets power–down (bit 6) and disables all interrupts i n the interrupt control r egister w hen power–down is verified. This causes the CPU reset and Clock Out pins to be held low and disconnects the serial interface.
6. When power returns and V
SYS
rises above V
BATT
+
0.7 V, power–up is initiated. The CPU reset is released and serial communication is established.
MC68HC68T1MOTOROLA
21
NOTES:
1. See Figure 12 for 32.768 kHz operation. This configuration, where the MC68HC68T1 supplies the MCU clock, usually requires a 1 to 4 MHz crystal.
2. If an MC68HC11 MCU is used, delete the capacitor at the RESET
pin.
BRIDGE/
REGULATOR
AC LINE
MC68HC68T1 MC68HC05C4
V
DD
V
DD
V
BATT
LINE
CPUR
RESET
CLKOUT
INT
SS
SPI
OSC 1
IRQ
PORT SPI
40
13
15
2
3 1
7
1
2
39 28
3
V
DD
POR
XTAL
11
14
V
SYS
PSE
10 16 12
9
8 20
V
SS
V
SS
0.1
m
F
R
CHARGE
100 k
NC
(EPS) ENABLED POWER SUPPLY
NOTE 2
NOTE 1
Figure 20. Rechargeable Battery–Backup System
MC68HC68T1 MOTOROLA 22
CLOCK
BUTTON
ENABLED POWER
MC68HC68T1
IGNITION
V
BATT
POR
XTAL 2 MHz
RESET
OSC 1 IRQ SPI PORT
12
9
2
3
7
3
1
39
2
27
8 20
28
401611
12 V
+ –
0.1
m
F
NOTE 1
V
SYS
V
DD
LINE
PSE
CPUR
CLKOUT
INT SPI
SS
15
14
10
13
NOTE 2
5 V
REG
100 k
W
MC68HC05C4
V
SS
PORT
V
DD
NOTES:
1. The V
SYS
and Line inputs can be used to sense the ignition turning on and off. An external switch is included to activate the system without turning on the ignition. Also, the CMOS CPU is not powered down with the system VDD, but is held in a low power reset mode during power–down. When restoring power, the MC68HC68T1 enables the CLKOUT pin and sets the PSE and CPUR
pins high.
2. If an MC68HC11 MCU is used, delete the capacitor at the RESET
pin.
3. Voltage at pin must not exceed absolute maximum Vin specification.
V
SS
1
Figure 21. Automotive System
MC68HC68T1MOTOROLA
23
14
MC68HC68T1
V
BATT
POR
SCK
12
15
1 9
8
16
+
0.1
m
F
V
SYS
V
DD
XTAL
out
CPUR
CLKOUT
PSE
100 k
W
V
SS
XTAL
in
10
SS
INT
MOSI
MISO
LINE
10 pF*
3.0 V
NON–RECHARGEABLE
BATTERY
R
LIMIT
215 kW*
39 pF*
V
CC
1 k
W
D
BLOCK
32.768 kHz
0.1
m
F
0.1
m
F
13
*Actual values may vary, depending on recommendations of crystal manufacturer.
10 M
W
11
6
5 3 7 4
2
Figure 22. Non–Rechargeable Battery–Backup System
MC68HC68T1 MOTOROLA 24
TROUBLESHOOTING
1.
The circuit works, but the standby current is well above the spec. How can the standby current be reduced?
a. If using a 32.768 kHz crystal, include a series resistor
in the circuit per Figure 12 of the data sheet. A good value to start with is 200 kW. The signals at XTAL
out
and XTALin pins should look similar to Figure 23 when the correct value is selected. The sharp, clean edges on the XTAL
out
pin reduces current on the
totem pole drivers internal to the device.
V
BATT
0 V
1 TO 2 V p–p
XTAL
out
XTAL
in
APPROXIMATELY 30.52
m
s
SEE NOTE
NOTE: Refer to item 8.
Figure 23. XTAL Waveforms
b. Connect the LINE pin to something other than V
DD
(e.g., V
BATT
, VSS, V
SYS
)
c. Ensure that the Power–On–Reset (POR) has a time
constant of at least 100 ms.
d. Ensure that there is a diode from VDD to + 5 V of the
system, in battery–backup applications. See Application Circuits.
2.
When power is applied, the clock does not start up nor does it hold data in the control registers.
Make sure the POR circuit is connected and working.
3.
The clock loses time, but the oscillator is tuned.
Do not make constant accesses to the clock. When a read or write cycle is started, the clock stops incrementing time.
4.
When the part is power cycled, the clock loses all time and data.
Check the battery installation and ensure that a diode is in the circuit from VDD to + 5 V.
5.
Can a non–rechargeable lithium battery be used?
Yes, but the battery must have a large capacity. Careful attention MUST be given if the end unit needs to be UL approved. The circuit of Figure 22 is a good start.
6.
Able to read/write data to the RAM but not to the clock reg­isters, or vice versa.
There is a software problem. There is no internal differ­ence from reading/writing to the RAM or clock locations.
7.
How is the oscillator tuned?
The best way to tune the oscillator is to set the clock out bits of the Clock Control Register (bits 0, 1, and 2) to output the primary XT AL frequency (000). The frequency can t hen be m ore accurately m easured from t he CLKOUT pin. This prevents the measuring device from loading the oscillator circuit, which may shift the f re­quency.
8.
What is the accuracy of the oscillator?
The oscillator accuracy is dependent on the quality of the crystal used. For every 1 ppm variance in crystal fre­quency, the clock gains or loses 2.6 seconds per month. 25 ppm is a typical spec for a crystal, which translates to
65 seconds per month.
9.
Can the Line pin sense a dc failure?
Yes, the Line input is threshold triggered in a window from one diode drop above and below VDD. If supply is removed in the low cycle of a sine wave, the internal network pulls the line pin to within the threshold in a few milliseconds. In the absence of a dc voltage outside the VDD ± 0.7 V window, the internal network pulls the signal to within the window and triggers the interrupt.
10.
Can the V
SYS
line be more than 0.5 V above VDD?
No. There is an ESD protection network that causes a supply problem with this application.
11.
The CLKOUT, CPUR, and PSE pins do not go inactive when VDD and V
SYS
are removed. The CLKOUT , CPUR
,
and PSE are not active immediately when VDD and V
SYS
is applied.
The problem i s related to t he power u p procedure (battery–backup mode o r single–supply mode). S ee these sections in the data sheet for more information.
MC68HC68T1MOTOROLA
25
PACKAGE DIMENSIONS
P SUFFIX
PLASTIC DIP (DUAL IN–LINE PACKAGE)
CASE 648–08
MIN MINMAX MAX
MILLIMETERS INCHES
DIM
A B C D
F G H
J K
L M
S
18.80
6.35
3.69
0.39
1.02
0.21
2.80
7.50 0
°
0.51
19.55
6.85
4.44
0.53
1.77
0.38
3.30
7.74 10
°
1.01
0.740
0.250
0.145
0.015
0.040
0.008
0.110
0.295 0
°
0.020
0.770
0.270
0.175
0.021
0.070
0.015
0.130
0.305 10
°
0.040
NOTES:
1. DIMENSIONING AND TOLERANCING PER ANSI Y14.5M, 1982.
2. CONTROLLING DIMENSION: INCH.
3. DIMENSION “L” TO CENTER OF LEADS WHEN FORMED PARALLEL.
4. DIMENSION “B” DOES NOT INCLUDE MOLD FLASH.
5. ROUNDED CORNERS OPTIONAL.
6. 648-01 THRU -07 OBSOLETE, NEW STANDARD 648-08.
2.54 BSC
1.27 BSC
0.100 BSC
0.050 BSC
-A-
B
1 8
916
F
H
G
D
16 PL
S
C
-T-
SEATING PLANE
K
J
M
L
0.25 (0.010) T A
M M
DW SUFFIX
SOG (SMALL OUTLINE GULL–WING) PACKAGE
CASE 751G–01
MIN MINMAX MAX
MILLIMETERS INCHES
DIM
A B C D F G J K M P R
10.15
7.40
2.35
0.35
0.50
0.25
0.10 0
°
10.05
0.25
10.45
7.60
2.65
0.49
0.90
0.32
0.25 7
°
10.55
0.75
0.400
0.292
0.093
0.014
0.020
0.010
0.004 0
°
0.395
0.010
0.411
0.299
0.104
0.019
0.035
0.012
0.009 7
°
0.415
0.029
1.27 BSC 0.050 BSC
NOTES:
1. DIMENSIONING AND TOLERANCING PER ANSI Y14.5M, 1982.
2. CONTROLLING DIMENSION: MILLIMETER.
3. DIMENSION A AND B DO NOT INCLUDE MOLD PROTRUSION.
4. MAXIMUM MOLD PROTRUSION 0.15 (0.006) PER SIDE.
-A-
-B- P
G
1
8
916
-T-
D
16 PL
K
C
SEATING PLANE
M
F
J
R X 45°
8 PL
0.25 (0.010)
B
M M
0.25 (0.010) T B A
M
S S
MC68HC68T1 MOTOROLA 26
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty , representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. “T ypical” parameters can and do vary in different applications. All operating parameters, including “T ypicals” must be validated for each customer application by customer’s technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.
How to reach us: USA/EUROPE: Motorola Literature Distribution; JAPAN: Nippon Motorola Ltd.; Tatsumi–SPD–JLDC, Toshikatsu Otsuki,
P.O. Box 20912; Phoenix, Arizona 85036. 1–800–441–2447 6F Seibu–Butsuryu–Center, 3–14–2 Tatsumi Koto–Ku, Tokyo 135, Japan. 03–3521–8315
MFAX: RMFAX0@email.sps.mot.com – TOUCHTONE (602) 244–6609 HONG KONG: Motorola Semiconductors H.K. Ltd.; 8B Tai Ping Industrial Park, INTERNET: http://Design–NET.com 51 Ting Kok Road, Tai Po, N.T., Hong Kong. 852–26629298
MC68HC68T1/D
*MC68HC68T1/D*
Loading...