18
FN1547.9
Decemember 8, 2015
NOTE: Example of a system in which the power is controlled by an external source. The LINE input pin can sense when the switch opens by use
of the POWER-SENSE INTERRUPT. The CDP68HC68T1 crystal drives the clock input to the CPU using the CLK OUT pin. On power down when
V
SYS
< V
BATT
+ 1.0V. V
BATT
will power the CDP68HC68T1. A threshold detect activates a P-Channel switch, connecting V
BATT
to V
DD
. V
BATT
always supplies power to the oscillator, keeping voltage frequency variation to a minimum.
FIGURE 17. EXTERNALLY CONTROLLED POWER SYSTEM DIAGRAM
A Procedure for Power-Down Operation might consist of the following:
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 in the Interrupt Control Register when power down is verified.
This causes the CPU reset and clock out to be held low and disconnects the serial interface.
6. When power returns and V
SYS
rises above V
BATT
, power-down is terminated. The CPU reset is released and serial
communication is established.
System Diagrams (Continued)
POR
V
DD
V
SYS
LINE
CDP68HC68T1
CE
CPUR
MISO
MOSI
SCK
V
BATT
CLK OUT
INT
V
DD
CDP68HC05C8B
PORT (e.g., PCO)
RESET
MISO
MOSI
SCK
OSC 1
IRQ
BRIDGE
GENERATOR
AC
LINE
V
DD
V
DD
CDP68HC68T1