欢迎访问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文件第125页浏览型号895132-UL的Datasheet PDF文件第126页浏览型号895132-UL的Datasheet PDF文件第127页浏览型号895132-UL的Datasheet PDF文件第128页浏览型号895132-UL的Datasheet PDF文件第130页浏览型号895132-UL的Datasheet PDF文件第131页浏览型号895132-UL的Datasheet PDF文件第132页浏览型号895132-UL的Datasheet PDF文件第133页  
AT89C5132  
Figure 19-12. Slave SPI Interrupt Policy Flows  
SPI Initialization  
Interrupt Policy  
SPI Interrupt  
Service Routine  
Select Slave Mode  
MSTR = 0  
Get Status  
Read SPSTA  
Select Format  
Program CPOL & CPHA  
Get Data Received  
Read SPDAT  
Enable Interrupt  
ESPI =1  
Prepare New Transfer  
Write Data in SPDAT  
Enable SPI  
SPEN = 1  
Prepare Transfer  
Write Data in SPDAT  
19.4 Registers  
Table 98. SPCON Register  
SPCON (S:C3h) – SPI Control Register  
7
6
5
4
3
2
1
0
SPR2  
SPEN  
SSDIS  
MSTR  
CPOL  
CPHA  
SPR1  
SPR0  
Bit  
Bit Number Mnemonic Description  
SPI Rate Bit 2  
Refer to Table 97 for bit rate description.  
7
6
SPR2  
SPEN  
SPI Enable Bit  
Set to enable the SPI interface.  
Clear to disable the SPI interface.  
Slave Select Input Disable Bit  
Set to disable SS in both master and slave modes. In slave mode this bit has no effect if  
CPHA = 0.  
Clear to enable SS in both master and slave modes.  
5
SSDIS  
Master Mode Select  
Set to select the master mode.  
Clear to select the slave mode.  
4
3
2
MSTR  
CPOL  
CPHA  
SPI Clock Polarity Bit(1)  
Set to have the clock output set to high level in idle state.  
Clear to have the clock output set to low level in idle state.  
SPI Clock Phase Bit  
Set to have the data sampled when the clock returns to idle state (see CPOL).  
Clear to have the data sampled when the clock leaves the idle state (see CPOL).  
129  
4173E–USB–09/07  
 复制成功!