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

89C51RB2-UM 参数 Datasheet PDF下载

89C51RB2-UM图片预览
型号: 89C51RB2-UM
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器,带有16K / 32K字节的闪存 [8-bit Microcontroller with 16K/ 32K Bytes Flash]
分类和应用: 闪存微控制器
文件页数/大小: 127 页 / 1478 K
品牌: ATMEL [ ATMEL ]
 浏览型号89C51RB2-UM的Datasheet PDF文件第66页浏览型号89C51RB2-UM的Datasheet PDF文件第67页浏览型号89C51RB2-UM的Datasheet PDF文件第68页浏览型号89C51RB2-UM的Datasheet PDF文件第69页浏览型号89C51RB2-UM的Datasheet PDF文件第71页浏览型号89C51RB2-UM的Datasheet PDF文件第72页浏览型号89C51RB2-UM的Datasheet PDF文件第73页浏览型号89C51RB2-UM的Datasheet PDF文件第74页  
Functional Description  
Figure 26 shows a detailed structure of the SPI Module.  
Figure 26. SPI Module Block Diagram  
Internal Bus  
SPDAT  
Shift Register  
FCLK PERIPH  
7
6
5
4
3
2
1
0
/4  
/8  
/16  
/32  
/64  
Clock  
Divider  
Receive Data Register  
Pin  
Control  
Logic  
MOSI  
MISO  
/128  
Clock  
Logic  
M
S
SCK  
SS  
Clock  
Select  
SPR2  
SPEN SSDIS MSTR CPOL CPHA SPR1 SPR0  
SPCON  
8-bit bus  
SPI  
Control  
1-bit signal  
SPI Interrupt Request  
SPSTA  
-
-
-
-
-
SPIF WCOL  
MODF  
Operating Modes  
The Serial Peripheral Interface can be configured in one of the two modes: Master  
mode or Slave mode. The configuration and initialization of the SPI Module is made  
through one register:  
The Serial Peripheral Control register (SPCON)  
Once the SPI is configured, the data exchange is made using:  
SPCON  
The Serial Peripheral STAtus register (SPSTA)  
The Serial Peripheral DATa register (SPDAT)  
During an SPI transmission, data is simultaneously transmitted (shifted out serially) and  
received (shifted in serially). A serial clock line (SCK) synchronizes shifting and sam-  
pling on the two serial data lines (MOSI and MISO). A Slave Select line (SS) allows  
individual selection of a Slave SPI device; Slave devices that are not selected do not  
interfere with SPI bus activities.  
When the Master device transmits data to the Slave device via the MOSI line, the Slave  
device responds by sending data to the Master device via the MISO line. This implies  
full-duplex transmission with both data out and data in synchronized with the same clock  
(Figure 27).  
70  
AT89C51RB2/RC2  
4180E–8051–10/06  
 复制成功!