RX - 8581 SA / JE / NB

3) AF (Alarm Flag) bit

When this flag bit value is already set to "0", occurrence of an alarm interrupt event changes it to "1". When this flag bit value is "1", its value is retained until a "0" is written to it.

AF

Data

Description

 

0

The AF bit is cleared to zero to prepare for the next status detection

Write

Clearing this bit to zero enables /INT low output to be canceled (/INT remains Hi-Z) when an alarm

 

interrupt event has occurred.

 

 

 

 

1

This bit is invalid after a "1" has been written to it.

 

 

 

 

0

Alarm interrupt events are not detected.

Read

 

 

1

Alarm interrupt events are detected.

 

 

(Result is retained until this bit is cleared to zero.)

 

 

 

 

 

4) AIE (Alarm Interrupt Enable) bit

When an alarm interrupt event occurs (when the AF bit value changes from "0" to "1"), this bit's value specifies whether an interrupt signal is generated (/INT status changes from Hi-Z to low) or is not generated (/INT status remains Hi-Z).

AIE

Data

Description

 

 

1) When an alarm interrupt event occurs, an interrupt signal is not

 

 

generated or is canceled (/INT status remains Hi-Z).

 

0

2) When an alarm interrupt event occurs, the interrupt signal is canceled

 

(/INT status changes from low to Hi-Z).

 

 

Write/Read

 

Even when the AIE bit value is "0" another interrupt event may change the /INT status to low

 

(or may hold /INT = "L").

 

 

When an alarm interrupt event occurs, an interrupt signal is generated (/INT

 

1

status changes from Hi-Z to low).

 

When an alarm interrupt event occurs, low-level output from the /INT pin occurs only when the

 

 

AIE bit value is "1". This value is retained (not automatically cleared) until the AF bit is cleared

 

 

to zero.

 

 

 

8.5.2.Examples of alarm settings1)Example of alarm settings when "Day" has been specified (and WADA bit = "0")
Day is specified

 

 

 

 

Reg – A

 

 

 

 

Reg - 9

Reg - 8

bit

bit

bit

bit

bit

bit

bit

bit

HOUR

MIN

 

WADA bit = "0"

7

6

 

5

4

3

2

1

 

0

AE

S F TW T M S

Alarm

Alarm

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Monday through Friday, at 7:00 AM

0

0

 

1

1

1

1

1

 

0

07 h80 h FF h
Minute value is ignored

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Every Saturday and Sunday, for 30 minutes

0 1

0

0

0

0

0

1

80 h FF h

30 h
each hour Hour value is ignored

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Every day, at 6:59 AM

0

1

 

1

1

1

1

1

 

1

18 h59 h

1

Χ

 

Χ

Χ

Χ

Χ

Χ

 

Χ

 

 

 

 

 

Χ: Don't care2)Example of alarm settings when "Day" has been specified (and WADA bit = "1")

Day is specified

 

 

 

 

Reg - A

 

 

 

Reg - 9

Reg - 8

bit

bit

bit

bit

bit

bit

bit

bit

HOUR

MIN

 

WADA bit = "1"

7

6

 

5

4

3

2

1

0

AE

 

20 10

08 04 02 01

Alarm

Alarm

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

First of each month, at 7:00 AM

0

0

 

0

0

0

0

0

1

07 h

80 h FF h

Minute value is ignored

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15th of each month, for 30 minutes each

0 0

0

1

0

1

0

1

80 h FF h

30 h

hour Hour value is ignored

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Every day, at 6:59 PM

1

Χ

 

Χ

Χ

Χ

Χ

Χ

Χ

18 h

59 h

Χ : Don't care

Page - 20

MQ372-02