参数资料
型号: ST72E85A5G0
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, UVPROM, 4.332 MHz, MICROCONTROLLER, CQFP80
封装: WINDOWED, CERAMIC, QFP- 80
文件页数: 76/117页
文件大小: 748K
代理商: ST72E85A5G0
61/117
ST7285C
I
2C BUS INTERFACE (Cont’d)
STATUS REGISTER 2 (SR2)
Address: 002Ah
Read Only
Reset Value: 00h
b7-5 = reserved.
b4: AF
Acknowledge Failure
The Acknowledge Failure bit is set when no ac-
knowledge is returned. If this bit is set, then an in-
terrupt is sent to the microcontroller if ITE is set.
During this interrupt, the SCL line is not hold low.
This bit is cleared by a read of the Status Register.
It is also cleared when the peripheral is disabled
(PE=0) or by reset.
b3: STOPF
Stop Detection Flag (in Slave mode)
StopF bit is set when a Stop condition is detected
on the SCL line after an acknowledge of byte.
When this bit is set, an interrupt is sent to the mi-
crocontroller if ITE is set. During this interrupt, the
SCL line is not hold low.
This bit is cleared by a read of the status register
(when StopF is set). It is also cleared when the pe-
ripheral is disabled (PE=0) or by reset.
b2: ARLO
Arbitration Lost
ARLO is set when the I
2C interface loses the arbi-
tration of the bus to another Master. After ARLO is
set, the interface operates in Slave mode (M/SL at
a logic low) and an interrupt is generated if ITE is
set. During this interrupt, the SCL line is not hold
low.
This bit is cleared by a read of the Status register.
It is also cleared when the peripheral is disabled
(PE=0) or by reset.
b1: BERR
Bus Error
BERR bit is set when a misplaced start or stop
condition is detected. If this bit is set, then an inter-
rupt is sent to the microcontroller if ITE is set. Dur-
ing this interrupt, the SCL line is not hold low.
The Bus Error flag bit is cleared by a read of the
status register (when BERR is set). It is also
cleared when the peripheral is disabled (PE=0) or
by reset.
b0: GCAL
General Call (Slave mode)
If ENGC is set, GCAL is set following detection of
a general call address.
It is cleared by the detection of a stop condition, by
reset or when the peripheral is disabled (PE=0).
4.5.6 I
2C State Machine:
In I
2C mode, the I2C interface always operates in
Slave mode (M/SL at logic low level) except when
it initiates a transmission or a receive sequence.
It enables the multimaster function with an auto-
matic switch from Master mode to Slave mode
when the interface loses the arbitration of the I
2C
bus. So, the Slave process is active both in Slave
mode and in Master mode.
4.5.6.1 Slave mode
As soon as a start condition is detected, the ad-
dress word is received from the SDA line and it is
sent to the shift register; then it is compared with
the interface address.
– Address no matched: the state machine is reset
and it waits for another Start bit.
– Address matched: the Addressed As Slave bit
(ADSL) is set and an acknowledge bit is sent to
the Master if ACK is set. So an interrupt is sent to
the microcontroller if ITE is set; it then waits for
the microcontroller to read Status Register 1 by
holding the SCL line low.
Then, depending on the Data Direction bit (least
significant bit), and after generating an acknowl-
edge, the Slave must enter Send or Receive
mode.
4.5.6.2 Slave Receiving
The Slave receives words from the SDA line into
the shift register and it sends them to the data reg-
ister. After each word it generates an acknowledge
bit if the Enable Acknowledge flag is set. When the
acknowledge bit is sent, the BTF flag is set and an
interrupt is generated if ITE is set.Then it waits for
the microcontroller to read the Data Register by
holding the SCL line low.
- Detection of a Stop or a Start condition during a
byte reception: the BERR flag is set and an inter-
rupt is generated.
- Detection of a Start condition after an acknowl-
edge time-slot: the state machine is reset and
starts a new process.
- Detection of a Stop condition after an acknowl-
edge time-slot: the Slave state machine is reset.
Then the SSTOP flag is set and an interrupt is
generated if ITE is set.
- The Stop bit is set in the control register: the state
machine is reset after transfer of the current byte.
70
-
AF
STOP F
ARLO
BERR
GCAL
相关PDF资料
PDF描述
ST72F321J9T7 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP44
ST72F321J7T3 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP44
ST72F321J7T1 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP44
ST72F321J9T5 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP44
ST72F324BJ6B6 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PDIP42
相关代理商/技术参数
参数描述
ST72F260G1B5 功能描述:8位微控制器 -MCU Flask 4K SPI RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
ST72F260G1M6 功能描述:8位微控制器 -MCU Flash 4K SPI/I2C/SCI RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
ST72F260G1M6/TR 功能描述:8位微控制器 -MCU 8B MCU FLASH OR ROM MEMORY RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
ST72F262G1B5 功能描述:8位微控制器 -MCU Flask 4K SPI RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
ST72F262G1B6 功能描述:8位微控制器 -MCU 8B MCU RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT