Extended control register 4b – Rainbow Electronics DS1687 User Manual
Page 25
DS1685/DS1687
25 of 38
EXTENDED CONTROL REGISTER 4B
MSB
LSB
BIT 7
BIT 6
BIT 5
BIT 4
BIT 3
BIT 2
BIT 1
BIT 0
ABE
E32K
CS
RCE
PRS
RIE
WIE
KSE
ABE – Auxiliary Battery Enable. This bit when written to a logic 1 enables the V
BAUX
pin for extended
functions.
E32K – Enable 32.768kHz output. This bit when written to a logic 1 enables the 32.768kHz oscillator
frequency to be output on the SQW pin.
CS – Crystal Select Bit. When CS is set to a 0, the oscillator is configured for operation with a crystal that
has a 6pF specified load capacitance. When CS = 1, the oscillator is configured for a 12.5pF crystal. CS is
disabled in the DS1687 module and should be set to CS = 0.
RCE – RAM Clear-Enable bit. When set to a 1, this bit enables a low level on
RCLR
to clear all 242
bytes of user RAM. When RCE = 0,
RCLR
and the RAM clear function are disabled.
PRS – PAB Reset-Select Bit. When set to a 0, the PWR pin is set high-Z when the DS1685 goes into
power-fail. When set to a 1, the
PWR
pin remains active upon entering power-fail.
RIE – Ram Clear-Interrupt Enable. When RIE is set to a 1, the
IRQ
pin is driven low when a RAM clear
function is completed.
WIE – Wake-Up Alarm-Interrupt Enable. When V
CC
voltage is absent and WIE is set to a 1, the
PWR
pin is driven active-low when a wake-up condition occurs, causing the WF bit to be set to 1. When V
CC
is
then applied, the
IRQ
pin is also driven low. If WIE is set while system power is applied, both
IRQ
and
PWR
are driven low in response to WF being set to 1. When WIE is cleared to a 0, the WF bit has no
affect on the
PWR
or
IRQ
pins.
KSE – Kickstart Interrupt Enable. When V
CC
voltage is absent and KSE is set to a 1, the
PWR
pin is
driven active-low when a kickstart condition occurs (KS pulsed low), causing the KF bit to be set to 1.
When V
CC
is then applied, the
IRQ
pin is also driven low. If KSE is set to 1 while system power is
applied, both
IRQ
and
PWR
are driven low in response to KF being set to 1. When KSE is cleared to a 0,
the KF bit has no affect on the
PWR
or
IRQ
pins.