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

895132-UL 参数 Datasheet PDF下载

895132-UL图片预览
型号: 895132-UL
PDF下载: 下载PDF文件 查看货源
内容描述: USB微控制器,带有64K字节Flash存储器 [USB Microcontroller with 64K Bytes Flash Memory]
分类和应用: 存储微控制器
文件页数/大小: 182 页 / 1660 K
品牌: ATMEL [ ATMEL ]
 浏览型号895132-UL的Datasheet PDF文件第130页浏览型号895132-UL的Datasheet PDF文件第131页浏览型号895132-UL的Datasheet PDF文件第132页浏览型号895132-UL的Datasheet PDF文件第133页浏览型号895132-UL的Datasheet PDF文件第135页浏览型号895132-UL的Datasheet PDF文件第136页浏览型号895132-UL的Datasheet PDF文件第137页浏览型号895132-UL的Datasheet PDF文件第138页  
When the slave address and the direction bit have been transmitted and an acknowledgment bit  
has been received, the serial interrupt flag is set again and a number of status code in SSSTA  
are possible. There are 40h, 48h or 38h for the master mode and also 68h, 78h or B0h if the  
slave mode was enabled (SSAA = logic 1). The appropriate action to be taken for each of these  
status code is detailed in Table 20-6. This scheme is repeated until a STOP condition is  
transmitted.  
SSPE and SSCR2:0 are not affected by the serial transfer and are not referred to in Table 20-6.  
After a repeated START condition (state 10h) the controller may switch to the master transmitter  
mode by loading SSDAT with SLA+W.  
20.1.4  
Slave Receiver Mode  
In the slave receiver mode, a number of data Bytes are received from a master transmitter (see  
Figure 20-5). To initiate the slave receiver mode, SSADR and SSCON must be loaded as  
follows:  
SSA6  
SSA5  
SSA4  
SSA3  
SSA2  
SSA1  
SSA0  
SSGC  
X
←  
Own Slave Address  
→  
The upper 7 bits are the addresses to which the controller will respond when addressed by a  
master. If the LSB (SSGC) is set, the controller will respond to the general call address (00h);  
otherwise, it ignores the general call address.  
SSCR2  
X
SSPE  
1
SSSTA  
0
SSSTO  
0
SSI  
0
SSAA  
1
SSCR1  
X
SSCR0  
X
SSCR2:0 have no effect in the slave mode. SSPE must be set to enable the controller. The  
SSAA bit must be set to enable the own slave address or the general call address acknowledg-  
ment. SSSTA, SSSTO and SSI must be cleared.  
When SSADR and SSCON have been initialized, the controller waits until it is addressed by its  
own slave address followed by the data direction bit which must be logic 0 (W) for operating in  
the slave receiver mode. After its own slave address and the W bit has been received, the serial  
interrupt flag is set and a valid status code can be read from SSSTA. This status code is used to  
vector to an interrupt service routine, and the appropriate action to be taken for each of these  
status code is detailed in Table 20-6 and Table 24. The slave receiver mode may also be  
entered if arbitration is lost while the controller is in the master mode (see states 68h and 78h).  
If the SSAA bit is reset during a transfer, the controller will return a not acknowledge (logic 1) to  
SDA after the next received data Byte. While SSAA is reset, the controller does not respond to  
its own slave address. However, the TWI bus is still monitored and address recognition may be  
resumed at any time by setting SSAA. This means that the SSAA bit may be used to temporarily  
isolate the controller from the TWI bus.  
20.1.5  
Slave Transmitter Mode  
In the slave transmitter mode, a number of data Bytes are transmitted to a master receiver (see  
Figure 20-6). Data transfer is initialized as in the slave receiver mode. When SSADR and  
SSCON have been initialized, the controller waits until it is addressed by its own slave address  
followed by the data direction bit which must be logic 1 (R) for operating in the slave transmitter  
mode. After its own slave address and the R bit have been received, the serial interrupt flag is  
set and a valid status code can be read from SSSTA. This status code is used to vector to an  
interrupt service routine, and the appropriate action to be taken for each of these status code is  
detailed in Table 24. The slave transmitter mode may also be entered if arbitration is lost while  
the controller is in the master mode (see state B0h).  
134  
AT89C5132  
4173E–USB–09/07  
 复制成功!