Z8F640x/Z8F480x/Z8F320x/Z8F240x/Z8F160x
Z8 Encore!®
80
Figures 68 and 69 illustrates the asynchronous data format employed by the UART with-
out parity and with parity, respectively.
Data Field
Stop Bit(s)
Idle State
of Line
lsb
msb
Bit7
1
0
Start
Bit0
Bit1
Bit2
Bit3
Bit4
Bit5
Bit6
1
2
Figure 68. UART Asynchronous Data Format without Parity
Data Field
Stop Bit(s)
Idle State
of Line
lsb
msb
Bit7
1
0
Start
Bit0
Bit1
Bit2
Bit3
Bit4
Bit5
Bit6
Parity
1
2
Figure 69. UART Asynchronous Data Format with Parity
Transmitting Data using the Polled Method
Follow these steps to transmit data using the polled method of operation:
1. Write to the UART Baud Rate High and Low Byte registers to set the desired baud
rate.
2. Enable the UART pin functions by configuring the associated GPIO Port pins for
alternate function operation.
3. Write to the UART Control 1 register to enable Multiprocessor (9-bit) mode functions,
if desired.
4. Write to the UART Control 0 register to:
–
–
–
Set the transmit enable bit (TEN) to enable the UART for data transmission
Enable parity, if desired, and select either even or odd parity.
Set or clear the CTSEbit to enable or disable control from the receiver using the
CTS pin.
PS017610-0404
UART