English
Language : 

71M6531D Datasheet, PDF (28/115 Pages) Teridian Semiconductor Corporation – Energy Meter IC
Data Sheet 71M6531D/F-71M6532D/F
FDS 6531/6532 005
Bit
S0CON[7]
S0CON[6]
S0CON[5]
S0CON[4]
S0CON[3]
S0CON[2]
S0CON[1]
S0CON[0]
Table 17: The S0CON (UART0) Register (SFR 0x98)
Symbol
SM0
SM1
SM20
REN0
TB80
RB80
TI0
RI0
Function
The SM0 and SM1 bits set the UART0 mode:
Mode Description
SM0
SM1
0
N/A
0
0
1
8-bit UART
0
1
2
9-bit UART
1
0
3
9-bit UART
1
1
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.
Transmit interrupt flag; set by hardware after completion of a serial trans-
fer. Must be cleared by software.
Receive interrupt flag; set by hardware after completion of a serial recep-
tion. Must be cleared by software.
Bit
S1CON[7]
S1CON[5]
S1CON[4]
S1CON[3]
S1CON[2]
S1CON[1]
S1CON[0]
Table 18: The S1CON (UART1) register (SFR 0x9B)
Symbol
SM
Function
Sets the baud rate and mode for UART1.
SM21
REN1
TB81
RB81
TI1
RI1
SM
Mode Description
Baud Rate
0
A 9-bit UART
variable
1
B 8-bit UART
variable
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, de-
pending on the function it performs (parity check, multiprocessor commu-
nication etc.)
In Modes A and B, it is the 9th data bit received. In Mode B, if SM21 is 0,
RB81 is the stop bit. Must be cleared by software
Transmit interrupt flag, set by hardware after completion of a serial trans-
fer. Must be cleared by software.
Receive interrupt flag, set by hardware after completion of a serial recep-
tion. Must be cleared by software.
Bit
PCON[7]
PCON[6:2]
PCON[1]
PCON[0]
Table 19: PCON Register Bit Description (SFR 0x87)
Symbol
SMOD
–
STOP
IDLE
Function
The SMOD bit doubles the baud rate when set
Not used.
Stops MPU flash access and MPU peripherals including timers and
UARTs when set until an external interrupt is received.
Stops MPU flash access when set until an internal interrupt is received.
28
© 2005-2009 TERIDIAN Semiconductor Corporation
v1.2