Megawin Technology Co., Ltd.
MG87FE/L52
8.4 UART (Universal Asynchronous Receiver & Transmitter interface)
The serial port of MG87FE/L52 support full-duplex transmission. It can transmit and receive
simultaneously. The serial port receive and transmit share the same SFR – SBUF, but actually
there is two SBUFs in the chip, one is for transmitter and the other is for receiver. The serial port
could be operated in 4 different modes.
Mode 0
Serial data enters and exits through RXD(P3.0) and TXD(P3.1) outputs the shift clock. 8-bits are
transmitted/received with LSB first. The baud rate is fixed at 1/12 the frequency of system clock
(CLKin).
Mode1
10 bits are transmitted through TXD or received through RXD. The frame data includes a start
bit(0), 8 data bits and a stop bit(1). One receive, the stop bit goes into RB8 in SFR – SCON. The
baud rate is variable.
23
Preliminary ver 1.3
Date: 2009-JAN-20