欢迎访问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文件第40页浏览型号89C51RB2-UM的Datasheet PDF文件第41页浏览型号89C51RB2-UM的Datasheet PDF文件第42页浏览型号89C51RB2-UM的Datasheet PDF文件第43页浏览型号89C51RB2-UM的Datasheet PDF文件第45页浏览型号89C51RB2-UM的Datasheet PDF文件第46页浏览型号89C51RB2-UM的Datasheet PDF文件第47页浏览型号89C51RB2-UM的Datasheet PDF文件第48页  
Serial I/O Port  
The serial I/O port in the AT89C51RB2/RC2 is compatible with the serial I/O port in the  
80C52.  
It provides both synchronous and asynchronous communication modes. It operates as a  
Universal Asynchronous Receiver and Transmitter (UART) in three full-duplex modes  
(Modes 1, 2 and 3). Asynchronous transmission and reception can occur simultaneously  
and at different baud rates  
Serial I/O port includes the following enhancements:  
Framing error detection  
Automatic address recognition  
Framing Error Detection Framing bit error detection is provided for the three asynchronous modes (modes 1, 2  
and 3). To enable the framing bit error detection feature, set SMOD0 bit in PCON regis-  
ter (See Figure 17).  
Figure 17. Framing Error Block Diagram  
SM0/FE SM1  
SM2  
REN  
TB8  
RB8  
TI  
RI  
SCON (98h)  
Set FE bit if stop bit is 0 (framing error) (SMOD0 = 1)  
SM0 to UART mode control (SMOD0 = 0)  
PCON (87h)  
SMOD1SMOD0  
-
POF GF1  
GF0  
PD  
IDL  
To UART framing error control  
When this feature is enabled, the receiver checks each incoming data frame for a valid  
stop bit. An invalid stop bit may result from noise on the serial lines or from simultaneous  
transmission by two CPUs. If a valid stop bit is not found, the Framing Error bit (FE) in  
SCON register (See Table 33.) bit is set.  
Software may examine FE bit after each reception to check for data errors. Once set,  
only software or a reset can clear FE bit. Subsequently received frames with valid stop  
bits cannot clear FE bit. When FE feature is enabled, RI rises on stop bit instead of the  
last data bit (See Figure 18. and Figure 19.).  
Figure 18. UART Timings in Mode 1  
RXD  
D0  
D1  
D2  
D3  
D4  
D5  
D6  
D7  
Start  
bit  
Data byte  
Stop  
bit  
RI  
SMOD0=X  
FE  
SMOD0=1  
44  
AT89C51RB2/RC2  
4180E–8051–10/06  
 复制成功!