78M6612 Data Sheet
Serial Interface 1 Control Register (S1CON)
DS_6612_001
The function of the serial port depends on the setting of the Serial Port Control Register
S1CON
.
Table 14: The
S1CON
Register
MSB
SM
Bit
S1CON[7]
Symbol
SM
–
SM21
Function
Sets the baud rate for UART1
SM
0
1
S1CON[5]
S1CON[4]
S1CON[3]
SM21
REN1
TB81
Mode
A
B
Description
9-bit UART
8-bit UART
Baud Rate
variable
variable
REN1
TB81
RB81
TI1
LSB
RI1
Enables the inter-processor communication feature.
If set, enables serial reception. Cleared by software to disable reception.
The 9
th
transmitted data bit in Mode A. Set or cleared by the MPU,
depending on the function it performs (parity check, multiprocessor
communication etc.).
In Modes A and B, it is the 9
th
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 transfer.
Must be cleared by software.
Receive interrupt flag, set by hardware after completion of a serial reception.
Must be cleared by software.
S1CON[2]
S1CON[1]
S1CON[0]
RB81
TI1
RI1
26
Rev. 1.2