z8f1621 ZiLOG Semiconductor, z8f1621 Datasheet - Page 118

no-image

z8f1621

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
z8f1621AN020EC
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8f1621AN020EC00TR
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8f1621AN020EG
Manufacturer:
Zilog
Quantity:
356
Part Number:
z8f1621AN020EG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8f1621AN020SC
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8f1621AN020SC00TR
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8f1621AN020SG
Manufacturer:
Zilog
Quantity:
918
Part Number:
z8f1621PM020SG
Manufacturer:
Zilog
Quantity:
673
Part Number:
z8f1621VN020SG
Manufacturer:
Zilog
Quantity:
6
PS019921-0308
Receiving Data using the Interrupt-Driven Method
ditions). Follow the steps below to configure the UART receiver for interrupt-driven oper-
ation:
1. Write to the UART Baud Rate High and Low Byte registers to set the desired baud
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 Receiver interrupt and set
5. Clear the UART Receiver interrupt in the applicable Interrupt Request register.
6. Write to the UART Control 1 Register to enable MULTIPROCESSOR (9-bit) mode
7. Write the device address to the Address Compare Register (automatic multiprocessor
8. Write to the UART Control 0 register to:
9. Execute an
The UART is now configured for interrupt-driven data reception. When the UART
Receiver interrupt is detected, the associated interrupt service routine performs the follow-
ing:
1. Check the UART Status 0 register to determine the source of the interrupt - error,
2. If the interrupt was caused by data available, read the data from the UART Receive
The UART Receiver interrupt indicates the availability of new data (as well as error con-
rate.
alternate function operation.
the desired priority.
functions, if desired.
modes only).
break, or received data.
Data register. If operating in MULTIPROCESSOR (9-bit) mode, further actions may
be required depending on the MULTIPROCESSOR Mode bits
Set the MULTIPROCESSOR Mode Select (MPEN) to Enable
MULTIPROCESSOR mode.
Set the MULTIPROCESSOR Mode Bits, MPMD[1:0], to select the desired
address matching scheme.
Configure the UART to interrupt on received data and errors or errors only
(interrupt on errors only is unlikely to be useful for Z8 Encore! XP devices
without a DMA block).
Set the receive enable bit (REN) to enable the UART for data reception.
Enable parity, if desired and if MULTIPROCESSOR mode is not enabled, and
select either even or odd parity.
DI
EI
instruction to disable interrupts.
instruction to enable interrupts.
Z8 Encore! XP
Product Specification
MPMD[1:0]
®
F64XX Series
.
UART
104

Related parts for z8f1621