The TWI abbreviations are defined below.
S = Start
P = Stop
W = Write
R = Read
A = Acknowledge
N = Not Acknowledge
ADDR = Device Address
IADDR = Internal Address
Figure 5-10. Write Operation
TWD
S
ADDR
W
A
IADDR
A
DATA
A
P
Figure 5-11. Read Operation
TWD
S
ADDR
W
A
IADDR
A
S
ADDR
R
A
DATA
N
P
5.3.3
Table 5-3.
Interrupt Controller
In dynamic mode, the ITB/RDY pin is an output and operates as an interrupt to an external
microcontroller. The output logic is active low (a 0 level means interrupt).
Several sources can potentially trigger an interrupt:
? the RTC, when a real-time alarm event occurs (see Section 7.8 ”Real-time Clock (RTC)” for
more details)
? the push-button, when its state changes
? the power monitor, when it detects a failure or main battery lower than 2.7V
? the boost, when it detects a failure
? the buck, when it detects a failure
Each of these sources can be individually masked to disable the corresponding interrupt. All the
interrupt logic can also be globally disabled when the microcontroller needs to enter an uninter-
ruptible state. The interrupt enable/disable logic is controlled through two independent registers.
Refer to Section 6. ”Register Tables” for detailed register and bit assignment. IRQ_EN is used to
enable the interrupts, while IRQ_DIS is used to disable the interrupts. This strategy allows the
controlling software to handle the interrupt mask completely independently for each interrupt
source while avoiding read-modify-write operations. The register IRQ_MSK can be read to know
the current interrupt mask.
The sequence shown below in Table 5-3 shows an example of interrupt masking/unmasking.
Interrupt Masking/Unmasking
Action
Reset
Write 00000101 in IRQ_EN
Write 00000000 in IRQ_EN
Write 10000000 in IRQ_EN
Write 00000001 in IRQ_DIS
AT73C224
18
What it Does
Disables all interrupts individually and globally.
Enables the RTC interrupt and the power failure interrupt individually. The
interrupts are still globally masked, no interrupt can be triggered yet.
Nothing happens, only bits set at one have an effect.
Enables the interrupts globally. The ITB pin will toggle to 0 if either the
RTC or the power monitor requests an interrupt.
Disables the RTC interrupt. The power failure interrupt remains active.
Contents of IRQ_MSK
00000000
00000101
00000101
10000101
10000100
6266A–PMAAC–08-Sep-08
相关PDF资料
AT73C239-EK KIT EVAL FOR AT73C239
AT73C240-EK1 KIT EVALUATION FOR AT73C240
AT73C246-EK1 KIT EVALUATION FOR AT73C246
AT85DVK-07 KIT DEV FOR AT85C51SND3
AT85RFD-07 REFERENCE DESIGN FOR AT85C51SND3
AT88CK101BK8 BOARD KIT CRYPTO W/SOIC SKT
AT88CK101STK8 BOARD KIT CRYPTO W/SOIC&MICRO
AT88CK109BK8 BOARD KIT CRYPTO W/2 SOIC SKTS
相关代理商/技术参数
AT73C224-F 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:Power Management and Analog Companions (PMAAC)
AT73C224-G 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:Power Management and Analog Companions (PMAAC)
AT73C224-H 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:Power Management and Analog Companions (PMAAC)
AT73C225J 功能描述:电池管理 Monolithic numeric RoHS:否 制造商:Texas Instruments 电池类型:Li-Ion 输出电压:5 V 输出电流:4.5 A 工作电源电压:3.9 V to 17 V 最大工作温度:+ 85 C 最小工作温度:- 40 C 封装 / 箱体:VQFN-24 封装:Reel
AT73C237 功能描述:其他电源管理 NGD : MONOLITHIC NUMERIC IC RoHS:否 制造商:Texas Instruments 输出电压范围: 输出电流:4 mA 输入电压范围:3 V to 3.6 V 输入电流: 功率耗散: 工作温度范围:- 40 C to + 110 C 安装风格:SMD/SMT 封装 / 箱体:VQFN-48 封装:Reel
AT73C238 功能描述:电池管理 Monolithic numeric RoHS:否 制造商:Texas Instruments 电池类型:Li-Ion 输出电压:5 V 输出电流:4.5 A 工作电源电压:3.9 V to 17 V 最大工作温度:+ 85 C 最小工作温度:- 40 C 封装 / 箱体:VQFN-24 封装:Reel
AT73C239 功能描述:其他电源管理 NGD MONOLITHIC NUMERIC IC RoHS:否 制造商:Texas Instruments 输出电压范围: 输出电流:4 mA 输入电压范围:3 V to 3.6 V 输入电流: 功率耗散: 工作温度范围:- 40 C to + 110 C 安装风格:SMD/SMT 封装 / 箱体:VQFN-48 封装:Reel
AT73C239_07 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:Power Management and Analog Companions (PMAAC)