Am08x5 Data Sheet ds0002v1p2
Am08x5 Data Sheet ds0002v1p2
Am08x5 Data Sheet ds0002v1p2
Features
▪ Ultra-low supply current (all at 3V):
- 14 nA with RC oscillator
- 22 nA with RC oscillator and Autocalibration
- 55 nA with crystal oscillator
▪ Baseline timekeeping features:
- 32.768 kHz crystal oscillator with integrated
load capacitor/resistor
- Counters for hundredths, seconds, minutes,
hours, date, month, year, century, and week-
day Applications
- Alarm capability on all counters
- Programmable output clock generation ▪ Smart cards
(32.768 kHz to 1 year) ▪ Wireless sensors and tags
- Countdown timer with repeat function ▪ Medical electronics
- Automatic leap year calculation ▪ Utility meters
▪ Advanced timekeeping features: ▪ Data loggers
- Integrated power optimized RC oscillator ▪ Appliances
- Advanced crystal calibration to ± 2 ppm ▪ Handsets
- Advanced RC calibration to ± 16 ppm ▪ Consumer electronics
- Automatic calibration of RC oscillator to crystal ▪ Communications equipment
oscillator
- Watchdog timer with hardware reset Description
- 256 bytes of general purpose RAM The Ambiq Micro AM08X5 Real-Time Clock family
▪ Power management features: provides a groundbreaking combination of ultra-low
- Automatic switchover to VBAT power coupled with a highly sophisticated feature
- External interrupt monitor set. With power requirements significantly lower than
- Programmable low battery detection threshold any other industry RTC (as low as 14 nA), these are
- Programmable analog voltage comparator the first semiconductors based on Ambiq Micro’s
▪ I2C (up to 400 kHz) and 3-wire or 4-wire SPI (up innovative SPOTTM (Subthreshold Power Optimized
to 2 MHz) serial interfaces available Technology) CMOS platform. The AM08X5 includes
▪ Operating voltage 1.5-3.6 V on-chip oscillators to provide minimum power
▪ Clock and RAM retention voltage 1.5-3.6 V consumption, full RTC functions including battery
▪ Operating temperature –40 to 85 °C backup and programmable counters and alarms for
▪ All inputs include Schmitt Triggers
timer and watchdog functions, and either an I2C or
▪ 3x3 mm QFN-16 package
SPI serial interface for communication with a host
controller.
Ambiq Micro Inc. 11305 Four Points Drive, Building 2, Suite 250 2014 Ambiq Micro, Inc.
www.ambiqmicro.com Austin, TX 78726 November 2014
AM08X5 Datasheet
System Power
1.5k*
VBAT VCC I2C/SPI VCC
Battery/ XO
Supercap AM08X5 MCU
FOUT/nIRQ IRQ
XI
VSS VSS
* Total battery series impedance = 1.5k ohms, which may require an external resistor
Contents
1. Family Summary .......................................................................................................................... 10
2. Package Pins ............................................................................................................................... 10
2.1. Pin Configuration and Connections ...................................................................................... 10
2.2. Pin Descriptions ................................................................................................................... 11
3. Digital Architecture Summary .................................................................................................... 13
4. Electrical Specifications ............................................................................................................. 14
4.1. Absolute Maximum Ratings ................................................................................................. 14
4.2. Power Supply Parameters ................................................................................................... 14
4.3. Operating Parameters .......................................................................................................... 16
4.4. Oscillator Parameters ........................................................................................................... 17
4.5. VCC Supply Current .............................................................................................................. 19
4.6. VBAT Supply Current ............................................................................................................ 23
4.7. BREF Electrical Characteristics ........................................................................................... 26
4.8. I²C AC Electrical Characteristics .......................................................................................... 27
4.9. SPI AC Electrical Characteristics ......................................................................................... 28
4.10. Power On AC Electrical Characteristics ............................................................................. 30
5. Functional Description ................................................................................................................ 31
5.1. I²C Interface ......................................................................................................................... 32
5.1.1. Bus Not Busy .............................................................................................................. 32
5.1.2. Start Data Transfer ..................................................................................................... 33
5.1.3. Stop Data Transfer ..................................................................................................... 33
5.1.4. Data Valid ................................................................................................................... 33
5.1.5. Acknowledge .............................................................................................................. 33
5.1.6. Offset Address Transmission ..................................................................................... 34
5.1.7. Write Operation .......................................................................................................... 34
5.1.8. Read Operation .......................................................................................................... 34
5.2. SPI Interface ........................................................................................................................ 35
5.2.1. Write Operation .......................................................................................................... 35
5.2.2. Read Operation .......................................................................................................... 35
5.3. XT Oscillator ......................................................................................................................... 36
5.4. RC Oscillator ........................................................................................................................ 36
5.5. RTC Counter Access ........................................................................................................... 36
5.6. Hundredths Synchronization ................................................................................................ 36
5.7. Generating Hundredths of a Second .................................................................................... 37
5.8. Watchdog Timer ................................................................................................................... 37
5.9. Digital Calibration ................................................................................................................. 37
5.9.1. XT Oscillator Digital Calibration .................................................................................. 37
5.9.2. RC Oscillator Digital Calibration ................................................................................. 38
5.10. Autocalibration ................................................................................................................... 39
5.10.1. Autocalibration Operation ......................................................................................... 39
5.10.2. XT Autocalibration Mode .......................................................................................... 39
5.10.3. RC Autocalibration Mode .......................................................................................... 40
5.10.4. Autocalibration Frequency and Control .................................................................... 40
5.10.5. Autocalibration Filter (AF) Pin ................................................................................... 40
5.10.6. Autocalibration Fail ................................................................................................... 40
5.11. Oscillator Failure Detection ................................................................................................ 41
5.12. Interrupts ............................................................................................................................ 41
5.12.1. Interrupt Summary .................................................................................................... 41
5.12.2. Alarm Interrupt AIRQ ................................................................................................ 42
List of Figures
Figure 1. Pin Configuration Diagram .................................................................................................. 10
Figure 2. Digital Architecture Summary .............................................................................................. 13
Figure 3. Power Supply Switchover .................................................................................................... 14
Figure 4. Calibrated RC Oscillator Typical Frequency Variation vs. Temperature ............................. 18
Figure 5. Uncalibrated RC Oscillator Typical Frequency Variation vs. Temperature ......................... 18
Figure 6. Typical VCC Current vs. Temperature in XT Mode ............................................................. 20
Figure 7. Typical VCC Current vs. Temperature in RC Mode ............................................................ 20
Figure 8. Typical VCC Current vs. Temperature in RC Autocalibration Mode ................................... 21
Figure 9. Typical VCC Current vs. Voltage, Different Modes of Operation ........................................ 21
Figure 10. Typical VCC Current vs. Voltage, I²C and SPI Burst Read/Write ...................................... 22
Figure 11. Typical VBAT Current vs. Temperature in XT Mode ......................................................... 23
Figure 12. Typical VBAT Current vs. Temperature in RC Mode ........................................................ 24
Figure 13. Typical VBAT Current vs. Temperature in RC Autocalibration Mode ................................ 24
Figure 14. Typical VBAT Current vs. Voltage, Different Modes of Operation ..................................... 25
Figure 15. Typical VBAT Current vs. Voltage in VCC Power State .................................................... 25
Figure 16. I²C AC Parameter Definitions ............................................................................................ 27
Figure 17. SPI AC Parameter Definitions – Input ............................................................................... 28
Figure 18. SPI AC Parameter Definitions – Output ............................................................................ 28
Figure 19. Power On AC Electrical Characteristics ............................................................................ 30
Figure 20. Detailed Block Diagram ..................................................................................................... 31
Figure 21. Basic I²C Conditions .......................................................................................................... 32
Figure 22. I²C Acknowledge Address Operation ................................................................................ 33
Figure 23. I²C Address Operation ....................................................................................................... 33
Figure 24. I²C Offset Address Transmission ...................................................................................... 34
Figure 25. I²C Write Operation ........................................................................................................... 34
Figure 26. I²C Read Operation ........................................................................................................... 34
Figure 27. SPI Write Operation .......................................................................................................... 35
Figure 28. SPI Read Operation .......................................................................................................... 36
Figure 29. Power States ..................................................................................................................... 44
Figure 30. Power Up Timing ............................................................................................................... 46
Figure 31. Trickle Charger .................................................................................................................. 46
Figure 32. Package Mechanical Diagram ........................................................................................... 77
Figure 33. Reflow Soldering Diagram ................................................................................................. 78
List of Tables
Table 1: Family Summary ................................................................................................................... 10
Table 2: Pin Connections ................................................................................................................... 10
Table 3: Pin Descriptions .................................................................................................................... 11
Table 4: Absolute Maximum Ratings .................................................................................................. 14
Table 5: Power Supply and Switchover Parameters .......................................................................... 15
Table 6: Operating Parameters .......................................................................................................... 16
Table 7: Oscillator Parameters ........................................................................................................... 17
Table 8: VCC Supply Current ............................................................................................................. 19
Table 9: VBAT Supply Current ........................................................................................................... 23
Table 10: BREF Parameters .............................................................................................................. 26
Table 11: I²C AC Electrical Parameters .............................................................................................. 27
Table 12: SPI AC Electrical Parameters ............................................................................................. 28
Table 13: Power On AC Electrical Parameters .................................................................................. 30
Table 14: Autocalibration Modes ........................................................................................................ 40
Table 15: Interrupt Summary .............................................................................................................. 42
Table 16: Register Definitions (0x00 to 0x0F) .................................................................................... 47
Table 17: Register Definitions (0x10 to 0xFF) .................................................................................... 48
Table 18: Hundredths Register ........................................................................................................... 49
Table 19: Hundredths Register Bits .................................................................................................... 49
Table 20: Seconds Register ............................................................................................................... 49
Table 21: Seconds Register Bits ........................................................................................................ 49
Table 22: Minutes Register ................................................................................................................. 50
Table 23: Minutes Register Bits .......................................................................................................... 50
Table 24: Hours Register (12 Hour Mode) ......................................................................................... 50
Table 25: Hours Register Bits (12 Hour Mode) .................................................................................. 50
Table 26: Hours Register (24 Hour Mode) ......................................................................................... 51
Table 27: Hours Register Bits (24 Hour Mode) .................................................................................. 51
Table 28: Date Register ...................................................................................................................... 51
Table 29: Date Register Bits ............................................................................................................... 51
Table 30: Months Register ................................................................................................................. 52
Table 31: Months Register Bits .......................................................................................................... 52
Table 32: Years Register .................................................................................................................... 52
Table 33: Years Register Bits ............................................................................................................. 52
Table 34: Weekdays Register ............................................................................................................ 53
Table 35: Weekdays Register Bits ..................................................................................................... 53
Table 36: Hundredths Alarm Register ................................................................................................ 53
Table 37: Hundredths Alarm Register Bits ......................................................................................... 53
Table 38: Seconds Alarm Register ..................................................................................................... 54
Table 39: Seconds Alarm Register Bits .............................................................................................. 54
Table 40: Minutes Alarm Register ...................................................................................................... 54
Table 41: Minutes Alarm Register Bits ............................................................................................... 54
Table 42: Hours Alarm Register (12 Hour Mode) ............................................................................... 55
Table 43: Hours Alarm Register Bits (12 Hour Mode) ........................................................................ 55
Table 44: Hours Alarm Register (24 Hour Mode) ............................................................................... 55
Table 45: Hours Alarm Register Bits (24 Hour Mode) ........................................................................ 55
Table 46: Date Alarm Register ........................................................................................................... 56
Table 47: Date Alarm Register Bits .................................................................................................... 56
Table 48: Months Alarm Register ....................................................................................................... 56
Table 49: Months Alarm Register Bits ................................................................................................ 56
Table 50: Weekdays Alarm Register .................................................................................................. 57
Table 51: Weekdays Alarm Register Bits ........................................................................................... 57
Table 52: Status Register ................................................................................................................... 57
1. Family Summary
The AM08X5 family consists of several members (see Table 1). All devices are supplied in a standard 3x3
mm QFN-16 package. Members of the software and pin compatible AM18X5 RTC with Power
Management family are also listed.
Baseline
Advanced Timekeeping Power Management
Timekeeping
AM0805 ■ 3 ■ ■ ■ 256 ■ ■ I2 C
AM1805 ■ 4 ■ ■ ■ 256 ■ ■ ■ ■ I2 C
2. Package Pins
AM0805 AM0815
VCC
VCC
XO
XO
AF
AF
XI
XI
NC 1 nTIRQ NC 1 nCE
WDI VSS FOUT/nIRQ WDI VSS FOUT/nIRQ
NC PAD EXTI NC PAD EXTI
nIRQ2 VSS nIRQ2 SDI
SDO
VBAT
SCL
SDA
VBAT
SCL
NC
NC
Pin Number
Pin Name Pin Type Function
AM0805 AM0815
XI XT Crystal input 16 16
XO XT Crystal output 15 15
Pin Number
Pin Name Pin Type Function
AM0805 AM0815
Ground connection. In the QFN-16 packages the ground slug on the bottom of the package must be
VSS
connected to VSS.
VCC Primary power connection. If a single power supply is used, it must be connected to VCC.
Battery backup power connection. If a backup battery is not present, VBAT must be connected directly
VBAT to VSS, but it may also be used to provide the analog input to the internal comparator (see Analog
Comparator).
SCL I/O interface clock connection. It provides the SCL input in both I2C and SPI interface parts. A pull-up
resistor is required on this pin.
I/O interface SPI chip select input connection. It is an active low signal. A pull-up resistor is recom-
nCE (only available in
mended to be connected to this pin to ensure it is not floating. A pull-up resistor also prevents inadver-
SPI environments)
tent writes to the RTC during power transitions.
External interrupt input connection. It may be used to generate an External 1 interrupt with polarity
selected by the EX1P bit if enabled by the EX1E bit. The value of the EXTI pin may be read in the EXIN
EXTI register bit. This pin does not have an internal pull-up or pull-down resistor and so one must be added
externally. It must not be left floating or the RTC may consume higher current. Instead, it must be con-
nected directly to either VCC or VSS if not used.
Watchdog Timer reset input connection. It may also be used to generate an External 2 interrupt with
polarity selected by the EX2P bit if enabled by the EX2E bit. The value of the WDI pin may be read in
WDI the WDIN register bit. This pin does not have an internal pull-up or pull-down resistor and so one must
be added externally. It must not be left floating or the RTC may consume higher current. Instead, it
must be connected directly to either VCC or VSS if not used.
Primary interrupt output connection. This pin is an open drain output. An external pull-up resistor must
be added to this pin. It should be connected to the host device and is used to indicate when the RTC
can be accessed via the serial interface. FOUT/nIRQ may be configured to generate several signals as
a function of the OUT1S field (see 0x11 - Control2). FOUT/nIRQ is also asserted low on a power up
FOUT/nIRQ until the AM08X5 has exited the reset state and is accessible via the I/O interface.
1. FOUT/nIRQ can drive the value of the OUT bit.
2. FOUT/nIRQ can drive the inverse of the combined interrupt signal IRQ (see Interrupts).
3. FOUT/nIRQ can drive the square wave output (see 0x13 - SQW) if enabled by SQWE.
4. FOUT/nIRQ can drive the inverse of the alarm interrupt signal AIRQ (see Interrupts).
1. Secondary interrupt output connection. It is an open drain output. This pin can be left floating if not
used. nIRQ2 may be configured to generate several signals as a function of the OUT2S field (see
0x11 - Control2). nIRQ2 can drive the value of the OUTB bit.
nIRQ2 2. nIRQ2 can drive the square wave output (see 0x13 - SQW) if enabled by SQWE.
3. nIRQ2 can drive the inverse of the combined interrupt signal IRQ (see Interrupts).
4. nIRQ2 can drive the inverse of the alarm interrupt signal AIRQ (see Interrupts).
5. nIRQ2 can drive either sense of the timer interrupt signal TIRQ.
nTIRQ (only available in Timer interrupt output connection. It is an open drain output. nTIRQ always drives the active low nTIRQ
signal. If this pin is used, an external pull-up resistor must be added to this pin. If the pin is not used, it
I2 C environments) can be left floating.
TIRQ
CDT nTIRQ
OUT
Calendar SQW SQW
Counters Mux
Alarms AIRQ
OUT1
Mux
FOUT/nIRQ
IRQ
OF
EXTI IRQ
ACF
OR +
BL Msk
WDI
WDT
OUT2
Mux
nIRQ2
OUTB
Power
On
4. Electrical Specifications
CDM ±500 V
VESD ESD Voltage
HBM ±4000 V
VBAT VBATSW
VBATRST
Power State POR VCC Power POR VCC Power VBAT Power VCC Power VBAT Power POR
SYMBO TEST
PARAMETER PWR TYPE POWER STATE MIN TYP MAX UNIT
L CONDITIONS
Clocks operating
VCC System Power Voltage VCC Static VCC Power and RAM and 1.5 3.6 V
registers retained
VCCIO
VCC I/O Interface
VCC Static VCC Power I2C or SPI opera- 1.5 3.6 V
Voltage tion
VCCST VCC Start-up Voltage(1) VCC Rising POR -> VCC Power 1.6 V
Clocks operating
VBAT Battery Voltage VBAT Static VBAT Power and RAM and reg- 1.4 3.6 V
isters retained
TEST
SYMBOL PARAMETER VCC MIN TYP MAX UNIT
CONDITIONS
CI Input capacitance 3 pF
1.7V -2 -3.8
3.6V 18 20
Figure 4 shows the typical calibrated RC oscillator frequency variation vs. temperature. RC oscillator
calibrated at 2.8V, 25°C.
150
TA = 25 °C
145
140
RC Frequency (Hz)
135
VCC = 1.8V
130
VCC = 3.0V
125
120
115
‐40 ‐30 ‐20 ‐10 0 10 20 30 40 50 60 70 80
Temperature (°C)
Figure 5 shows the typical uncalibrated RC oscillator frequency variation vs. temperature.
145
TA = 25 °C
140
RC Frequency (Hz)
135
130
VCC = 1.8V
125
VCC = 3.0V
120
115
‐40 ‐30 ‐20 ‐10 0 10 20 30 40 50 60 70 80
Temperature (°C)
VCC supply current during I2C 400kHz bus speed, 2.2k pull-up 3.0V 6 10
IVCC:I2C µA
burst read/write resistors on SCL/SDA(1) 1.8V 1.5 3
VCC supply current in XT oscil- Time keeping mode with XT 3.0V 55 330
IVCC:XT nA
lator mode oscillator running(3) 1.8V 51 290
Figure 6 shows the typical VCC power state operating current vs. temperature in XT mode.
130
TA = 25 °C
110
100
90
80
VCC = 3.0V
70
60
VCC = 1.8V
50
40
‐40 ‐30 ‐20 ‐10 0 10 20 30 40 50 60 70 80
Temperature (°C)
Figure 7 shows the typical VCC power state operating current vs. temperature in RC mode.
75
VCC Power State, RC Mode Current (nA)
TA = 25 °C
65
55
45
35
VCC = 3.0V
25
VCC = 1.8V
15
5
‐40 ‐30 ‐20 ‐10 0 10 20 30 40 50 60 70 80
Temperature (°C)
Figure 8 shows the typical VCC power state operating current vs. temperature in RC Autocalibration mode.
55
TA = 25 °C
VCC Power State, Autocal Mode Current (nA)
50
45
40
35
30 VCC = 3.0V
25
20
VCC = 1.8V
15
10
5
‐40 ‐30 ‐20 ‐10 0 10 20 30 40 50 60 70
Temperature (°C)
Figure 9 shows the typical VCC power state operating current vs. voltage for XT Oscillator and RC
Oscillator modes and the average current in RC Autocalibrated mode.
70
TA = 25 °C
60
XT Oscillator Mode
VCC Power State Current (nA)
50
40
30
RC Autocalibrated Mode
20
10
RC Oscillator Mode
0
1.5 2 2.5 3 3.5
VCC Voltage (V)
Figure 10 shows the typical VCC power state operating current during continuous I2C and SPI burst read
and write activity. Test conditions: TA = 25 °C, 0x55 data pattern, 25 s between each data byte, 20 pF
load on each bus pin, pull-up resistor current not included.
30
TA = 25 °C
25
20
VCC Current (µA)
15
10
SPI Burst Write
I2 C Burst Read/Write
0
1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6
VCC Voltage (V)
Figure 10. Typical VCC Current vs. Voltage, I²C and SPI Burst Read/Write
For Table 9, TA = -40 °C to 85 °C, TYP values at 25 °C, MAX values at 85 °C, VBAT Power state.
SYMBOL PARAMETER TEST CONDITIONS VCC VBAT MIN TYP MAX UNIT
Figure 11 shows the typical VBAT power state operating current vs. temperature in XT mode.
130
TA = 25 °C
VBAT Power State, XT Mode Current (nA)
120
110
100
90
80
VBAT = 3.0V
70
60
VBAT = 1.8V
50
40
‐40 ‐30 ‐20 ‐10 0 10 20 30 40 50 60 70 80
Temperature (°C)
Figure 12 shows the typical VBAT power state operating current vs. temperature in RC mode.
75
TA = 25 °C
55
45
35
VBAT = 3.0V
25
VBAT = 1.8V
15
5
‐40 ‐30 ‐20 ‐10 0 10 20 30 40 50 60 70 80
Temperature (°C)
Figure 13 shows the typical VBAT power state operating current vs. temperature in RC Autocalibration
mode.
55
TA = 25 °C
VBAT Power State, Autocal Mode Current (nA)
50
45
40
35
30
VBAT = 3.0V
25
20
VBAT = 1.8V
15
10
5
‐40 ‐30 ‐20 ‐10 0 10 20 30 40 50 60 70
Temperature (°C)
Figure 14 shows the typical VBAT power state operating current vs. voltage for XT Oscillator and RC
Oscillator modes and the average current in RC Autocalibrated mode, VCC = 0 V.
70
TA = 25 °C
60
50
VBAT Current (nA)
XT Oscillator Mode
40
30
RC Autocalibrated Mode
20
10
RC Oscillator Mode
0
1.5 2 2.5 3 3.5
VBAT Voltage (V)
Figure 14. Typical VBAT Current vs. Voltage, Different Modes of Operation
Figure 15 shows the typical VBAT current when operating in the VCC power state, VCC = 1.7 V.
0.9
TA = 25 °C, VCC = 1.7 V
0.8
0.7
VBAT Current (nA)
0.6
0.5
0.4
0.3
0.2
0.1
0
1.5 2 2.5 3 3.5
VBAT Voltage (V)
Figure 15. Typical VBAT Current vs. Voltage in VCC Power State
For Table 10, TA = -20 °C to 70 °C, TYP values at 25 °C, VCC = 1.7 to 3.6V.
1111 1.4
1111 1.6
0111 0.5
1011 0.4
VBRH VBAT threshold hysteresis V
1101 0.4
1111 0.2
SDA
tBUF
tLOW tHD:DAT tSU:DAT
SCL
tHD:STA tHIGH
tRISE tFALL
tSU:STO
SDA tSU:STA
tBUF
nCE
tSU:NCE tHD:NCE
tFALL tSU:CE
tLOW
SCL tHIGH
nCE
SCL
tLOW:VCC
VCC
VCCRST VCCST
tVH:FOUT
FOUT tVL:FOUT
tXTST
XT
85 °C 0.1
25 °C 0.1
tLOW:VCC Low period of VCC to ensure a valid POR 1.7V–3.6V s
-20 °C 1.5
-40 °C 10
85 °C 0.1
25 °C 0.1
tVL:FOUT VCC low to FOUT low 1.7V–3.6V s
-20 °C 1.5
-40 °C 10
85 °C 0.4
25 °C 0.5
tVH:FOUT VCC high to FOUT high 1.7V–3.6V s
-20 °C 3
-40 °C 20
85 °C 0.4
25 °C 0.4
tXTST FOUT high to XT oscillator start 1.7V–3.6V s
-20 °C 0.5
-40 °C 1.5
5. Functional Description
Figure 20 illustrates the AM08X5 functional design.
VCC VBAT
100ths
Power Analog Seconds
nCE Control Compare Minutes
SDI I2C/SPI
Hours
SCL Interface
Days
SDA/O
Weekdays
Months
Calibration Engine
Years
XO
Alarms
XT Osc Divider Timer
WDT
XI
Control
RC Osc Divider
RAM
WDI FOUT/nIRQ
EXTI Int/Clock nIRQ2
nTIRQ
VSS
The AM08X5 serves as a full function RTC for host processors such as microcontrollers. The AM08X5
includes 3 distinct feature groups: 1) baseline timekeeping features, 2) advanced timekeeping features,
and 3) basic power management features. Functions from each feature group may be controlled via I/O
offset mapped registers. These registers are accessed using either an I2C serial interface (e.g., in the
AM0805) or a SPI serial interface (e.g., in the AM0815). Each feature group is described briefly below and
in greater detail in subsequent sections.
The baseline timekeeping feature group supports the standard 32.786 kHz crystal (XT) oscillation mode for
maximum frequency accuracy with an ultra-low current draw of 55 nA. The baseline timekeeping feature
group also includes a standard set of counters monitoring hundredths of a second up through centuries. A
complement of countdown timers and alarms may additionally be set to initiate interrupts or resets on
several of the outputs.
The advanced timekeeping feature group supports two additional oscillation modes: 1) RC oscillator mode,
and 2) Autocalibration mode. At only 14 nA, the temperature-compensated RC oscillator mode provides an
even lower current draw than the XT oscillator for applications with reduced frequency accuracy
requirements. A proprietary calibration algorithm allows the AM08X5 to digitally tune the RC oscillator
frequency and the XT oscillator frequency with accuracy as low as 2 ppm at a given temperature. In
Autocalibration mode, the RC oscillator is used as the primary oscillation source and is periodically
calibrated against the XT oscillator. Autocalibration may be done automatically every 8.5 minutes or 17
minutes and may also be initiated via software. This mode enables average current draw of only 22 nA
with frequency accuracy similar to the XT oscillator. The advanced timekeeping feature group also
includes a rich set of input and output configuration options that enables the monitoring of external
interrupts (e.g., pushbutton signals), the generation of clock outputs, and watchdog timer functionality.
Power management features built into the AM08X5 enable it to operate as a backup device in both line-
powered and battery-powered systems. An integrated power control module automatically detects when
main power (VCC) falls below a threshold and switches to backup power (VBAT). 256B of ultra-low
leakage RAM enable the storage of key parameters when operating on backup power. The AM08X5 also
includes digitally-tunable voltage detection on the backup power supply.
Each functional block is explained in detail in the remainder of this section. The functional descriptions
refer to the registers shown in the Register Definitions (0x00 to 0x0F) and Register Definitions (0x10 to
0xFF) tables. A detailed description of all registers can be found in the Registers section of this document.
I2C termination resistors should be above 2.2 kΩ, and for systems with short I2C bus wires/traces and few
connections these terminators can typically be as large as 22 kΩ (for 400 kHz operation) or 56 kΩ (for 100
kHz operation). Larger resistors will produce lower system current consumption.
The following protocol has been defined:
▪ Data transfer may be initiated only when the bus is not busy.
▪ During data transfer, the data line must remain stable whenever the clock line is high.
▪ Changes in the data line while the clock line is high will be interpreted as control signals.
A number of bus conditions have been defined (see Figure 21) and are described in the following sections.
SDA may
Not Busy
change
SCL
SDA
5.1.5 Acknowledge
Each byte of eight bits is followed by one acknowledge (ACK) bit as shown in Figure 22. This acknowledge
bit is a low level driven onto SDA by the receiver, whereas the master generates an extra acknowledge
related SCL pulse. A slave receiver which is addressed is obliged to generate an acknowledge after the
reception of each byte. Also, on a read transfer a master receiver must generate an acknowledge after the
reception of each byte that has been clocked out of the slave transmitter. The device that acknowledges
must pull down the SDA line during the acknowledge clock pulse in such a way that the SDA line is a
stable low during the high period of the acknowledge related SCL pulse. A master receiver must signal an
end-of-data to the slave transmitter by not generating an acknowledge (a NAK) on the last byte that has
been clocked out of the slave. In this case, the transmitter must leave the data line high to enable the
master to generate the STOP condition.
SCL 1 2 8 9
START
Figure 23 illustrates the operation with which the master addresses the AM08X5. After the START
condition, a 7-bit address is transmitted MSB first. If this address is 0b1101001 (0xD2/3), the AM08X5 is
selected, the eighth bit indicate a write (RW = 0) or a read (RW = 1) operation and the AM08X5 supplies
the ACK. The AM08X5 ignores all other address values and does not respond with an ACK.
R
SDA 1 1 0 1 0 0 0
W
A
SCL
SDA 1 1 0 1 0 0 0 0 A 7 6 5 4 3 2 1 0 A
SCL
SCL
SCL
RESTART
SDI X W 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 X
SDO
SCL
nCE
line, bit 7 first, and the Address Pointer is incremented. The transfer continues until the master brings the
nCE line high.
Offset Address Data Byte N Data Byte N+1
SDI X R 6 5 4 3 2 1 0 X
SDO 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
SCL
nCE
5.3 XT Oscillator
The AM08X5 includes a very power efficient crystal (XT) oscillator which runs at 32.786 kHz. This oscillator
is selected by setting the OSEL bit to 0 and includes a low jitter calibration function.
5.4 RC Oscillator
The AM08X5 includes an extremely low power RC oscillator which runs at 128 Hz. This oscillator is
selected by setting the OSEL bit to 1. Switching between the XT and RC Oscillators is guaranteed to
produce less than one second of error in the Calendar Counters. The AM08X5 may be configured to
automatically switch to the RC Oscillator when VCC drops below its threshold by setting the AOS bit, and/
or be configured to automatically switch if an XT Oscillator failure is detected by setting the FOS bit.
A. If the Hundredths Counter is still 99, the results of the first read are guaranteed to be correct.
Note that it is possible that the second read is not correct.
B. If the Hundredths Counter has rolled over to 00, and the Seconds Counter value from the sec-
ond read is equal to the Seconds Counter value from the first read plus 1, both reads produced
correct values. Alternatively, perform the read again. The resulting value from this third read is
guaranteed to be correct.
C. If the Hundredths Counter has rolled over to 00, and the Seconds Counter value from the sec-
ond read is equal to the Seconds Counter value from the first read, perform the read again. The
resulting value from this third read is guaranteed to be correct.
clock frequency by 3.814 ppm, with a maximum adjustment of ~+240/-244 ppm. OFFSETX contains a
two's complement value, so the possible steps are from -64 to +63. Note that unlike other implementations,
Distributed Digital Calibration guarantees that the clock is precisely calibrated every 32 seconds with
normal calibration and every 16 seconds when coarse calibration is selected.
In addition to the normal calibration, the AM08X5 also includes an Extended Calibration field to
compensate for low capacitance environments. The frequency generated by the Crystal Oscillator may be
slowed by 122 ppm times the value in the XTCAL (see 0x1D – Oscillator Status Register) field (0, -122,-
244 or -366 ppm). The clock is still precisely calibrated in 16 or 32 seconds. The pulses which are added to
or subtracted from the 16.384 kHz clock are spread evenly over each 16 or 32 second period using the
Ambiq Micro patented Distributed Calibration algorithm. This ensures that in XT mode the maximum cycle-
to-cycle jitter in any clock of a frequency 16.384 kHz or lower caused by calibration will be no more than
one 16.384 kHz period. This maximum jitter applies to all clocks in the AM08X5, including the Calendar
Counter, Countdown Timer and Watchdog Timer clocks and any clock driven onto a clock output pin.
The XT oscillator calibration value is determined by the following process:
1. Set the OFFSETX, CMDX and XTCAL register fields to 0 to ensure calibration is not occurring.
2. Select the XT oscillator by setting the OSEL bit to 0.
3. Configure a 32768 Hz frequency square wave output on one of the output pins.
4. Precisely measure the exact frequency, Fmeas, at the output pin in Hz.
5. Compute the adjustment value required in ppm as ((32768 – Fmeas)*1000000)/32768 = PAdj
6. Compute the adjustment value in steps as PAdj/(1000000/2^19) = PAdj/(1.90735) = Adj
7. If Adj < -320, the XT frequency is too high to be calibrated
8. Else if Adj < -256, set XTCAL = 3, CMDX = 1, OFFSETX = (Adj +192)/2
9. Else if Adj < -192, set XTCAL = 3, CMDX = 0, OFFSETX = Adj +192
10. Else if Adj < -128, set XTCAL = 2, CMDX = 0, OFFSETX = Adj +128
11. Else if Adj < -64, set XTCAL = 1, CMDX = 0, OFFSETX = Adj + 64
12. Else if Adj < 64, set XTCAL = 0, CMDX = 0, OFFSETX = Adj
13. Else if Adj < 128, set XTCAL = 0, CMDX = 1, OFFSETX = Adj/2
14. Else the XT frequency is too low to be calibrated
The pulses which are added to or subtracted from the 64 Hz clock are spread evenly over each 8,192
second period using the Ambiq Micro patented Distributed Calibration algorithm. This ensures that in RC
mode the maximum cycle-to-cycle jitter in any clock of a frequency 64 Hz or lower caused by calibration
will be no more than one 64 Hz period. This maximum jitter applies to all clocks in the AM08X5 including
the Calendar Counter, Countdown Timer and Watchdog Timer clocks and any clock driven onto a clock
output pin.
The RC oscillator calibration value is determined by the following process:
1. Set the OFFSETR and CMDR register fields to 0 to ensure calibration is not occurring.
2. Select the RC oscillator by setting the OSEL bit to 1.
3. Configure a 128 Hz frequency square wave output on one of the output pins.
4. Precisely measure the exact frequency, Fmeas, at the output pin in Hz.
5. Compute the adjustment value required in ppm as ((128 – Fmeas)*1000000)/Fmeas = PAdj
6. Compute the adjustment value in steps as PAdj/(1000000/2^19) = PAdj/(1.90735) = Adj
7. If Adj < -65,536, the RC frequency is too high to be calibrated
8. Else if Adj < -32,768, set CMDR = 3, OFFSETR = Adj/8
9. Else if Adj < -16,384, set CMDR = 2, OFFSETR = Adj/4
10. Else if Adj < -8,192, set CMDR = 1, OFFSETR = Adj/2
11. Else if Adj < 8192, set CMDR = 0, OFFSETR = Adj
12. Else if Adj < 16,384, set CMDR = 1, OFFSETR = Adj/2
13. Else if Adj < 32,768, set CMDR = 2, OFFSETR = Adj/4
14. Else if Adj < 65,536, set CMDR = 3, OFFSETR = Adj/8
15. Else the RC frequency is too low to be calibrated
5.10 Autocalibration
The AM08X5 includes a very powerful, patented automatic calibration feature, referred to as
Autocalibration, which allows the RC Oscillator to be automatically calibrated to the XT Oscillator. The XT
Oscillator typically has much better stability than the RC Oscillator but the RC Oscillator requires
significantly less power. Autocalibration enables many system configurations to achieve accuracy and
stability similar to that of the XT Oscillator while drawing current similar to that of the RC Oscillator.
Autocalibration functions in two primary modes: XT Autocalibration Mode and RC Autocalibration Mode.
See Ambiq Application Note AN0002 – AM08X5/AM18X5 Family Autocalibration for more details.
00 No Autocalibration
01 RESERVED
If ACAL is 00 and is then written with a different value, an Autocalibration cycle is immediately executed.
This allows Autocalibration to be completely controlled by software. As an example, software could choose
to execute an Autocalibration cycle every 2 hours by keeping ACAL at 00, getting a two hour interrupt
using the alarm function, generating an Autocalibration cycle by writing ACAL to 10 or 11, and then
returning ACAL to 00.
oscillator failure has not occurred (OF flag = 0) and then clearing the OSEL bit. The ACAL field should
remain set to either 11 (512 second period) or 10 (1024 second period). After the switch occurs, the
OMODE bit is cleared.
While continuing to operate in XT Autocalibration mode, the following steps can be used to determine
when it is safe to return to RC Autocalibration mode.
1. Clear the ACF flag and ACIE register bit.
2. Setup the Countdown Timer or Alarm to interrupt after the next Autocalibration cycle completes or lon-
ger time period.
3. After the interrupt occurs, check the status of the ACF flag.
4. If the ACF flag is set, it is not safe to return to RC Autocalibration mode. Clear the ACF flag and
repeat steps 2-4.
5. If the ACF flag is still cleared, it is safe to return to RC Autocalibration mode by setting the OSEL bit.
As mentioned in the RC oscillator section, switching between XT and RC oscillators is guaranteed to
produce less than one second of error. However, this error needs to be considered and can be safely
managed when implementing the steps above. For example, switching between oscillator modes every 48
hours will produce less than 6 ppm of error.
5.12 Interrupts
The AM08X5 may generate a variety of interrupts which are ORed into the IRQ signal. This may be driven
onto either the FOUT/nIRQ pin or the nIRQ2 pin depending on the configuration of the OUT1S and OUT2S
fields (see 0x11 - Control2).
▪ Pulse/Level - some interrupts may be configured to generate a pulse based on the register bits in this
column. "Level Only" implies that only a level may be generated, and the interrupt will only go away
when the flag is reset by software.
▪ Flag - the register bit which indicates that the function has occurred. Note that the flag being set will only
generate an interrupt signal on an external pin if the corresponding interrupt enable bit is also set.
The values of the EXTI and WDI pins may be directly read in the EXIN and WDIN register bits (see 0x3F -
Extension RAM Address). By connecting an input such as a pushbutton to both EXTI and WDI, software
can debounce the switch input using software configurable delays.
VBAT remains below VBATSW, VCC falling below the VCCRST voltage returns the AM08X5 to the POR
state.
VBAT VBATSW
VBATRST
Power State POR VCC Power POR VCC Power VBAT Power VCC Power VBAT Power POR
If VBAT rises above VBATSW in the POR state, the AM08X5 remains in the POR state. This allows the
AM08X5 to be built into a module with a battery included, and minimal current will be drawn from the
battery until VCC is applied to the module the first time.
If the AM08X5 is in the VCC Power state and VBAT rises above VBATSW, the AM08X5 remains in the VCC
Power state but automatic switchover becomes available. VBAT falling below VBATSW has no effect on the
power state as long as VCC remains above VCCSWF. If VCC falls below the VCCSWF voltage while VBAT is
above VBATSW the AM08X5 switches to the VBAT Power state. VCC rising above VCCSWR returns the
AM08X5 to the VCC Power state. There is hysteresis in the rising and falling VCC thresholds to ensure
that the AM08X5 does not switch back and forth between the supplies if VCC is near the thresholds.
VCCSWF and VCCSWR are independent of the VBAT voltage and allow the AM08X5 to minimize the current
drawn from the VBAT supply by switching to VBAT only at the point where VCC is no longer able to power
the device.
If the AM08X5 is in the VBAT Power state and VBAT falls below VBATRST, the AM08X5 will return to the
POR state.
Whenever the AM08X5 enters the VBAT Power state, the BAT flag in the Status Register (see 0x0F -
Status (Read Only)) is set and may be polled by software. If the XT oscillator is selected and the AOS bit
(see 0x1C - Oscillator Control) is set, the AM08X5 will automatically switch to the RC oscillator in the VBAT
Power state in order to conserve battery power. If the IOBM bit (see 0x27 – Batmode IO Register) is clear,
the I2C or SPI interface is disabled in the VBAT Power state in order to prevent erroneous accesses to the
AM08X5 if the bus master loses power.
up, and will go high when tVH:FOUT expires. Software should poll the FOUT/nIRQ value to determine when
the AM08X5 may be accessed. Figure 30 illustrates the timing of a power down/up operation.
No I/O Access
VCC
VBAT
FOUT/nIRQ
tVH:FOUT
3k
VCC VBAT
6k
11 k
6. Registers
Registers are accessed by selecting a register address and then performing read or write operations.
Multiple reads or writes may be executed in a single access, with the address automatically incrementing
after each byte. Table 16 and Table 17 summarize the function of each register. In Table 16, the GPx bits
(where x is between 0 and 27) are 28 register bits which may be used as general purpose storage. These
bits are described in the sections below. All of the GPx bits are cleared when the AM08X5 powers up and
they can therefore be used to allow software to determine if a true Power On Reset has occurred or hold
other initialization data.
Offset Register 7 6 5 4 3 2 1 0
0x03 Hours (24 hour) GP3 GP2 Hours - Tens Hours - Ones
Hours -
0x03 Hours (12 hour) GP3 GP2 AM/PM Hours - Ones
Tens
Months -
0x05 Months GP8 GP7 GP6 Months - Ones
Tens
0x09 Seconds Alarm GP14 Seconds Alarm - Tens Seconds Alarm - Ones
0x0A Minutes Alarm GP15 Minutes Alarm - Tens Minutes Alarm - Ones
0x0B Hours Alarm (24 hour) GP17 GP16 Hours Alarm - Tens Hours Alarm - Ones
Hours
0x0B Hours Alarm (12 hour) GP17 GP16 AM/PM Alarm - Hours Alarm - Ones
Tens
0x0C Date Alarm GP19 GP18 Date Alarm - Tens Date Alarm - Ones
Months
0x0D Months Alarm GP22 GP21 GP20 Alarm - Months Alarm - Ones
Tens
0x0E Weekdays Alarm GP27 GP26 GP25 GP24 GP23 Weekdays Alarm
0x0F Status CB BAT WDT BL TIM ALM EX2 EX1
Offset Register 7 6 5 4 3 2 1 0
0x28 ID0 (Read only) Part Number –MS Byte = 00001000 (0x08)
0x29 ID1 (Read only) Part Number – LS Byte (e.g. 00000101 for AM0805)
0x2A ID2 (Read only) Revision – Major = 00010 Revision – Minor = 011
Bit 7 6 5 4 3 2 1 0
Reset 1 0 0 1 1 0 0 1
Seconds -
7:4 Holds the tenths place in the hundredths counter.
Tenths
Seconds -
3:0 Holds the hundredths place in the hundredths counter.
Hundredths
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Seconds -
3:0 Holds the ones place in the seconds counter.
Ones
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
3:0 Minutes - Ones Holds the ones place in the minutes counter.
Bit 7 6 5 4 3 2 1 0
Hours -
Name GP3 GP2 AM/PM Hours - Ones
Tens
Reset 0 0 0 0 0 0 0 0
3:0 Hours - Ones Holds the ones place in the hours counter.
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
5:4 Hours - Tens Holds the tens place in the hours counter.
3:0 Hours - Ones Holds the ones place in the hours counter.
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 1
3:0 Date - Ones Holds the ones place in the date counter.
Bit 7 6 5 4 3 2 1 0
Months -
Name GP8 GP7 GP6 Months - Ones
Tens
Reset 0 0 0 0 0 0 0 1
3:0 Months - Ones Holds the ones place in the months counter.
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
7:4 Years - Tens Holds the tens place in the years counter.
3:0 Years - Ones Holds the ones place in the years counter.
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Seconds Alarm
7:4 Holds the tenths place for the hundredths alarm.
- Tenths
Seconds Alarm
3:0 Holds the hundredths place for the hundredths alarm.
- Hundredths
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Seconds Alarm
3:0 Holds the ones place for the seconds alarm.
- Ones
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Minutes Alarm
3:0 Holds the ones place for the minutes alarm.
- Ones
Bit 7 6 5 4 3 2 1 0
Hours
Name GP17 GP16 AM/PM Alarm - Hours Alarm - Ones
Tens
Reset 0 0 0 0 0 0 0 0
Hours Alarm -
4 Holds the tens place for the hours alarm.
Tens
Hour Alarm -
3:0 Holds the ones place for the hours alarm.
Ones
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Hours Alarm -
3:0 Holds the ones place for the hours alarm.
Ones
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
5:4 Date Alarm - Tens Holds the tens place for the date alarm.
Date Alarm -
3:0 Holds the ones place for the date alarm.
Ones
Bit 7 6 5 4 3 2 1 0
Months
Name GP22 GP21 GP20 Alarm - Months Alarm - Ones
Tens
Reset 0 0 0 0 0 0 0 0
Months Alarm -
4 Holds the tens place for the months alarm.
Tens
Months Alarm -
3:0 Holds the ones place for the months alarm.
Ones
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Century. This bit will be toggled when the Years register rolls over from 99 to 00 if the CEB bit is a 1.
7 CB
A 0 assumes the century is 19xx or 21xx, and a 1 assumes it is 20xx for leap year calculations.
6 BAT Set when the system switches to the VBAT Power state.
5 WDT Set when the Watchdog Timer is enabled and is triggered, and the WDS bit is 0.
Set if the battery voltage VBAT crosses the reference voltage selected by BREF in the direction
4 BL
selected by BPOL.
3 TIM Set when the Countdown Timer is enabled and reaches zero.
Set when the Alarm function is enabled and all selected Alarm registers match their respective
2 ALM
counters.
Set when an external trigger is detected on the WDI pin. The EX2E bit must be set in order for this
1 EX2
interrupt to occur, but subsequently clearing EX2E will not automatically clear this flag.
Set when an external trigger is detected on the EXTI pin. The EX1E bit must be set in order for this
0 EX1
interrupt to occur, but subsequently clearing EX1E will not automatically clear this flag.
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 1 0 0 0 1
When 1, stops the clocking system. The XT and RC Oscillators are not stopped. In XT Mode
the 32.786 kHz clock output will continue to run. In RC Mode, the 128 Hz clock output will con-
7 STOP
tinue to run. Other clock output selections will produce static outputs. This bit allows the clock
system to be precisely started, by setting it to 1 and back to 0.
When 0, the Hours register operates in 24 hour mode. When 1, the Hours register operates in
6 12/24
12 hour mode.
A static value which may be driven on the nIRQ2 pin. The OUTB bit cannot be set to 1 if the
5 OUTB
LKO2 bit is 1.
A static value which may be driven on the FOUT/nIRQ pin. This bit also defines the default
4 OUT
value for the Square Wave output when SQWE is not asserted.
3 RESERVED RESERVED
Auto reset enable. When 1, a read of the Status register will cause any interrupt bits (TIM, BL,
2 ARST ALM, WDT, XT1, XT2) to be cleared. When 0, the bits must be explicitly cleared by writing the
Status register.
1 RESERVED RESERVED
Write RTC. This bit must be set in order to write any of the Counter registers (Hundredths, Sec-
0 WRTC
onds, Minutes, Hours, Date, Months, Years or Weekdays).
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
4:2 OUT2S Controls the function of the nIRQ2 pin, as shown in Table 58.
1:0 OUT1S Controls the function of the FOUT/NIRQ pin, as shown in Table 59.
010 RESERVED
110 RESERVED
111 OUTB
Bit 7 6 5 4 3 2 1 0
Reset 1 1 1 0 0 0 0 0
Century Enable.
7 CEB 0: The CB bit will never be automatically updated.
1: The CB bit will toggle when the Years register rolls over from 99 to 00.
Interrupt Mode.
This controls the duration of the nAIRQ interrupt as shown below. The interrupt output always goes
high when the corresponding flag in the Status Register is cleared. In order to minimize current
drawn by the AM08X5 this field should be kept at 0x3.
6:5 IM
00: Level (static) for both XT mode and RC mode.
01: 1/8192 seconds for XT mode. 1/64 seconds for RC mode.
10: 1/64 seconds for both XT mode and RC mode.
11: 1/4 seconds for both XT mode and RC mode.
Bit 7 6 5 4 3 2 1 0
Reset 0 0 1 0 0 1 1 0
When 1, the square wave output is enabled. When 0, the square wave output is held at the
7 SQWE
value of OUT.
6:5 RESERVED RESERVED
Selects the frequency of the square wave output, as shown in Table 64. Note that some selec-
4:0 SQFS tions are not valid if the 128 Hz oscillator is selected. Some selections also produce short
pulses rather than square waves, and are intended primarily for test usage.
00000 1 century(2)
01001 64 Hz
01010 32 Hz
01011 16 Hz
01100 8 Hz
01101 4 Hz
01110 2 Hz
01111 1 Hz
10000 ½ Hz
10001 ¼ Hz
10010 1/8 Hz
10011 1/16 Hz
10100 1/32 Hz
11000 1 hour(2)
11001 1 day(2)
11010 TIRQ
11011 NOT TIRQ
11100 1 year(2)
11101 1 Hz to Counters(2)
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
The calibration adjust mode. When 0 (Normal Mode), each adjustment step is +/- 2 ppm. When
7 CMDX
1 (Coarse Mode), each adjustment step is +/- 4 ppm.
The amount to adjust the effective time. This is a two's complement number with a range of -64
6:0 OFFSETX
to +63 adjustment steps.
Bit 7 6 5 4 3 2 1 0
The calibration adjust mode for the RC calibration adjustment. CMDR selects the highest fre-
7:6 CMDR
quency used in the RC Calibration process, as shown in Table 69.
The upper 6 bits of the OFFSETR field, which is used to set the amount to adjust the effective
5:0 OFFSETRU time. OFFSETR is a two's complement number with a range of -2^13 to +2^13-1 adjustment
steps.
Bit 7 6 5 4 3 2 1 0
Name OFFSETRL
Reset Preconfigured
The lower 8 bits of the OFFSETR field, which is used to set the amount to adjust the effective
7:0 OFFSETRL time. OFFSETR is a two's complement number with a range of -2^13 to +2^13-1 adjustment
steps.
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
When 1, the external interrupt XT2 will trigger on a rising edge of the WDI pin. When 0, the
5 EX2P
external interrupt XT2 will trigger on a falling edge of the WDI pin.
When 1, the external interrupt XT1 will trigger on a rising edge of the EXTI pin. When 0, the
4 EX1P
external interrupt XT1 will trigger on a falling edge of the EXTI pin.
Bit 7 6 5 4 3 2 1 0
Reset 0 0 1 0 0 0 1 1
Timer Enable. When 1, the Countdown Timer will count down. When 0, the Countdown Timer retains
7 TE
the current value. If TE is 0, the clock to the Timer is disabled for power minimization.
Timer Interrupt Mode. Along with TRPT, this controls the Timer Interrupt function as shown in Table
28. A Level Interrupt will cause the nIRQ signal to be driven low by a Countdown Timer interrupt until
6 TM
the associated flag is cleared. A Pulse interrupt will cause the nIRQ signal to be driven low for the
time shown in Table 77 or until the flag is cleared.
Along with TM, this controls the repeat function of the Countdown Timer. If Repeat is selected, the
Countdown Timer reloads the value from the Timer_Initial register upon reaching 0, and continues
5 TRPT
counting. If Single is selected, the Countdown Timer will halt when it reaches zero. This allows the
generation of periodic interrupts of virtually any frequency.
These bits enable the Alarm Interrupt repeat function, as shown in Table 76. HA is the Hun-
4:2 RPT
dredths_Alarm register value.
Select the clock frequency and interrupt pulse width of the Countdown Timer, as defined in Table 77.
1:0 TFS
RCPLS is a 100-400 s pulse.
2 Hundredths, seconds, minutes, hours and date match (once per month)
1 Hundredths, seconds, minutes, hours, date and month match (once per year)
0 Alarm Disabled
(*)
Once per second if 128 Hz Oscillator selected
TM TRPT TFS Int Repeat Countdown Timer Frequency Interrupt Pulse Width
TM TRPT TFS Int Repeat Countdown Timer Frequency Interrupt Pulse Width
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Countdown
7:0 The current value of the Countdown Timer.
Timer
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Timer Initial
7:0 The value reloaded into the Countdown Timer when it reaches zero if the TRPT bit is a 1.
Value
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Watchdog Steering. When 0, the Watchdog Timer will generate WIRQ when it times out. When 1,
7 WDS
the Watchdog Timer will generate a reset when it times out.
The number of clock cycles which must occur before the Watchdog Timer times out. A value of
6:2 BMB
00000 disables the Watchdog Timer function.
1:0 WRB The clock frequency of the Watchdog Timer, as shown in Table 84.
00 16 Hz
01 4 Hz
10 1 Hz
11 1/4 Hz
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
When 1, request the RC Oscillator to generate a 128 Hz clock for the timer circuits. When 0,
request the XT Oscillator to generate a 32.786 kHz clock to the timer circuit. Note that if the XT
7 OSEL
Oscillator is not operating, the oscillator switch will not occur. The OMODE field in the Oscillator
Status register indicates the actual oscillator which is selected.
When 1, the oscillator will automatically switch to RC oscillator mode when the system is powered
4 AOS
from the battery. When 0, no automatic switching occurs.
When 1, the oscillator will automatically switch to RC oscillator mode when an oscillator failure is
3 FOS
detected. When 0, no automatic switching occurs.
2 RESERVED RESERVED
1 OFIE Oscillator Fail interrupt enable. When 1, an Oscillator Failure will generate an IRQ signal.
Bit 7 6 5 4 3 2 1 0
Reset 0 0 1 0 0 0 1 0
Extended Crystal Calibration. This field defines a value by which the Crystal Oscillator is adjusted
to compensate for low capacitance crystals, independent of the normal Crystal Calibration func-
7:6 XTCAL
tion controlled by the Calibration XT Register. The frequency generated by the Crystal Oscillator
is slowed by 122 ppm times the value in the XTCAL field (0, -122,-244 or -366 ppm).
Lock OUT2. If this bit is a 1, the OUTB register bit (see Section 7.3.2) cannot be set to 1. This is
5 LKO2 typically used when OUT2 is configured as a power switch, and setting OUTB to a 1 would turn off
the switch.
(read only) – Oscillator Mode. This bit is a 1 if the RC Oscillator is selected to drive the internal
4 OMODE
clocks, and a 0 if the Crystal Oscillator is selected. If the STOP bit is set, the OMODE bit is invalid.
Oscillator Failure. This bit is set on a power on reset, when both the system and battery voltages
1 OF have dropped below acceptable levels. It is also set if an Oscillator Failure occurs, indicating that
the crystal oscillator is running at less than 8 kHz. It can be cleared by writing a 0 to the bit.
Set when an Autocalibration Failure occurs, indicating that either the RC Oscillator frequency is
0 ACF
too different from 128 Hz to be correctly calibrated or the XT Oscillator did not start.
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
Configuration
7:0 Written with specific values in order to access some registers and functions.
Key
1. Writing a value of 0xA1 enables write access to the Oscillator Control register
2. Writing a value of 0x3C does not update the Configuration Key register, but generates a Software
Reset (see Software Reset).
3. Writing a value of 0x9D enables write access to the Trickle Register (0x20), the BREF Register
(0x21), the AFCTRL Register (0x26), the Batmode I/O Register (0x27) and the Output Control Regis-
ter (0x30).
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
7:4 TCS A value of 1010 enables the trickle charge function. All other values disable the Trickle Charger.
Diode Select. A value of 10 inserts a standard diode into the trickle charge circuit, with a voltage
3:2 DIODE drop of 0.6V. A value of 01 inserts a schottky diode into the trickle charge circuit, with a voltage drop
of 0.3V. Other values disable the Trickle Charger.
1:0 ROUT Output Resistor. This selects the output resistor of the trickle charge circuit, as shown in Table 93.
00 Disable
01 3 KΩ
10 6 KΩ
11 11 KΩ
Bit 7 6 5 4 3 2 1 0
Reset 1 1 1 1 0 0 0 0
This selects the voltage reference which is compared to the battery voltage VBAT to produce the
7:4 BREF BBOD signal. Typical values are shown in Table 96. The valid BREF values are 0x7, 0xB, 0xD,
and 0xF. The reset value is 0xF. All other values are RESERVED.
BREF Value VBAT Falling Voltage (TYP) VBAT Rising Voltage (TYP)
Bit 7 6 5 4 3 2 1 0
Name AFCTRL
Reset 0 0 0 0 0 0 0 0
7:0 AFCTRL If 0xA0, enable the AF pin. If 0x00, disable the AF pin.
Bit 7 6 5 4 3 2 1 0
Reset 1 0 0 0 0 0 0 0
If 1, the AM08X5 will not disable the I/O interface even if VCC goes away and VBAT is still present.
7 IOBM
This allows external access while the AM08X5 is powered by VBAT.
Bit 7 6 5 4 3 2 1 0
Reset
6 BMIN If 1, the VBAT input voltage is above the minimum operating voltage (1.2 V).
0 RESERVED RESERVED
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 0 0 0 0
If 1, the WDI input is enabled when the AM08X5 is powered from VBAT. If 0, the WDI input is dis-
7 WDBM
abled when the AM08X5 is powered from VBAT.
If 1, the EXTI input is enabled when the AM08X5 is powered from VBAT. If 0, the EXTI input is dis-
6 EXBM
abled when the AM08X5 is powered from VBAT.
6.11 ID Registers
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 0 1 0 0 0
Bit 7 6 5 4 3 2 1 0
Bit 7 6 5 4 3 2 1 0
Reset 0 0 0 1 0 0 1 1
7:3 MAJOR This field holds the major revision of the AM08X5.
2:0 MINOR This field holds the minor revision of the AM08X5.
This register holds the lower 8 bits of the manufacturing lot number.
Bit 7 6 5 4 3 2 1 0
Name Lot[7:0]
7:0 Lot[7:0] This field holds the lower 8 bits of the manufacturing lot number.
Bit 7 6 5 4 3 2 1 0
Bit 7 6 5 4 3 2 1 0
1:0 ID[14:8] This field holds the upper 7 bits of the unique part ID.
Bit 7 6 5 4 3 2 1 0
Name ID]7:0]
7:0 ID[7:0] This field holds the lower 8 bits of the unique part ID.
Bit 7 6 5 4 3 2 1 0
Bit 7 6 5 4 3 2 1 0
7 RSVD RESERVED.
BL Polarity. When 0, the Battery Low flag BL is set when the VBAT voltage goes below the BREF
6 BPOL threshold. When 1, the Battery Low flag BL is set when the VBAT voltage goes above the BREF
threshold.
5 WDIN (read only) – this bit supplies the current level of the WDI pin.
4 EXIN (read only) – this bit supplies the current level of the EXTI pin.
3 RSVD RESERVED.
2 XADA This field supplies the upper bit for addresses to the Alternate RAM address space.
1:0 XADS This field supplies the upper two address bits for the Standard RAM address space.
3.00 ± 0.05
x16
1.80
2.26
3.30
Pin1
0.30
Marking
1.80
PACKAGE SIDE VIEW
0.52
0.50
0.00 – 0.05
0.85 ± 0.05
Seating
0.20 REF
0.50
1 x16
Thermal Pad
3.26
2.30
0.26
1.80 ± 0.10
0.50
0.20
x16
0.20
0.25 REF
0.50
0.25 ± 0.05
Drawing Notes:
1. All dimensions are in millimeters.
2. These drawings are subject to change without notice.
3. Quad Flat‐pack, No‐leads (QFN) package configuration.
4. The package thermal pad must be soldered to the board for connectivity and mechanical performance .
5. Customers should contact their board fabricator for minimum solder mask tolerances between signal pads.
8. Reflow Profile
Figure 33 illustrates the reflow soldering requirements.
Preheat/Soak
Temperature Min (Tsmin) 150 °C
Temperature Max (Tsmax) 200 °C
Time (ts) from (Tsmin to Tsmax) 60-120 seconds
9. Ordering Information
Table 120: Ordering Information
(1)
Compliant and certified with the current RoHS requirements for all 6 substances, including the requirement that lead not
exceed 0.1% by weight in raw homogeneous materials. The package was designed to be soldered at high temperatures
(per reflow profile) and can be used in specified lead-free processes.
(2)
Moisture Sensitivity Level rating according to the JEDEC J-STD-020D.1 industry standard classifications.
Rev # Description
- Added limits and/or temperature range specifications for the following parameters:
VCC,ABSMAX, VBAT,ABSMAX, VCCIO, VCCRST, VCCSWR, VCCSWF, VCCRS, VCCFS, VBATRST, VT+, VT-, ILEAK, IOH,
IOL, RDSON, IOLEAK, CEX, OAXT, FRCC, FRCU, TAC, IVCC:I2C, IVCC:SPIW, IVCC:SPIR, IVCC:XT, IVCC:RC, IVCC:ACAL,
IVCC:CK32, IVCC:CLK128, IVBAT:XT, IVBAT:RC, IVBAT:ACAL, IVBAT:VCC, VBRF, VBRR, VBRH, TBR, tLOW:VCC, tVL:FOUT,
tVH:FOUT, tXTST, tVL:NRST, tVH:NRST, tRL:NRST, tRH:NRST
- Removed tBREF parameter
- Additional note on autocalibration operating temperature range in the electrical specification section
- Added additional description to the Autocalibration Fail section
1.0 - Updated XT digital calibration adjustment value equation
- Removed VCCRS parameter as there is no requirement for the VCC rising slew rate
- Added curves to the electrical specification section: VCC Current vs. Voltage in different operating modes,
VCC Current vs. Voltage During I2C/SPI burst read/write, VCC Current vs. Voltage with 32.768kHz Clock Out-
put, VBAT Current vs. Voltage in different operating modes, VBAT current vs. Voltage in VCC power state
- Removed typical values at 1.5V and 3.6V in VCC supply current table and replaced with VCC supply current
vs. voltage curves
- Removed typical values at 1.5V and 3.6V in VBAT supply current table and replaced with VBAT supply cur-
rent vs. voltage curve
- Updated orderable part numbers
Rev # Description