欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC18F4520-I/P 参数 Datasheet PDF下载

PIC18F4520-I/P图片预览
型号: PIC18F4520-I/P
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚增强型闪存微控制器与10位A / D和纳瓦技术 [28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管时钟
文件页数/大小: 412 页 / 6898 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F4520-I/P的Datasheet PDF文件第173页浏览型号PIC18F4520-I/P的Datasheet PDF文件第174页浏览型号PIC18F4520-I/P的Datasheet PDF文件第175页浏览型号PIC18F4520-I/P的Datasheet PDF文件第176页浏览型号PIC18F4520-I/P的Datasheet PDF文件第178页浏览型号PIC18F4520-I/P的Datasheet PDF文件第179页浏览型号PIC18F4520-I/P的Datasheet PDF文件第180页浏览型号PIC18F4520-I/P的Datasheet PDF文件第181页  
PIC18F2420/2520/4420/4520  
17.4.3.2  
Reception  
17.4.3.3  
Transmission  
When the R/W bit of the address byte is clear and an  
address match occurs, the R/W bit of the SSPSTAT  
register is cleared. The received address is loaded into  
the SSPBUF register and the SDA line is held low  
(ACK).  
When the R/W bit of the incoming address byte is set  
and an address match occurs, the R/W bit of the  
SSPSTAT register is set. The received address is  
loaded into the SSPBUF register. The ACK pulse will  
be sent on the ninth bit and the RC3/SCK/SCL pin is  
held low regardless of SEN (see Section 17.4.4  
“Clock Stretching” for more detail). By stretching the  
clock, the master will be unable to assert another clock  
pulse until the slave is done preparing the transmit  
data. The transmit data must be loaded into the  
SSPBUF register which also loads the SSPSR register.  
Then the RC3/SCK/SCL pin should be enabled by set-  
ting bit, CKP (SSPCON1<4>). The eight data bits are  
shifted out on the falling edge of the SCL input. This  
ensures that the SDA signal is valid during the SCL  
high time (Figure 17-9).  
When the address byte overflow condition exists, then  
the no Acknowledge (ACK) pulse is given. An overflow  
condition is defined as either bit, BF (SSPSTAT<0>), is  
set, or bit, SSPOV (SSPCON1<6>), is set.  
An MSSP interrupt is generated for each data transfer  
byte. Flag bit, SSPIF (PIR1<3>), must be cleared in  
software. The SSPSTAT register is used to determine  
the status of the byte.  
If SEN is enabled (SSPCON2<0> = 1), RC3/SCK/SCL  
will be held low (clock stretch) following each data  
transfer. The clock must be released by setting bit,  
CKP (SSPCON<4>). See Section 17.4.4 “Clock  
Stretching” for more details.  
The ACK pulse from the master-receiver is latched on  
the rising edge of the ninth SCL input pulse. If the SDA  
line is high (not ACK), then the data transfer is com-  
plete. In this case, when the ACK is latched by the  
slave, the slave logic is reset (resets SSPSTAT regis-  
ter) and the slave monitors for another occurrence of  
the Start bit. If the SDA line was low (ACK), the next  
transmit data must be loaded into the SSPBUF register.  
Again, the RC3/SCK/SCL pin must be enabled by  
setting bit, CKP.  
An MSSP interrupt is generated for each data transfer  
byte. The SSPIF bit must be cleared in software and  
the SSPSTAT register is used to determine the status  
of the byte. The SSPIF bit is set on the falling edge of  
the ninth clock pulse.  
© 2008 Microchip Technology Inc.  
DS39631E-page 175  
 复制成功!