INTEGRATED CIRCUITS
DATA SHEET
PCF8583
Clock/calendar with 240 × 8-bit RAM
Product specification |
1997 Jul 15 |
Supersedes data of 1997 Mar 28
File under Integrated Circuits, IC12
Philips Semiconductors |
Product specification |
|
|
Clock/calendar with 240 × 8-bit RAM |
PCF8583 |
|
|
|
|
CONTENTS
1FEATURES
2GENERAL DESCRIPTION
3QUICK REFERENCE DATA
4ORDERING INFORMATION
5BLOCK DIAGRAM
6PINNING
7FUNCTIONAL DESCRIPTION
7.1Counter function modes
7.2Alarm function modes
7.3Control/status register
7.4Counter registers
7.5Alarm control register
7.6Alarm registers
7.7Timer
7.8Event counter mode
7.9Interrupt output
7.10Oscillator and divider
7.11Initialization
8 |
CHARACTERISTICS OF THE I2C-BUS |
8.1Bit transfer
8.2Start and stop conditions
8.3System configuration
8.4Acknowledge
9 |
I2C-BUS PROTOCOL |
9.1Addressing
9.2Clock/calendar READ/WRITE cycles
10LIMITING VALUES
11HANDLING
12DC CHARACTERISTICS
13AC CHARACTERISTICS
14APPLICATION INFORMATION
14.1Quartz frequency adjustment
14.1.1Method 1: fixed osci capacitor
14.1.2Method 2: OSCI Trimmer
14.1.3Method 3:
15PACKAGE OUTLINES
16SOLDERING
16.1Introduction
16.2DIP
16.2.1Soldering by dipping or by wave
16.2.2Repairing soldered joints
16.3SO
16.3.1Reflow soldering
16.3.2Wave soldering
16.3.3Repairing soldered joints
17DEFINITIONS
18LIFE SUPPORT APPLICATIONS
19PURCHASE OF PHILIPS I2C COMPONENTS
1997 Jul 15 |
2 |
|
|
|
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
Philips Semiconductors |
Product specification |
|
|
Clock/calendar with 240 × 8-bit RAM |
PCF8583 |
|
|
1 FEATURES
∙I2C-bus interface operating supply voltage: 2.5 V to 6 V
∙Clock operating supply voltage (0 to +70 °C): 1.0 V to 6.0 V
∙240 × 8-bit low-voltage RAM
∙Data retention voltage: 1.0 V to 6 V
∙Operating current (at fSCL = 0 Hz): max. 50 μA
∙Clock function with four year calendar
∙Universal timer with alarm and overflow indication
∙24 or 12 hour format
∙32.768 kHz or 50 Hz time base
∙Serial input/output bus (I2C)
∙Automatic word address incrementing
∙Programmable alarm, timer and interrupt function
∙Slave address:
– READ: A1 or A3
– WRITE: A0 or A2.
3 QUICK REFERENCE DATA
2 GENERAL DESCRIPTION
The PCF8583 is a clock/calendar circuit based on a 2048-bit static CMOS RAM organized as 256 words by 8 bits. Addresses and data are transferred serially via the two-line bidirectional I2C-bus. The built-in word address register is incremented automatically after each written or read data byte. Address pin A0 is used for programming the hardware address, allowing the connection of two devices to the bus without additional hardware.
The built-in 32.768 kHz oscillator circuit and the first
8 bytes of the RAM are used for the clock/calendar and counter functions. The next 8 bytes may be programmed as alarm registers or used as free RAM space.
The remaining 240 bytes are free RAM locations.
SYMBOL |
|
PARAMETER |
CONDITION |
MIN. |
TYP. |
MAX. |
UNIT |
|
|
|
|
|
|
|
|
|
|
V |
supply voltage operating mode |
I2C-bus active |
2.5 |
− |
6.0 |
V |
||
DD |
|
|
|
|
|
|
|
|
|
|
|
|
I2C-bus inactive |
1.0 |
− |
6.0 |
V |
IDD |
supply current operating mode |
fSCL = 100 kHz |
− |
− |
200 |
μA |
||
IDDO |
supply current clock mode |
fSCL = 0 Hz; VDD = 5 V |
− |
10 |
50 |
μA |
||
|
|
|
|
fSCL = 0 Hz; VDD = 1 V |
− |
2 |
10 |
μA |
Tamb |
operating ambient temperature range |
|
−40 |
− |
+85 |
°C |
||
Tstg |
storage temperature range |
|
−65 |
− |
+150 |
°C |
||
4 ORDERING INFORMATION |
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
TYPE |
|
|
|
PACKAGE |
|
|
|
|
|
|
|
|
|
|
|
|
|
NUMBER |
NAME |
|
|
DESCRIPTION |
|
|
VERSION |
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
||
PCF8583P |
DIP8 |
|
plastic dual in-line package; 8 leads (300 mil) |
|
|
SOT97-1 |
||
|
|
|
|
|
|
|||
PCF8583T |
SO8 |
|
plastic small outline package; 8 leads; body width 7.5 mm |
|
SOT176-1 |
|||
|
|
|
|
|
|
|
|
|
1997 Jul 15 |
3 |
Philips Semiconductors |
Product specification |
|
|
Clock/calendar with 240 × 8-bit RAM |
PCF8583 |
|
|
5 BLOCK DIAGRAM |
|
1 |
|
DIVIDER |
|
control/status |
00 |
|
OSCI |
PCF8583 |
100 Hz |
||||
1 : 256 |
hundredth of a second |
01 |
||||
2 |
OSCILLATOR |
|
||||
OR |
|
|||||
32.768 kHz |
|
seconds |
|
|||
OSCO |
100 : 128 |
|
|
|||
|
|
|
minutes |
|
||
7 |
|
|
|
|
||
INT |
|
|
|
hours |
|
|
8 |
|
|
|
|
||
|
|
|
year/date |
|
||
VDD |
POWER-ON |
|
|
|
||
CONTROL |
|
weekdays/months |
|
|||
4 |
|
|
||||
RESET |
LOGIC |
|
timer |
07 |
||
VSS |
|
|
|
|||
|
|
|
|
alarm control |
08 |
|
3 |
|
|
|
alarm registers |
|
|
A0 |
|
|
|
or RAM |
|
|
6 |
I2C-BUS |
|
|
|
0F |
|
SCL |
INTERFACE |
ADDRESS |
|
|
||
|
|
|
||||
5 |
|
|
|
|||
|
REGISTER |
|
RAM |
|
||
SDA |
|
|
|
|||
|
|
|
(240 × 8) |
|
||
|
|
|
|
|
||
|
|
|
|
|
FF |
|
|
|
|
|
|
MRB001 |
|
|
Fig.1 |
Block diagram. |
|
|
6 PINNING |
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
||
|
SYMBOL |
PIN |
DESCRIPTION |
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|||
OSCI |
1 |
oscillator input, 50 Hz or event-pulse |
|
handbook, halfpage |
|
|
|
|
|
|
|||
|
|
|
|
input |
|
1 |
|
8 |
VDD |
||||
|
|
|
|
|
OSCI |
|
|||||||
|
|
|
|
|
|
|
|||||||
OSCO |
2 |
oscillator output |
|
|
2 |
|
7 |
|
|
|
|||
|
OSCO |
PCF8583P |
INT |
||||||||||
|
|
|
|
|
|
||||||||
A0 |
3 |
address input |
|||||||||||
|
|
|
|
|
|
|
|||||||
|
A0 |
3 |
PCF8583T |
6 |
SCL |
||||||||
|
|
|
|
|
|
||||||||
VSS |
4 |
negative supply |
|
|
|||||||||
|
VSS |
4 |
|
5 |
SDA |
||||||||
|
SDA |
5 |
serial data line |
|
|
||||||||
|
SCL |
6 |
serial clock line |
|
|
|
MRB014 |
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
7 |
open drain interrupt output (active |
|
|
|
|
|
|
|
|
|
|
INT |
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
LOW) |
|
Fig.2 |
Pinning diagram. |
||||||
|
|
|
|
|
|
||||||||
VDD |
8 |
positive supply |
|
|
|
|
|
|
|
|
1997 Jul 15 |
4 |
Philips Semiconductors |
Product specification |
|
|
Clock/calendar with 240 × 8-bit RAM |
PCF8583 |
|
|
7 FUNCTIONAL DESCRIPTION
The PCF8583 contains a 256 by 8-bit RAM with an 8-bit auto-increment address register, an on-chip 32.768 kHz oscillator circuit, a frequency divider, a serial two-line bidirectional I2C-bus interface and a power-on reset circuit.
The first 16 bytes of the RAM (memory addresses 00 to 0F) are designed as addressable 8-bit parallel special function registers. The first register (memory address 00) is used as a control/status register.
The memory addresses 01 to 07 are used as counters for the clock function. The memory addresses 08 to 0F may be programmed as alarm registers or used as free RAM locations, when the alarm is disabled.
7.1Counter function modes
When the control/status register is programmed, a 32.768 kHz clock mode, a 50 Hz clock mode or an event-counter mode can be selected.
In the clock modes the hundredths of a second, seconds, minutes, hours, date, month (four year calendar) and weekday are stored in a BCD format. The timer register stores up to 99 days. The event counter mode is used to count pulses applied to the oscillator input (OSCO left open-circuit). The event counter stores up to 6 digits of data.
When one of the counters is read (memory locations 01 to 07), the contents of all counters are strobed into
capture latches at the beginning of a read cycle. Therefore, faulty reading of the count during a carry condition is prevented.
When a counter is written, other counters are not affected.
7.2Alarm function modes
By setting the alarm enable bit of the control/status register the alarm control register (address 08) is activated.
By setting the alarm control register a dated alarm, a daily alarm, a weekday alarm or a timer alarm may be programmed. In the clock modes, the timer register (address 07) may be programmed to count hundredths of a second, seconds, minutes, hours or days. Days are counted when an alarm is not programmed.
Whenever an alarm event occurs the alarm flag of the control/status register is set. A timer alarm event will set the alarm flag and an overflow condition of the timer will set the timer flag. The open drain interrupt output is switched on (active LOW) when the alarm or timer flag is set (enabled). The flags remain set until directly reset by a write operation.
When the alarm is disabled (Bit 2 of control/status register = 0) the alarm registers at addresses 08 to 0F may be used as free RAM.
7.3Control/status register
The control/status register is defined as the memory location 00 with free access for reading and writing via the I2C-bus. All functions and options are controlled by the contents of the control/status register (see Fig.3).
7.4Counter registers
In the clock modes 24 h or 12 h format can be selected by setting the most significant bit of the hours counter register. The format of the hours counter is shown in Fig.5.
The year and date are packed into memory location 05 (see Fig.6). The weekdays and months are packed into memory location 06 (see Fig.7). When reading these memory locations the year and weekdays are masked out when the mask flag of the control/status register is set. This allows the user to read the date and month count directly.
In the event-counter mode events are stored in BCD format. D5 is the most significant and D0 the least significant digit. The divider is by-passed.
In the different modes the counter registers are programmed and arranged as shown in Fig.4. Counter cycles are listed in Table 1.
1997 Jul 15 |
5 |
Philips Semiconductors |
Product specification |
|
|
Clock/calendar with 240 × 8-bit RAM |
PCF8583 |
|
|
MSB |
|
|
|
|
|
|
|
|
LSB |
|
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memory location 00 reset state: 0000 0000
timer flag (50% duty factor seconds flag if alarm enable bit is 0)
|
|
|
|
|
|
|
|
alarm flag (50% duty factor |
||
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
minutes flag if alarm |
|
|
|
|
|
|
|
|
|
|
enable bit is 0) |
|
|
|
|
|
|
|
|
|
alarm enable bit: |
||
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
0 |
alarm disabled: flags toggle |
||
|
|
|
|
|
|
|
|
|
alarm control register disabled |
|
|
|
|
|
|
|
|
|
|
(memory locations 08 to 0F |
|
|
|
|
|
|
|
|
|
|
are free RAM space) |
|
|
|
|
|
|
|
|
1 |
enable alarm control register |
||
|
|
|
|
|
|
|
|
|
(memory location 08 is the |
|
|
|
|
|
|
|
|
|
|
alarm control register) |
|
|
|
|
|
|
|
|
|
mask flag: |
||
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
0 |
read locations 05 to 06 |
||
|
|
|
|
|
|
|
|
|
unmasked |
|
|
|
|
|
|
|
|
1 |
read date and month count |
||
|
|
|
|
|
|
|
|
|
directly |
|
|
|
|
|
|
|
|
|
function mode : |
||
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
00 clock mode 32.768 kHz |
||
|
|
|
|
|
|
|
|
01 clock mode 50 Hz |
||
|
|
|
|
|
|
|
|
10 event-counter mode |
||
|
|
|
|
|
|
|
11 |
test modes |
||
|
|
|
|
|
|
|
|
hold last count flag : |
||
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
0 |
count |
||
|
|
|
|
|
|
|
1 |
store and hold last count in |
||
|
|
|
|
|
|
|
|
|
capture latches |
|
|
|
|
|
|
|
|
|
stop counting flag : |
||
MRB017 |
||||||||||
0 |
count pulses |
|||||||||
|
|
|
|
|
|
|
1 |
stop counting, reset divider |
Fig.3 Control/status register.
1997 Jul 15 |
6 |
Philips Semiconductors |
Product specification |
|
|
Clock/calendar with 240 × 8-bit RAM |
PCF8583 |
|
|
|
control/status |
|
control/status |
|
00 |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
hundredth of a second |
|
D1 |
|
|
D0 |
|
|
||
|
1/10 s |
|
1/100 s |
|
|
|
|
01 |
||
|
|
|
|
|
|
|
|
|||
|
seconds |
|
D3 |
|
|
D2 |
|
|
||
|
10 s |
|
1 s |
|
|
|
|
02 |
||
|
|
|
|
|
|
|
|
|||
|
minutes |
|
|
D5 |
|
|
D4 |
|
|
|
|
10 min |
|
1 min |
|
|
|
|
03 |
||
|
|
|
|
|
|
|
|
|
|
|
|
hours |
|
|
|
free |
|
|
|
||
|
10 h |
|
1 h |
|
|
|
|
04 |
||
|
|
|
|
|
|
|
|
|||
|
year/date |
|
|
free |
|
|
|
|||
|
10 day |
|
1 day |
|
|
|
|
05 |
||
|
|
|
|
|
|
|
|
|||
|
weekday/month |
|
|
free |
|
|
|
|||
|
10 month |
|
1 month |
|
|
|
|
06 |
||
|
|
|
|
|
|
|
|
|||
|
timer |
|
|
T1 |
timer |
T0 |
|
|
||
|
10 day |
|
1 day |
|
|
|
|
07 |
||
|
|
|
|
|
|
|
|
|||
|
alarm control |
|
alarm control |
|
08 |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
hundredth of a second |
|
alarm |
|
alarm |
|
|
|||
|
1/10 s |
|
1/100 s |
|
D1 |
|
|
D0 |
|
09 |
|
alarm seconds |
|
D3 |
|
|
D2 |
|
|
||
|
|
|
|
|
|
|
|
0A |
||
|
|
|
|
|
|
|
|
|
|
|
|
alarm minutes |
|
D5 |
|
|
D4 |
|
|
||
|
|
|
|
|
|
|
|
0B |
||
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
alarm hours |
|
|
free |
|
|
|
|||
|
|
|
|
|
|
|
|
0C |
||
|
|
|
|
|
|
|
|
|
|
|
|
alarm date |
|
|
free |
|
|
|
|||
|
|
|
|
|
|
|
|
0D |
||
|
|
|
|
|
|
|
|
|
|
|
|
alarm month |
|
|
free |
|
|
0E |
|||
|
|
|
|
|
|
|
|
|
|
|
|
alarm timer |
|
|
alarm timer |
|
0F |
||||
|
|
|
|
|
|
|
|
|
|
|
|
free RAM |
|
|
free RAM |
|
|
||||
|
CLOCK MODES |
|
EVENT COUNTER |
|
|
|||||
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
MRB015 |
Fig.4 Register arrangement.
1997 Jul 15 |
7 |
Philips Semiconductors |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Product specification |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
Clock/calendar with 240 × 8-bit RAM |
|
|
|
|
|
PCF8583 |
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
andbook, full pagewidth |
MSB |
|
|
|
|
|
|
|
|
|
|
|
|
|
LSB |
|
|
|
||||
|
7 |
|
6 |
5 |
4 |
|
3 |
2 |
1 |
0 |
|
|
|
memory location 04 (hours counter) |
||||||||
|
|
|
|
|
|
reset state: 0000 0000 |
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unit hours BCD |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ten hours (0 to 2 binary) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AM/PM flag: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 AM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 PM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
format: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
MRB002 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 24 h format, AM/PM flag |
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
remains unchanged |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 12 h format, AM/PM flag |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
will be updated |
|
|
|
|
|
|
|
|
|
|
Fig.5 |
Format of the hours counter. |
|||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MSB |
|
|
|
|
|
|
|
|
|
|
|
|
|
LSB |
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memory location 05 (year/date) |
|
7 |
|
6 |
5 |
4 |
|
3 |
2 |
1 |
0 |
|
|
|
|||||||||
|
|
|
|
|
|
reset state: 0000 0001 |
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unit days BCD |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ten days (0 to 3 binary) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
year (0 to 3 binary, read as 0 if |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the mask flag is set) |
|
MRB003 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
Fig.6 Format of the year/date counter. |
||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
handbook, full pagewidth |
MSB |
|
|
|
|
|
|
|
|
|
|
|
|
|
LSB |
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memory location 06 (weekdays/months) |
|
7 |
|
6 |
5 |
4 |
|
3 |
2 |
1 |
0 |
|
|
|
|||||||||
|
|
|
|
|
|
reset state: 0000 0001 |
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unit months BCD |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ten months |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
weekdays (0 to 6 binary, read as 0 if |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the mask flag is set) |
|
MRB004 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
Fig.7 |
Format of the weekdays/month counter. |
||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1997 Jul 15 |
8 |
Philips Semiconductors |
|
|
Product specification |
|
|
|
|
|
|
Clock/calendar with 240 × 8-bit RAM |
|
PCF8583 |
||
|
|
|
|
|
Table 1 Cycle length of the time counters, clock modes |
|
|
||
|
|
|
|
|
UNIT |
COUNTING CYCLE |
CARRY TO NEXT UNIT |
CONTENTS OF THE |
|
MONTH COUNTER |
||||
|
|
|
||
|
|
|
|
|
Hundredths of a second |
00 to 99 |
99 to 00 |
− |
|
|
|
|
|
|
Seconds |
00 to 59 |
59 to 00 |
− |
|
|
|
|
|
|
Minutes |
00 to 59 |
59 to 00 |
− |
|
|
|
|
|
|
Hours (24 h) |
00 to 23 |
23 to 00 |
− |
|
|
|
|
|
|
Hours (12 h) |
12 AM |
− |
− |
|
|
|
|
|
|
|
01 AM to 11 AM |
− |
− |
|
|
|
|
|
|
|
12 PM |
− |
− |
|
|
|
|
|
|
|
01 PM to 11 PM |
11 PM to 12 AM |
− |
|
|
|
|
|
|
Date |
01 to 31 |
31 to 01 |
1, 3, 5, 7, 8, 10 and 12 |
|
|
|
|
|
|
|
01 to 30 |
30 to 01 |
4, 6, 9 and 11 |
|
|
|
|
|
|
|
01 to 29 |
29 to 01 |
2, year = 0 |
|
|
|
|
|
|
|
01 to 28 |
28 to 01 |
2, year = 1, 2 and 3 |
|
|
|
|
|
|
Months |
01 to 12 |
12 to 01 |
− |
|
|
|
|
|
|
Year |
0 to 3 |
− |
− |
|
|
|
|
|
|
Weekdays |
0 to 6 |
6 to 0 |
− |
|
|
|
|
|
|
Timer |
00 to 99 |
no carry |
− |
|
|
|
|
|
7.5Alarm control register
When the alarm enable bit of the control/status register is set (address 00, bit 2) the alarm control register (address 08) is activated. All alarm, timer, and interrupt output functions are controlled by the contents of the alarm control register (see Fig.8).
7.6Alarm registers
All alarm registers are allocated with a constant address offset of hexadecimal 08 to the corresponding counter registers (see Fig.4, Register arrangement).
An alarm signal is generated when the contents of the alarm registers matches bit-by-bit the contents of the involved counter registers. The year and weekday bits are ignored in a dated alarm. A daily alarm ignores the month and date bits. When a weekday alarm is selected, the contents of the alarm weekday/month register will select the weekdays on which an alarm is activated (see Fig.9).
Remark: In the 12 h mode, bits 6 and 7 of the alarm hours register must be the same as the hours counter.
1997 Jul 15 |
9 |