9
FN1547.8
October 29, 2007
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 VDD and as
long as it is either plus or minus a threshold (about 1V) from
VDD a power-sense failure will not be indicated. With an AC
signal present, remaining in this VDD 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 VDD window, and the less likely a power failure will be
detected. A 60Hz, 10VP-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
VDD
REAL-TIME CLOCK
CDP68HC68T1
STATUS REGISTER
INT
CPU
CDP68HC05C16B
VDD
0V
I
VSYS
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