HT48CU80 Holtek Semiconductor, HT48CU80 Datasheet - Page 22

no-image

HT48CU80

Manufacturer Part Number
HT48CU80
Description
(HT48RU80 / HT48CU80) I/O Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet
www.DataSheet4U.com
Note: *1: To make sure that the system oscillator has stabilized, the SST provides an extra delay of 1024 system clock
UART Bus Serial Interface
The HT48RU80/HT48CU80 devices contain an inte-
grated full-duplex asynchronous serial communications
UART interface that enables communication with exter-
nal devices that contain a serial interface. The UART
function has many features and can transmit and re-
ceive data serially by transferring a frame of data with
eight or nine data bits per transmission as well as being
able to detect errors when the data is overwritten or in-
correctly framed. The UART function possesses its own
internal interrupt which can be used to indicate when a
reception occurs or when a transmission terminates.
·
Rev. 1.00
UART features
The integrated UART function contains the following
features:
¨
¨
¨
¨
¨
¨
¨
¨
¨
¨
¨
Full-duplex, asynchronous communication
8 or 9 bits character length
Even, odd or no parity options
One or two stop bits
Baud rate generator with 8-bit prescaler
Parity, framing, noise and overrun error detection
Support for interrupt on address detect
(last character bit=1)
Separately enabled transmitter and receiver
2-byte Deep Fifo Receive Data Buffer
Transmit and receive interrupts
Interrupts can be initialized by the following
conditions:
-
-
-
-
-
Transmitter Empty
Transmitter Idle
Receiver Full
Receiver Overrun
Address Mode Detect
*2: Since the low voltage has to maintain its original state for longer than 1ms, therefore a 1ms delay enters the
pulses before entering the normal operation.
reset mode.
Low Voltage Reset
22
·
·
UART external pin interfacing
To communicate with an external serial interface, the
internal UART has two external pins known as TX and
RX. The TX pin is the UART transmitter pin, which can
be used as a general purpose I/O pin if the pin is not
configured as a UART transmitter, which occurs when
the TXEN bit in the UCR2 control register is equal to
zero. Similarly, the RX pin is the UART receiver pin,
which can also be used as a general purpose I/O pin,
if the pin is not configured as a receiver, which occurs
if the RXEN bit in the UCR2 register is equal to zero.
Along with the UARTEN bit, the TXEN and RXEN bits,
if set, will automatically setup these I/O pins to their re-
spective TX output and RX input conditions and dis-
able any pull-high resistor option which may exist on
the RX pin.
UART data transfer scheme
The block diagram shows the overall data transfer
structure arrangement for the UART. The actual data
to be transmitted from the MCU is first transferred to
the TXR register by the application program. The data
will then be transferred to the Transmit Shift Register
from where it will be shifted out, LSB first, onto the TX
pin at a rate controlled by the Baud Rate Generator.
Only the TXR register is mapped onto the MCU Data
Memory, the Transmit Shift Register is not mapped
and is therefore inaccessible to the application pro-
gram.
Data to be received by the UART is accepted on the
external RX pin, from where it is shifted in, LSB first, to
the Receiver Shift Register at a rate controlled by the
Baud Rate Generator. When the shift register is full,
the data will then be transferred from the shift register
to the internal RXR register, where it is buffered and
can be manipulated by the application program.
HT48RU80/HT48CU80
April 12, 2006

Related parts for HT48CU80