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

71M6531D_10 参数 Datasheet PDF下载

71M6531D_10图片预览
型号: 71M6531D_10
PDF下载: 下载PDF文件 查看货源
内容描述: 电能计量IC [Energy Meter IC]
分类和应用:
文件页数/大小: 120 页 / 1966 K
品牌: TERIDIAN [ TERIDIAN SEMICONDUCTOR CORPORATION ]
 浏览型号71M6531D_10的Datasheet PDF文件第23页浏览型号71M6531D_10的Datasheet PDF文件第24页浏览型号71M6531D_10的Datasheet PDF文件第25页浏览型号71M6531D_10的Datasheet PDF文件第26页浏览型号71M6531D_10的Datasheet PDF文件第28页浏览型号71M6531D_10的Datasheet PDF文件第29页浏览型号71M6531D_10的Datasheet PDF文件第30页浏览型号71M6531D_10的Datasheet PDF文件第31页  
FDS 6531/6532 005  
Data Sheet 71M6531D/F-71M6532D/F  
The feature of receiving 9 bits (Mode 3 for UART0, Mode A for UART1) can be used as handshake signals  
for inter-processor communication in multi-processor systems. In this case, the slave processors have bit  
SM20 (S0CON[5]) for UART0, or SM21 (S1CON[5] for UART1, set to 1. When the master processor outputs  
the slave’s address, it sets the 9th bit to 1, causing a serial port receive interrupt in all the slaves. The slave  
processors compare the received byte with their address. If there is a match, the addressed slave will  
clear SM20 or SM21 and receive the rest of the message. All other slaves will ignore the message. After  
addressing the slave, the host outputs the rest of the message with the 9th bit set to 0, so no additional  
serial port receive interrupts will be generated.  
UART Control Registers:  
The functions of UART0 and UART1 depend on the setting of the Serial Port Control Registers S0CON  
and S1CON shown in Table 17 and Table 18, respectively and the PCON register shown in Table 19.  
Since the TI0, RI0, TI1 and RI1 bits are in an SFR bit addressable byte, common practice  
would be to clear them with a bit operation, but this must be avoided. The hardware implements  
bit operations as a byte wide read-modify-write hardware macro. If an interrupt occurs after  
the read, but before the write, its flag will be cleared unintentionally.  
The proper way to clear these flag bits is to write a byte mask consisting of all ones except for  
a zero in the location of the bit to be cleared. The flag bits are configured in hardware to ignore  
ones written to them.  
Table 17: The S0CON (UART0) Register (SFR 0x98)  
Bit  
Symbol  
Function  
The SM0 and SM1 bits set the UART0 mode:  
Mode  
Description  
N/A  
SM0  
SM1  
S0CON[7]  
SM0  
0
1
2
3
0
0
1
1
0
1
0
1
8-bit UART  
9-bit UART  
9-bit UART  
S0CON[6]  
SM1  
S0CON[5]  
S0CON[4]  
SM20  
REN0  
Enables the inter-processor communication feature.  
If set, enables serial reception. Cleared by software to disable reception.  
The 9th transmitted data bit in Modes 2 and 3. Set or cleared by the  
MPU, depending on the function it performs (parity check, multiprocessor  
communication etc.)  
In Modes 2 and 3 it is the 9th data bit received. In Mode 1, SM20 is 0,  
RB80 is the stop bit. In mode 0, this bit is not used. Must be cleared by  
software.  
S0CON[3]  
S0CON[2]  
TB80  
RB80  
Transmit interrupt flag; set by hardware after completion of a serial transfer.  
Must be cleared by software.  
S0CON[1]  
S0CON[0]  
TI0  
RI0  
Receive interrupt flag; set by hardware after completion of a serial reception.  
Must be cleared by software.  
Table 18: The S1CON (UART1) register (SFR 0x9B)  
Bit  
Symbol  
Function  
Sets the baud rate and mode for UART1.  
SM  
0
Mode  
Description  
9-bit UART  
8-bit UART  
Baud Rate  
variable  
variable  
S1CON[7]  
SM  
A
B
1
S1CON[5]  
S1CON[4]  
SM21  
REN1  
Enables the inter-processor communication feature.  
If set, enables serial reception. Cleared by software to disable reception.  
The 9th transmitted data bit in Mode A. Set or cleared by the MPU,  
depending on the function it performs (parity check, multiprocessor  
communication etc.)  
S1CON[3]  
TB81  
v1.3  
© 2005-2010 TERIDIAN Semiconductor Corporation  
27