English
Language : 

Z8F1680SH020SG Datasheet, PDF (174/412 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore! XP® F1680 Series
Product Specification
149
6. Read data from the LIN-UART Receive Data Register. If operating in MULTIPRO-
CESSOR (9-bit) Mode, further actions may be required depending on the MULTI-
PROCESSOR Mode bits MPMD[1:0].
7. Return to Step 5 to receive additional data.
12.1.5. Receiving Data Using the Interrupt-Driven Method
The LIN-UART Receiver interrupt indicates the availability of new data (as well as error
conditions). Observe the following steps to configure the LIN-UART receiver for
interrupt-driven operation:
1. Write to the LIN-UART Baud Rate High and Low Byte registers to set the appropriate
baud rate.
2. Enable the LIN-UART pin functions by configuring the associated GPIO port pins for
alternate function operation.
3. Execute a DI instruction to disable interrupts.
4. Write to the Interrupt Control registers to enable the LIN-UART Receiver interrupt
and set the appropriate priority.
5. Clear the LIN-UART Receiver interrupt in the applicable Interrupt Request Register.
6. Write to the LIN-UART Control 1 Register to enable MULTIPROCESSOR (9-bit)
Mode functions, if appropriate.
a. Set the MULTIPROCESSOR Mode Select bit (MPEN) to enable MULTIPRO-
CESSOR Mode.
b. Set the MULTIPROCESSOR Mode Bits, MPMD[1:0] to select the appropriate
address matching scheme.
c. Configure the LIN-UART to interrupt on received data and errors or errors only
(interrupt on errors only is unlikely to be useful for Z8 Encore! devices without a
DMA block).
7. Write the device address to the Address Compare Register (automatic MULTIPRO-
CESSOR Modes only).
8. Write to the LIN-UART Control 0 Register to:
a. Set the receive enable bit (REN) to enable the LIN-UART for data reception.
b. If MULTIPROCESSOR Mode is not enabled, then enable parity (if appropriate)
and select either even or odd parity.
9. Execute an EI instruction to enable interrupts.
PS025015-1212
PRELIMINARY
LIN-UART