CHAPTER 20 LIN-UART
20.1
Overview of LIN-UART
The LIN-UART with LIN (Local Interconnect Network) - Function is a general-purpose
serial data communication interface for performing synchronous or asynchronous
communication (start-stop synchronization) with external devices. LIN-UART provides
bidirectional communication function (normal mode), master-slave communication
function (multiprocessor mode in master/slave systems), and special features for LIN-
bus systems.
LIN-UART Functions
LIN-UART functions
LIN-UART is a general-purpose serial data communication interface for transmitting serial data to and
receiving data from another CPU and peripheral devices. It has the functions listed in Table 20.1-1 .
Table 20.1-1 LIN-UART Functions (1/2)
Data buffer
Serial input
Transfer mode
Baud rate
Data length
Signal type
Start bit timing
Detection of receive error
Interrupt request
Master/slave type communication
function (multiprocessor mode)
Synchronous mode
Pin access
382
Full-duplicate double-buffer
Perform oversampling 5 times and determine the received value by majority
decision of sampling time (asynchronous mode only)
•
Synchronous to clock (selecting start/stop synchronous or start/stop bit)
•
Asynchronous (start/stop bits can be used.)
•
Dedicated baud-rate generator (The baud rate is consisted of 15-bit reload
counter.)
•
An external clock can be inputted and also be adjusted by reload counter.
•
7 bits (other than synchronous or LIN mode)
•
8 bits
NRZ (Non Return to Zero)
Synchronization to the falling edge of the start bit in the asynchronous mode
•
Framing error
•
Overrun error
•
Parity error (not supported for operation mode 1)
•
Receive interrupt (receive termination, detection of receive error, LIN Synch break
detection)
•
Transmit interrupt (transmit data empty)
•
Interrupt request to ICU (LIN Synch field detection: LSYN)
•
Both the transmission and reception support EI
This function enables communication between 1 (only use master) and n (slave)
(This function supports for the both of master and slave system.)
Master of slave function
Capable of reading the state of serial I/O pin directly
Function
2
OS