English
Language : 

SM59R16A2 Datasheet, PDF (35/67 Pages) SyncMOS Technologies,Inc – 8-Bit Micro-controller
SM59R16A2/SM59R08A2
8-Bit Micro-controller
64KB/32KB ISP Flash & 2KB RAM embedded
9.1 Serial interface 0
The Serial Interface 0 can operate in the following 4 modes:
SM0
0
0
1
1
SM1
0
1
0
1
Mode
0
1
2
3
Description
Shift register
8-bit UART
9-bit UART
9-bit UART
Board Rate
Fosc/12
Variable
Fosc/32 or Fosc/64
Variable
Here Fosc is the crystal or oscillator frequency.
9.1.1 Mode 0
Pin RXD0 serves as input and output. TXD0 outputs the shift clock. 8 bits are transmitted with
LSB first. The baud rate is fixed at 1/12 of the crystal frequency. Reception is initialized in Mode 0
by setting the flags in S0CON as follows: RI0 = 0 and REN0 = 1. In the other modes, a start bit
when REN0 = 1 starts receiving serial data.
Fig. 9-1: Transmit mode 0 for Serial 0
Fig. 9-2: Receive mode 0 for Serial 0
9.1.2 Mode 1
Here Pin RXD0 serves as input, and TXD0 serves as serial output. No external shift clock is used,
10 bits are transmitted: a start bit (always 0), 8 data bits (LSB first), and a stop bit (always 1). On
receive, a start bit synchronizes the transmission, 8 data bits are available by reading S0BUF, and a
stop bit sets the flag RB80 in the SFR S0CON. In mode 1, either internal baud rate generator or
timer 1 can be use to specify the desired baud rate.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M034
35
Ver.B SM59R16A2/SM59R08A2 06/2009