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

PIC18F25J10-I/SS 参数 Datasheet PDF下载

PIC18F25J10-I/SS图片预览
型号: PIC18F25J10-I/SS
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚高性能, RISC微控制器 [28/40/44-Pin High-Performance, RISC Microcontrollers]
分类和应用: 微控制器和处理器外围集成电路光电二极管PC时钟
文件页数/大小: 368 页 / 5652 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F25J10-I/SS的Datasheet PDF文件第175页浏览型号PIC18F25J10-I/SS的Datasheet PDF文件第176页浏览型号PIC18F25J10-I/SS的Datasheet PDF文件第177页浏览型号PIC18F25J10-I/SS的Datasheet PDF文件第178页浏览型号PIC18F25J10-I/SS的Datasheet PDF文件第180页浏览型号PIC18F25J10-I/SS的Datasheet PDF文件第181页浏览型号PIC18F25J10-I/SS的Datasheet PDF文件第182页浏览型号PIC18F25J10-I/SS的Datasheet PDF文件第183页  
PIC18F45J10 FAMILY  
I2C Master Mode Operation  
A typical transmit sequence would go as follows:  
16.4.6.1  
1. The user generates a Start condition by setting  
the Start Enable bit, SEN (SSPxCON2<0>).  
The master device generates all of the serial clock  
pulses and the Start and Stop conditions. A transfer is  
ended with a Stop condition or with a Repeated Start  
condition. Since the Repeated Start condition is also  
the beginning of the next serial transfer, the I2C bus will  
not be released.  
2. SSPxIF is set. The MSSP module will wait the  
required start time before any other operation  
takes place.  
3. The user loads the SSPxBUF with the slave  
address to transmit.  
In Master Transmitter mode, serial data is output  
through SDAx, while SCLx outputs the serial clock. The  
first byte transmitted contains the slave address of the  
receiving device (7 bits) and the Read/Write (R/W) bit.  
In this case, the R/W bit will be logic ‘0’. Serial data is  
transmitted 8 bits at a time. After each byte is transmit-  
ted, an Acknowledge bit is received. Start and Stop  
conditions are output to indicate the beginning and the  
end of a serial transfer.  
4. Address is shifted out the SDAx pin until all 8 bits  
are transmitted.  
5. The MSSP module shifts in the ACK bit from the  
slave device and writes its value into the  
SSPxCON2 register (SSPxCON2<6>).  
6. The MSSP module generates an interrupt at the  
end of the ninth clock cycle by setting the  
SSPxIF bit.  
In Master Receive mode, the first byte transmitted  
contains the slave address of the transmitting device  
(7 bits) and the R/W bit. In this case, the R/W bit will be  
logic ‘1’. Thus, the first byte transmitted is a 7-bit slave  
address followed by a ‘1’ to indicate the receive bit.  
Serial data is received via SDAx, while SCLx outputs  
the serial clock. Serial data is received 8 bits at a time.  
After each byte is received, an Acknowledge bit is  
transmitted. Start and Stop conditions indicate the  
beginning and end of transmission.  
7. The user loads the SSPxBUF with eight bits of  
data.  
8. Data is shifted out the SDAx pin until all 8 bits  
are transmitted.  
9. The MSSP module shifts in the ACK bit from the  
slave device and writes its value into the  
SSPxCON2 register (SSPxCON2<6>).  
10. The MSSP module generates an interrupt at the  
end of the ninth clock cycle by setting the  
SSPxIF bit.  
The Baud Rate Generator used for the SPI mode  
operation is used to set the SCLx clock frequency for  
either 100 kHz, 400 kHz or 1 MHz I2C operation. See  
Section 16.4.7 “Baud Rate” for more detail.  
11. The user generates a Stop condition by setting  
the Stop Enable bit, PEN (SSPxCON2<2>).  
12. Interrupt is generated once the Stop condition is  
complete.  
© 2009 Microchip Technology Inc.  
DS39682E-page 177  
 复制成功!