2009 Microchip Technology Inc.
DS80302F-page 7
PIC16F88X
6.
Module: MSSP (I2C Master Mode)
When the MSSP is I2C Master mode with a
slave device stretching the clock, the clock
generation does not function as described in the
data sheet.
When a slave device is performing clock stretching
by pulling the SCL line low, the master device
should continuously sample the SCL line to
determine when all slaves have released SCL.
When SCL is released, the master device should
wait one BRG period to ensure a constant SCL
high time.
The current implementation does not ensure
accurate SCL high time. During clock stretch, the
MSSP device will erroneously continue running
the BRG counter. At the end of the clock stretch
the BRG counter continues to count down for the
remainder of the BRG period, and then the MSSP
device will immediately resume transmitting the
data.
Figure 1 illustrates an expected I2C transmission
in which the SCL line is completely controlled by
the master device and the slave device does not
attempt to stretch the clock period.
Figure 2 illustrates the expected operation of an
I2C transmission in which the slave device has
stretched the clock period by holding the SCL line
low. The high time of the SCL pulse is constant,
regardless of the duration of the clock stretch.
Figure 3 and Figure 4 illustrate an actual I2C
transmission in which the slave has stretched the
clock period by holding the SCL line low. Note that
the high time of the SCL signal has shortened from
the expected time.
FIGURE 1:
ACTUAL (CORRECT) OPERATION WITHOUT CLOCK STRETCHING
FIGURE 2:
EXPECTED OPERATION WITH CLOCK STRETCHING
BRG Period
SDA
SCL
Master
Slave
BRG Period
SDA
SCL
Master
Slave
相关PDF资料
PIC24F08KA101-I/SO IC PIC MCU FLASH 8K 20-SOIC
PIC18F44J10-I/P IC PIC MCU FLASH 8KX16 40DIP
PIC18LF45J10-I/PT IC PIC MCU FLASH 16KX16 44TQFP
DSPIC30F6015T-20I/PT IC DSPIC MCU/DSP 144K 64TQFP
DSPIC30F6014AT-20I/PT IC DSPIC MCU/DSP 144K 80TQFP
PIC24F16KA102-I/SS IC PIC MCU FLASH 16K 28-SSOP
DSPIC30F6013AT-20I/PT IC DSPIC MCU/DSP 132K 80TQFP
DSPIC30F6012AT-20I/PT IC DSPIC MCU/DSP 144K 64TQFP
相关代理商/技术参数
PIC16F886-I/ML 制造商:Microchip Technology Inc 功能描述:8-Bit Microcontroller IC
PIC16F886-I/SO 功能描述:8位微控制器 -MCU 14KB Flash 368 RAM 25 I/O 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
PIC16F886-I/SO 制造商:Microchip Technology Inc 功能描述:8-Bit Microcontroller IC
PIC16F886-I/SP 功能描述:8位微控制器 -MCU 14KB Flash 368 RAM 25 I/O 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
PIC16F886-I/SP 制造商:Microchip Technology Inc 功能描述:8-Bit Microcontroller IC
PIC16F886-I/SS 功能描述:8位微控制器 -MCU 14KB Flash 368 RAM 25 I/O 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
PIC16F886-I/SS 制造商:Microchip Technology Inc 功能描述:8-BIT MICROCONTROLLER IC
PIC16F886T-E/ML 制造商:Microchip Technology Inc 功能描述: