z16f2811 ZiLOG Semiconductor, z16f2811 Datasheet - Page 151

no-image

z16f2811

Manufacturer Part Number
z16f2811
Description
High Performance Microcontrollers
Manufacturer
ZiLOG Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
z16f2811AL20AG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811AL20EG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811AL20SG
Manufacturer:
VISHAY
Quantity:
9 487
Part Number:
z16f2811AL20SG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811AL20SG
Manufacturer:
ZILOG
Quantity:
20 000
Part Number:
z16f2811FI20AG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811FI20EG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811FI20SG
Manufacturer:
Zilog
Quantity:
155
PS022006-0207
Receiving Data Using Polled Method
5. If MULTIPROCESSOR mode is required, write to the LIN-UART control 1 register
6. Write to the LIN-UART Control 0 register to:
7. Execute an
The LIN-UART is now configured for interrupt-driven data transmission. As 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 rouISR performs the following:
1. If operating in MULTIPROCESSOR mode, write the LIN-UART control 1 register to
2. Write the data byte to the LIN-UART transmit data register. The transmitter
3. Execute the
If a transmit interrupt occurs and there is no transmit data ready to send, the interrupt
service routine executes the
transmit, software sets the appropriate interrupt request bit in the interrupt controller to
initiate a new transmit interrupt. Another alternative would be for software to write the data
to the transmit data register instead of invoking the ISR.
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 appropriate
2. Enable the LIN-UART pin functions by configuring the associated GPIO port pins for
3. Write to the LIN-UART control 1 register to enable MULTIPROCESSOR mode
to enable MULTIPROCESSOR (9-bit) mode functions.
(a) Set the MULTIPROCESSOR mode select (MPEN) to enable
(a) Set the transmit enable bit (TEN) to enable the LIN-UART for data transmission
(b) Enable parity, if MULTIPROCESSOR mode is not enabled, and select either even
(c) Set or clear the CTSE bit to enable or disable control from the remote receiver
select the outgoing address bit:
(a) Set the multiprocessor bit transmitter (MPBT) if sending an address byte; clear it
automatically transfers the data to the transmit shift register and transmits the data.
the transmit data register to again become empty.
baud rate.
alternate function operation.
functions.
MULTIPROCESSOR mode.
or odd parity.
through the CTS pin.
if sending a data byte.
EI
IRET
instruction to enable interrupts.
instruction to return from the interrupt service routine and waits for
P R E L I M I N A R Y
IRET
instruction. When the application does have data to
Product Specification
ZNEO
Z16F Series
LIN-UART
137

Related parts for z16f2811