beautypg.com

Time of day alarm mask bits figure 3, Command register – Rainbow Electronics DS1386 User Manual

Page 9

background image

DS1386/1386P

9 of 20

TIME OF DAY ALARM MASK BITS Figure 3

REGISTER

(3) MINUTES

(5) HOURS

(7) DAYS

1

1

1

ALARM ONCE PER MINUTE

0

1

1

ALARM WHEN MINUTES MATCH

0

0

1

ALARM WHEN HOURS AND MINUTES
MATCH

0

0

0

ALARM WHEN HOURS, MINUTES AND
DAYS MATCH

NOTE:

Any other bit combinations of mask bit settings produce illogical operation.

COMMAND REGISTER

Address location 0Bh is the Command Register where mask bits, control bits and flag bits reside. The
operation of each bit is as follows:

TE - Bit 7 Transfer Enable-This bit when set to a logic 0 will disable the transfer of data between internal
and external clock registers. The contents in the external clock registers are now frozen and reads or
writes will not be affected with updates. This bit must be set to a logic 1 to allow updates.

IPSW - Bit 6 Interrupt Switch-When set to a logic 1,

INTA

is the Time of Day Alarm and INTB/(

INTB

)

is the Watchdog Alarm. When set to logic 0, this bit reverses the output pins.

INTA

is now the watchdog

alarm output and INTB/(

INTB

) is the time of day alarm output.

IBH/LO - Bit 5 Interrupt B Sink or Source Current-When this bit is set to a logic 1 and V

CC

is applied,

INTB/(

INTB

) will source current (see DC characteristics IOH). When this bit is set to a logic 0, INTB

will sink current (see DC characteristics IOL).

PU/LVL - Bit 4 Interrupt Pulse Mode or Level Mode - This bit determines whether both interrupts will
output a pulse or level signal. When set to a logic 0,

INTA

and INTB/(

INTB

) will be in the level mode.

When this bit is set to a logic 1, the pulse mode is selected and

INTA

will sink current for a minimum of

3 ms and then release. INTB/(

INTB

) will either sink or source current, depending on the condition of

Bit 5, for a minimum of 3 ms and then release. INTB will only source current when there is a voltage
present on V

CC

.

WAM - Bit 3 Watchdog Alarm Mask - When this bit is set to a logic 0, the watchdog interrupt output
will be activated. The activated state is determined by bits 1,4,5, and 6 of the COMMAND REGISTER.
When this bit is set to a logic 1, the watchdog interrupt output is deactivated.

TDM - Bit 2 Time of Day Alarm Mask - When this bit is set to a logic 0, the time of day alarm interrupt
output will be activated. The activated state is determined by bits 0,4,5, and 6 of the COMMAND
REGISTER. When this bit is set to a logic 1, the time of day alarm interrupt output is deactivated.