Ds1372, C, 32-bit, binary counter clock with 64-bit id, Special purpose registers – Rainbow Electronics DS1372 User Manual

Page 7

Advertising
background image

Control Register (07h)

Bit 7: Enable Oscillator (EOSC). When set to logic 0,
the oscillator is started. When set to logic 1, the oscilla-
tor is stopped. This bit is clear (logic 0) when power is
first applied.
Bit 6: Alarm Counter Enable (ACE). When set to logic
1, the alarm counter is enabled. If alarm counter seed
register has a nonzero value, the counter runs and sets
the AF bit to 1 when the counter reaches 0. When set to
logic 0, the alarm counter is disabled, and the counter
can be used as RAM. This bit is clear (logic 0) when
power is first applied.

Bit 3: Interrupt Control (INTCN). This bit controls the
SQW/INT signal. When the INTCN bit is set to logic 0, a
square wave is output on the SQW/INT pin whose fre-
quency is defined by bits RS2 and RS1, according to
Table 2. The oscillator must also be enabled for the
square wave to be output. When the INTCN bit is set to
logic 1, this permits the AF bit in the Status Register to
assert SQW/INT (provided that ACE and AIE are also
enabled) whenever AF = 1. If ACE = 1, the alarm flag is
always set on an alarm condition, regardless of the
state of the INTCN bit. The INTCN bit is set to logic 1
when power is first applied.

Bits 2 and 1: Rate Select (RS[2:1]). These bits control
the frequency of the square-wave output when the
square wave has been enabled. Table 2 shows the
square-wave frequencies that can be selected with the
RS bits. These bits are both set (logic 1) when power is
first applied.

Bit 0: Alarm Interrupt Enable (AIE). When set to a
logic 1, this bit permits the alarm flag (AF) to assert
SQW/INT (when INTCN = 1). The AIE bit is disabled
(logic 0) when power is first applied.

Table 2. Square-Wave/Interrupt Output

Frequencies

Note: When interrupt operation is enabled, the SQW/INT out-
put is the inverse of the AF bit.

Bit #

7 6 5 4 3 2 1 0

Name

EOSC ACE 0 0 INTCN RS2 RS1 AIE

Reset

0 0 0 0 1 1 1 0

Control Register (07h)

DS1372

_______________________________________________________________________________________

7

Special Purpose Registers

The DS1372 has two additional registers that control
the alarm counter and interrupts: Control Register (07h)
and Status Register (08h).

INTCN

ACE

AIE

RS2

RS1

SQW/

INT

OUTPUT

0 X X 0 0

1Hz

0 X X 0 1 4.096kHz

0 X X 1 0 8.192kHz

0 X X 1 1 32.768kHz

1 1 1 X X Interrupt

I

2

C, 32-Bit, Binary Counter Clock with 64-Bit ID

Advertising