z8f1601 ZiLOG Semiconductor, z8f1601 Datasheet - Page 100

no-image

z8f1601

Manufacturer Part Number
z8f1601
Description
Z8 Encore!? Microcontroller With Flash Memory And 10-bit A/d Converter
Manufacturer
ZiLOG Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
z8f1601AN020EC
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8f1601AN020EC00TR
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8f1601AN020SC
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8f1601AN020SC00TR
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8f1601VN020EC
Manufacturer:
Freescale
Quantity:
29
Part Number:
z8f1601VN020EC
Manufacturer:
Zilog
Quantity:
10 000
PS017609-0803
Receiving Data using the Polled Method
Receiving Data using the Interrupt-Driven Method
Follow these steps to configure the UART for polled data reception:
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. Write to the UART Control 1 register to enable Multiprocessor (9-bit) mode functions,
4. Write to the UART Control 0 register to:
5. Check the RDA bit in the UART Status 0 register to determine if the Receive Data
6. Read data from the UART Receive Data register. If operating in Multiprocessor (9-bit)
7. Return to Step 6 to receive additional data.
ditions). Follow these steps to configure the UART receiver for interrupt-driven operation:
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 DI instruction to disable interrupts.
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 functions,
The UART Receiver interrupt indicates the availability of new data (as well as error con-
rate.
alternate function operation.
if desired.
register contains a valid data byte (indicated by a 1). If RDA is set to 1 to indicate
available data, continue to Step 6. If the Receive Data register is empty (indicated by a
0), continue to monitor the RDA bit awaiting reception of the valid data.
mode, first read the Multiprocessor Receive flag ( MPRX ) to determine if the data was
directed to this UART before reading the data.
rate.
alternate function operation.
the desired priority.
if desired.
Set the receive enable bit ( REN ) to enable the UART for data reception
Enable parity, if desired, and select either even or odd parity.
Z8F640x/Z8F480x/Z8F320x/Z8F240x/Z8F160x
Z8 Encore!
UART
®
82

Related parts for z8f1601