English
Language : 

SM59R16A5 Datasheet, PDF (42/89 Pages) SyncMOS Technologies,Inc – Two serial peripheral interfaces in full duplex mode
SM59R16A5/SM59R09A5/SM59R05A5
8-Bit Micro-controller
64KB/36KB/20KB with ISP Flash
& 2KB RAM embedded
9. Serial interface 0 and 1
There are two serial interfaces for data communication in SM59R16A5, they are the so called UART0 and UART1.
As the conventional UART, the communication speed can be selected by configuring the baud rate in SFRs.
These two serial buffers consists of two separate registers, a transmit buffer and a receive buffer. Writing data to the
SFR S0BUF or S1BUF sets this data in serial output buffer and starts the transmission. Reading from the S0BUF or
S1BUF 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 second byte before the
transmission of the first byte is completed.
Mnemonic Description
PCON
AUX
S0CON
S0RELL
S0RELH
S0BUF
S1CON
S1RELL
S1RELH
S1BUF
Power control
Auxiliary
register
Serial Port 0
control register
Serial Port 0
reload register
low byte
Serial Port 0
reload register
high byte
Serial Port 0
data buffer
Serial Port 1
control register
Serial Port 1
reload register
low byte
Serial Port 1
reload register
high byte
Serial Port 1
data buffer
Direct
87h
91h
98h
Bit 7
SMOD
BRGS
Bit 6 Bit 5 Bit 4
Serial interface 0 and 1
MDUF
-
-
-
P4SPI
P4UR
1
SM0 SM1 SM20 REN0
Bit 3
-
P4IIC
TB80
Bit 2 Bit 1
-
P0KBI
RB80
STOP
P2PW
M
TI0
Bit 0
IDLE
DPS
RI0
RESET
40h
00H
00h
AAh
S0REL S0REL S0REL S0REL S0REL S0REL S0REL S0REL
.7
.6
.5
.4
.3
.2
.1
.0
00h
BAh
-
-
-
-
-
-
S0REL S0REL
.9
.8
00h
99h
S0BUF[7:0]
00h
9Bh
SM
-
SM21 REN1 TB81 RB81 TI1
RI1
00h
9Dh
S1REL S1REL S1REL S1REL S1REL S1REL S1REL S1REL
.7
.6
.5
.4
.3
.2
.1
.0
00h
BBh
-
-
-
-
-
-
S1REL S1REL
.9
.8
00h
9Ch
S1BUF[7:0]
00h
Mnemonic: AUX
7
6
5
BRGS
-
P4SPI
4
P4UR1
3
2
1
P4IIC P0KBI P2PWM
Address: 91h
0 Reset
DPS 00H
P4UR1: P4UR1 = 0 – Serial interface 1 function on P1.
P4UR1 = 1 – Serial interface 1 function on P4.
Mnemonic: S0CON
7
6
5
4
3
2
1
SM0 SM1 SM20 REN0 TB80 RB80 TI0
Address: 98h
0 Reset
RI0 00h
SM0,SM1: Serial Port 0 mode selection.
SM0 SM1 Mode
0
0
0
0
1
1
1
0
2
1
1
3
The 4 modes in UART0, Mode 0 ~ 3, are explained later.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M047
42
Ver.H SM59R16A5 04/2015