English
Language : 

Z8FMC16100 Datasheet, PDF (138/402 Pages) Zilog, Inc. – Z8 Encore-R Motor Control Flash MCUs
Z8 Encore!® Motor Control Flash MCUs
Product Specification
116
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 Multiproces-
sor Mode bits MPMD[1:0].
7. Return to Step 5 to receive additional data.
Receiving Data using the Interrupt-Driven Method
The LIN-UART Receiver interrupt indicates the availability of new data (as well as error
conditions). Follow these 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 (MPEN) to Enable Multiprocessor
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 Z8FMC16100 Series Flash
MCU devices without a DMA block),
7. Write the device address to the Address Compare Register (automatic multiprocessor
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, enable parity, if appropriate, and
select either even or odd parity.
9. Execute an EI instruction to enable interrupts.
The LIN-UART is now configured for interrupt-driven data reception. When the LIN-
UART Receiver interrupt is detected, the associated interrupt service routine (ISR) per-
forms the following:
LIN-UART
PRELIMINARY
PS024604-1005