Z8 Encore! XP
®
4K Series
Product Specification
91
1
0
Idle State
of Line
Start
Data Field
lsb
Bit0
Bit1
Bit2
Bit3
Bit4
Bit5
Bit6
msb
Bit7
Stop Bit(s)
1
2
Figure 11.UART Asynchronous Data Format without Parity
1
0
Idle State
of Line
Start
Data Field
lsb
Bit0
Bit1
Bit2
Bit3
Bit4
Bit5
Bit6
msb
Bit7
Parity
Stop Bit(s)
1
2
Figure 12.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 required 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, if MULTIPROCESSOR mode is appropriate, to
enable MULTIPROCESSOR (9-bit) mode functions.
4. Set the Multiprocessor Mode Select (MPEN) bit to enable MULTIPROCESSOR mode.
5. Write to the UART Control 0 register to:
–
Set the transmit enable bit (TEN) to enable the UART for data transmission
–
Set the parity enable bit (PEN), if parity is appropriate and MULTIPROCESSOR
mode is not enabled, and select either even or odd parity (PSEL).
–
Set or clear the CTSE bit to enable or disable control from the remote receiver
using the CTS pin.
PS022815-0206
UART