Z8F16800144ZCOG Zilog, Z8F16800144ZCOG Datasheet - Page 159

KIT DEV FOR Z8F642 MCU 44 PIN

Z8F16800144ZCOG

Manufacturer Part Number
Z8F16800144ZCOG
Description
KIT DEV FOR Z8F642 MCU 44 PIN
Manufacturer
Zilog
Series
Z8 Encore!®r
Type
MCUr
Datasheets

Specifications of Z8F16800144ZCOG

Contents
Hardware, Software and Documentation
For Use With/related Products
Z8F642
For Use With
269-4661 - KIT ACC ETHERNET SMART CABLE
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
269-4678
PS025011-1010
Receiving Data Using Polled Method
The LIN-UART is now configured for interrupt-driven data transmission. Because the
LIN-UART Transmit Data Register is empty, an interrupt is generated immediately. When
the LIN-UART Transmit interrupt is detected and there is transmit data ready to send, the
associated interrupt service routine (ISR) performs the following:
1. If in MULTIPROCESSOR mode, write the LIN-UART Control 1 Register to select
2. Write the data byte to the LIN-UART Transmit Data Register. The transmitter
3. Execute the IRET instruction to return from the interrupt-service routine and wait for
If a transmit interrupt occurs and there is no transmit data ready to send the 
interrupt-service routine will execute the IRET instruction. When the application does
have data to transmit, software can set the appropriate interrupt request bit in the Interrupt
Controller to initiate a new transmit interrupt. Another alternative would be for the 
software to write the data to the Transmit Data Register instead of invoking the 
interrupt-service routine.
Follow the steps below to configure the LIN-UART for polled data reception:
1. Write to the LIN-UART Baud Rate High and Low Byte registers to set the 
2. Enable the LIN-UART pin functions by configuring the associated GPIO port pins 
3. If MULTIPROCESSOR mode is appropriate, write to the LIN-UART Control 1
4. Write to the LIN-UART Control 0 Register to:
5. Check the RDA bit in the LIN-UART Status 0 register to determine if the Receive Data
6. Read data from the LIN-UART Receive Data Register. If operating in
7. Return to
the outgoing address bit:
automatically transfers the data to the Transmit Shift register and transmits the data.
the Transmit Data Register to again become empty.
appropriate baud rate.
for alternate function operation.
Register to enable MULTIPROCESSOR (9-bit) mode functions.
(a) Set the Receive Enable Bit (
(b) If MULTIPROCESSOR mode is not enabled then enable parity, if appropriate,
Register contains a valid data byte (indicated by a 1). If RDA is set to 1 to indicate
available data, continue to
by a 0), continue to monitor the RDA bit awaiting reception of the valid data.
MULTIPROCESSOR (9-bit) mode, further actions may be required depending on the
MULTIPROCESSOR mode bits
Set the Multiprocessor Bit Transmitter (MPBT) if sending an address byte, 
clear it if sending a data byte.
and select either even or odd parity.
Step 5
to receive additional data.
P R E L I M I N A R Y
Step
6. If the Receive Data Register is empty (indicated 
REN
MPMD
) to enable the LIN-UART for data reception.
[1:0].
Z8 Encore! XP
Product Specification
®
F1680 Series
LIN-UART
145

Related parts for Z8F16800144ZCOG