English
Language : 

SM39R08A5 Datasheet, PDF (27/58 Pages) SyncMOS Technologies,Inc – Additional Baud Rate Generator
SM39R08A5
8-Bit Micro-controller
with 8KB Flash
& 256B RAM embedded
7. Serial interface
The serial buffer consists of two separate registers, a transmit buffer and a receive buffer.
Writing data to the Special Function Register SBUF sets this data in serial output buffer and starts the transmission.
Reading from the SBUF reads data from the serial receive buffer. The serial port can simultaneously transmit and receive
data. It can also buffer 1 byte at receive, which prevents the receive data from being lost if the CPU reads the first byte
before transmission of the second byte is completed.
Mnemonic Description
PCON
AUX
SCON
SBUF
SRELL
SRELH
Power control
Auxiliary register
Serial Port
control register
Serial Port
data buffer
Serial Port
reload register
low byte
Serial Port
reload register
high byte
Direct
87H
91h
98H
99H
AAH
BAH
Bit 7
SMOD
BRGS
Bit 6 Bit 5
Serial interface
-
-
-
-
Bit 4 Bit 3
-
-
PTS[1:0]
SM0 SM1 SM2 REN TB8
SBUF[7:0]
SREL SREL SREL SREL SREL
.7
.6
.5
.4
.3
-
Bit 2 Bit 1 Bit 0 RESET
- STOP IDLE 40H
PINTS[1:0] DPS 00H
RB8 TI
RI
00H
00H
SREL SREL SREL
.2
.1
.0
00H
SREL SREL
.9
.8
00H
Mnemonic: AUX
7
6
5
BRGS
-
-
4
3
PTS[1:0]
2
1
PINTS[1:0]
Address: 91h
0 Reset
DPS 00H
BRGS: BRGS = 0 –Baud rate generator use Timer 1 TH1 SFR.
BRGS = 1 –Baud rate generator use SREL SFR.
Mnemonic: SCON
Address: 98h
7
6
5
4
3
2
1
0 Reset
SM0 SM1 SM2 REN TB8
RB8
TI
RI
00h
SM0,SM1: Serial Port mode selection.
SM0 SM1 Mode
0
0
0
0
1
1
1
0
2
1
1
3
The 4 modes in UART, Mode 0 ~ 3, are explained later.
SM2: Enables multiprocessor communication feature
REN: If set, enables serial reception. Cleared by software to disable reception.
TB8: The 9th transmitted data bit in modes 2 and 3. Set or cleared by the CPU
depending on the function it performs such as parity check, multiprocessor
communication etc.
RB8: In modes 2 and 3, it is the 9th data bit received. In mode 1, if SM2 is 0, RB8 is
the stop bit. In mode 0, this bit is not used. Must be cleared by software.
TI: Transmit interrupt flag, set by hardware after completion of a serial transfer.
Must be cleared by software.
RI: Receive interrupt flag, set by hardware after completion of a serial reception.
Must be cleared by software.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M067
Ver E SM39R08A5 06/30/2015
- 27 -