z8f0822 ZiLOG Semiconductor, z8f0822 Datasheet - Page 105

no-image

z8f0822

Manufacturer Part Number
z8f0822
Description
High Performance 8-bit Microcontrollers
Manufacturer
ZiLOG Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
z8f0822PJ020SG
Manufacturer:
Zilog
Quantity:
45
Part Number:
z8f0822SJ020SG
Manufacturer:
Zilog
Quantity:
567
PS022517-0508
Transmitting Data Using Interrupt-Driven Method
5. Check the
6. Write the UART Control 1 Register to select the outgoing address bit:
7. Write data byte to the UART Transmit Data Register. The transmitter automatically
8. If required, and multiprocessor mode is enabled, make any changes to the
9. To transmit additional bytes, return to
The UART Transmitter interrupt indicates the availability of the Transmit Data Register to
accept new data for transmission. Follow the below steps to configure the UART for
interrupt-driven data transmission:
1. Write to the UART Baud Rate High and Low Byte Registers to set the required
2. Enable the UART pin functions by configuring the associated GPIO Port pins for
3. Execute a
4. Write to the Interrupt Control Registers to enable the UART Transmitter interrupt and
5. If MULTIPROCESSOR mode is required, write to the UART Control 1 Register to
6. Write to the UART Control 0 Register to:
7. Execute an
Register is empty (indicated by a 1). If empty, continue to
Register is full (indicated by a 0), continue to monitor the
Data Register becomes available to receive new data.
transfers data to the Transmit Shift Register and then transmits the data.
Multiprocessor Bit Transmitter (
baud rate.
alternate function operation.
set the required priority.
enable Multiprocessor (9-bit) mode functions:
Set the Multiprocessor Bit Transmitter (
clear it if sending a data byte.
Set the Multiprocessor Mode Select (MPEN) to enable MULTIPROCESSOR
mode.
Set the transmit enable (TEN) bit to enable the UART for data transmission
Enable parity, if required, and if MULTIPROCESSOR mode is not enabled, and
select either even or odd parity.
Set or clear the
through the CTS pin.
DI
TDRE
EI
instruction to disable interrupts.
instruction to enable interrupts.
bit in the UART Status 0 Register to determine if the Transmit Data
CTSE
bit to enable or disable control from the remote receiver
MPBT
) value.
step
5.
MPBT
Universal Asynchronous Receiver/Transmitter
) if sending an address byte,
Z8 Encore! XP
step
TDRE
Product Specification
6. If the Transmit Data
bit until the Transmit
®
F0822 Series
92

Related parts for z8f0822