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

PIC16C74B-04/P 参数 Datasheet PDF下载

PIC16C74B-04/P图片预览
型号: PIC16C74B-04/P
PDF下载: 下载PDF文件 查看货源
内容描述: 40分之28引脚8位CMOS微控制器 [28/40-Pin 8-Bit CMOS Microcontrollers]
分类和应用: 微控制器和处理器外围集成电路光电二极管可编程只读存储器时钟
文件页数/大小: 184 页 / 2122 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16C74B-04/P的Datasheet PDF文件第57页浏览型号PIC16C74B-04/P的Datasheet PDF文件第58页浏览型号PIC16C74B-04/P的Datasheet PDF文件第59页浏览型号PIC16C74B-04/P的Datasheet PDF文件第60页浏览型号PIC16C74B-04/P的Datasheet PDF文件第62页浏览型号PIC16C74B-04/P的Datasheet PDF文件第63页浏览型号PIC16C74B-04/P的Datasheet PDF文件第64页浏览型号PIC16C74B-04/P的Datasheet PDF文件第65页  
PIC16C63A/65B/73B/74B  
1. Receive first (high) byte of address (bits SSPIF,  
BF, and bit UA (SSPSTAT<1>) are set).  
10.3.1.1  
Addressing  
Once the SSP module has been enabled, it waits for a  
START condition to occur. Following the START condi-  
tion, 8-bits are shifted into the SSPSR register. All  
incoming bits are sampled with the rising edge of the  
clock (SCL) line. The value of register SSPSR<7:1> is  
compared to the value of the SSPADD register. The  
address is compared on the falling edge of the eighth  
clock (SCL) pulse. If the addresses match, and the BF  
and SSPOV bits are clear, the following events occur:  
2. Update the SSPADD register with second (low)  
byte of Address (clears bit UA and releases the  
SCL line).  
3. Read the SSPBUF register (clears bit BF) and  
clear flag bit SSPIF.  
4. Receive second (low) byte of address (bits  
SSPIF, BF, and UA are set).  
5. Update the SSPADD register with the first (high)  
byte of address, if match releases SCL line, this  
will clear bit UA.  
a) The SSPSR register value is loaded into the  
SSPBUF register.  
6. Read the SSPBUF register (clears bit BF) and  
clear flag bit SSPIF.  
b) The buffer full bit, BF is set.  
c) An ACK pulse is generated.  
7. Receive Repeated START condition.  
d) SSP interrupt flag bit, SSPIF (PIR1<3>) is set  
(interrupt is generated if enabled) - on the falling  
edge of the ninth SCL pulse.  
8. Receive first (high) byte of address (bits SSPIF  
and BF are set).  
9. Read the SSPBUF register (clears bit BF) and  
clear flag bit SSPIF.  
In 10-bit address mode, two address bytes need to be  
received by the slave (Figure 10-7). The five Most Sig-  
nificant bits (MSbs) of the first address byte specify if  
this is a 10-bit address. Bit R/W (SSPSTAT<2>) must  
specify a write so the slave device will receive the sec-  
ond address byte. For a 10-bit address, the first byte  
would equal 1111 0 A9 A8 0, where A9and A8are  
the two MSbs of the address. The sequence of events  
for 10-bit address is as follows, with steps 7 - 9 for  
slave-transmitter:  
TABLE 10-2: DATA TRANSFER RECEIVED BYTE ACTIONS  
Status Bits as Data  
Set bit SSPIF  
(SSP Interrupt occurs  
if enabled)  
Generate ACK  
Transfer is Received  
SSPSR SSPBUF  
Pulse  
BF  
SSPOV  
0
1
1
0
0
0
1
1
Yes  
No  
No  
No  
Yes  
No  
No  
No  
Yes  
Yes, SSPOV is set  
Yes  
Yes  
Note: Shaded cells show the conditions where the user software did not properly clear the overflow condition.  
2000 Microchip Technology Inc.  
DS30605C-page 61