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

MPC82G516AD 参数 Datasheet PDF下载

MPC82G516AD图片预览
型号: MPC82G516AD
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-bit microcontroller]
分类和应用: 微控制器
文件页数/大小: 144 页 / 1527 K
品牌: MEGAWIN [ MEGAWIN TECHNOLOGY CO., LTD ]
 浏览型号MPC82G516AD的Datasheet PDF文件第57页浏览型号MPC82G516AD的Datasheet PDF文件第58页浏览型号MPC82G516AD的Datasheet PDF文件第59页浏览型号MPC82G516AD的Datasheet PDF文件第60页浏览型号MPC82G516AD的Datasheet PDF文件第62页浏览型号MPC82G516AD的Datasheet PDF文件第63页浏览型号MPC82G516AD的Datasheet PDF文件第64页浏览型号MPC82G516AD的Datasheet PDF文件第65页  
12.2 Enhanced UART Functions  
In addition to the standard operation, the UART can perform framing error detection by looking for missing stop  
bits, and automatic address recognition.  
12.2.1 Framing Error Detection  
When used for framing error detection, the UART looks for missing stop bits in the communication. A missing  
stop bit will set the FE bit in the SCON register. The FE bit shares the SCON.7 bit with SM0 and the function of  
SCON.7 is determined by SMOD0 bit (PCON.6). If SMOD0 is set then SCON.7 functions as FE. SCON.7  
functions as SM0 when SMOD0 is cleared. When SCON.7 functions as FE, it can only be cleared by software.  
Refer to Figure 12-5.  
Figure 12-5. UART Framing Error Detection  
12.2.2 Automatic Address Recognition  
Automatic Address Recognition is a feature which allows the UART to recognize certain addresses in the serial  
bit stream by using hardware to make the comparisons. This feature saves a great deal of software overhead by  
eliminating the need for the software to examine every serial address which passes by the serial port. This  
feature is enabled by setting the SM2 bit in SCON.  
In the 9 bit UART modes, mode 2 and mode 3, the Receive Interrupt flag (RI) will be automatically set when the  
received byte contains either the “Given” address or the “Broadcast” address. The 9-bit mode requires that the  
9th information bit is a 1 to indicate that the received information is an address and not data. Automatic address  
recognition is shown in Figure 12-6. The 8 bit mode is called Mode 1. In this mode the RI flag will be set if SM2 is  
enabled and the information received has a valid stop bit following the 8 address bits and the information is either  
a Given or Broadcast address. Mode 0 is the Shift Register mode and SM2 is ignored.  
Using the Automatic Address Recognition feature allows a master to selectively communicate with one or more  
slaves by invoking the Given slave address or addresses. All of the slaves may be contacted by using the  
Broadcast address. Two special Function Registers are used to define the slave’s address, SADDR, and the  
address mask, SADEN.  
SADEN is used to define which bits in the SADDR are to be used and which bits are “don’t care”. The SADEN  
mask can be logically ANDed with the SADDR to create the “Given” address which the master will use for  
addressing each of the slaves. Use of the Given address allows multiple slaves to be recognized while excluding  
others.  
The following examples will help to show the versatility of this scheme:  
61  
MPC82G516A Data Sheet  
MEGAWIN  
 
 复制成功!