Whenever the I C module is waiting for interaction from software, it holds the bus clock SCL low, freezing
depends on the current state the of the I C module. This state can be read from the I2Cn_STATE register.
As an example, Table 15.4 (p. 154) shows the different states the I C goes through when operating
which can be used to identify exactly what the I C module is waiting for.
The different interactions used by the I C module are listed in Table 15.3 (p. 152) in prioritized order. If
Table 15.3. I C Interactions in Prioritized Order
...the world's most energy friendly microcontrollers
15.3.7.2 Interactions
2
all bus activities, and the BUSHOLD interrupt flag in I2Cn_IF is set. The action(s) required by software
2
2
as a Master Transmitter, i.e. a master that transmits data to a slave. As seen in the table, when a start
condition has been transmitted, a requirement is that there is an address and an R/W bit in the transmit
buffer. If the transmit buffer is empty, then the BUSHOLD interrupt flag is set, and the bus is held until
data becomes available in the buffer. While waiting for the address, I2Cn_STATE has a value 0x57,
2
Note
The bus would never stop at state 0x57 if the address was available in the transmit buffer.
2
a set of different courses of action are possible from a given state, the course of action using the highest
priority interactions, that first has everything it is waiting for is the one that is taken.
2
Interaction
STOP*
Priority
1
Software action
Set the STOP command bit
in I2Cn_CMD
Automatically continues if
PSTOP is set (STOP
pending) in I2Cn_STATUS
ABORT
2
Set the ABORT command bit Never, the transmission is
in I2Cn_CMD
aborted
CONT*
3
Set the CONT command bit
in I2Cn_CMD
PCONT is set in
I2Cn_STATUS (CONT
pending)
NACK*
4
Set the NACK command bit
in I2Cn_CMD
PNACK is set in
I2Cn_STATUS (NACK
pending)
ACK*
5
Set the ACK command bit in
I2Cn_CMD
AUTOACK is set in
I2Cn_CTRL or PACK is
set in I2Cn_STATUS (ACK
pending)
ADDR+W -> TXDATA
ADDR+R -> TXDATA
START*
6
7
8
Write an address to the
transmit buffer with the R/W
bit set
Write an address to the
transmit buffer with the R/W
bit cleared
Set the START command bit
in I2Cn_CMD
Address is available in
transmit buffer with R/W bit
set
Address is available in
transmit buffer with R/W bit
cleared
PSTART is set in
I2Cn_STATUS (START
pending)
TXDATA
RXDATA
None
9
10
11
Write data to the transmit
buffer
Read data from receive
buffer
No interaction is required
Data is available in transmit
buffer
Space is available in receive
buffer
When such a command is issued before it can be used/consumed by the I C module, the command is
The commands marked with a * in Table 15.3 (p. 152) can be issued before an interaction is required.
2
2011-04-12 - d0001_Rev1.10
152
www.energymicro.com
相关PDF资料
EFM32GG-STK3700 KIT STARTER GIANT GECKO
EFM32LG-DK3650 KIT DEV EFM32 LEOPARD GECKO
EK-K7-KC705-CES-G-J KINTEX-7 FPGA KC705 EVAL KIT
EK-S6-SP601-G KIT EVAL SPARTAN 6 SP601
EK-S6-SP605-G KIT EVAL SPARTAN 6 SP605
EK-V6-ML631-G-J VIRTEX-6 HXT FPGA ML631 EVAL KIT
EK-V7-VC707-CES-G VIRTEX-7 VC707 EVAL KIT
EK-Z7-ZC702-CES-G ZYNQ-7000 EPP ZC702 EVAL KIT
相关代理商/技术参数
EFM32GG230F1024 功能描述:ARM微控制器 - MCU 1024KB FL 128KB RAM RoHS:否 制造商:STMicroelectronics 核心:ARM Cortex M4F 处理器系列:STM32F373xx 数据总线宽度:32 bit 最大时钟频率:72 MHz 程序存储器大小:256 KB 数据 RAM 大小:32 KB 片上 ADC:Yes 工作电源电压:1.65 V to 3.6 V, 2 V to 3.6 V, 2.2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:LQFP-48 安装风格:SMD/SMT
EFM32GG230F1024G-E-QFN64R 功能描述:IC MCU 32BIT 1MB FLASH 64QFN 制造商:silicon labs 系列:Giant Gecko 包装:剪切带(CT) 零件状态:在售 核心处理器:ARM? Cortex?-M3 核心尺寸:32-位 速度:48MHz 连接性:I2C,IrDA,智能卡,SPI,UART/USART 外设:欠压检测/复位,DMA,POR,PWM,WDT I/O 数:56 程序存储容量:1MB(1M x 8) 程序存储器类型:闪存 EEPROM 容量:- RAM 容量:128K x 8 电压 - 电源(Vcc/Vdd):1.98 V ~ 3.8 V 数据转换器:A/D 8x12b,D/A 2x12b 振荡器类型:内部 工作温度:-40°C ~ 85°C(TA) 封装/外壳:64-VFQFN 裸露焊盘 供应商器件封装:64-QFN(9x9) 标准包装:1
EFM32GG230F1024-QFN64 制造商:Energy Micro AS 功能描述:GIANT GECKO MCU - Cut TR (SOS) 制造商:Energy Micro 功能描述:GIANT GECKO MCU 制造商:Energy Micro AS 功能描述:IC MCU 32BIT 1MB FLASH 64QFN
EFM32GG230F1024-QFN64T 制造商:Energy Micro AS 功能描述:GIANT GECKO MCU - Trays
EFM32GG230F1024-QFN64-T 制造商:Energy Micro AS 功能描述:IC MCU 32BIT 1MB FLASH 64QFN
EFM32-GG230F1024-SK 制造商:Energy Micro AS 功能描述:GIANT GECKO SAMPLE KIT - Bulk
EFM32GG230F1024-T 制造商:Energy Micro AS 功能描述:IC MCU 32BIT 1MB FLASH 64QFN
EFM32GG230F512 功能描述:ARM微控制器 - MCU 512KB FL 128KB RAM RoHS:否 制造商:STMicroelectronics 核心:ARM Cortex M4F 处理器系列:STM32F373xx 数据总线宽度:32 bit 最大时钟频率:72 MHz 程序存储器大小:256 KB 数据 RAM 大小:32 KB 片上 ADC:Yes 工作电源电压:1.65 V to 3.6 V, 2 V to 3.6 V, 2.2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:LQFP-48 安装风格:SMD/SMT