78M6612 Data Sheet
DS_6612_001
Serial Interface 1 Control Register (S1CON)
The function of the serial port depends on the setting of the Serial Port Control Register S1CON.
Table 14: The S1CON Register
MSB
SM
LSB
RI1
–
SM21
REN1
TB81
RB81
TI1
Bit
Symbol
Function
S1CON[7]
SM
Sets the baud rate for UART1
SM
0
Mode
Description
Baud Rate
variable
A
B
9-bit UART
8-bit UART
1
variable
S1CON[5]
S1CON[4]
S1CON[3]
SM21
REN1
TB81
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[2]
S1CON[1]
S1CON[0]
RB81
TI1
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 transfer.
Must be cleared by software.
RI1
Receive interrupt flag, set by hardware after completion of a serial reception.
Must be cleared by software.
26
Rev. 1.2