NUMICRO-SDK Nuvoton Technology Corporation of America, NUMICRO-SDK Datasheet - Page 389

KIT EVAUATION NUC100/120/130/140

NUMICRO-SDK

Manufacturer Part Number
NUMICRO-SDK
Description
KIT EVAUATION NUC100/120/130/140
Manufacturer
Nuvoton Technology Corporation of America
Series
NuMicro™r
Type
MCUr
Datasheets

Specifications of NUMICRO-SDK

Contents
Board, Cable, CD, Nu-Link
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
NUC100, NUC120, NUC130, NUC140

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
NUMICRO-SDK
Manufacturer:
Nuvoton Technology Corporation
Quantity:
135
Part Number:
NUMICRO-SDK
Manufacturer:
NuvoTon
Quantity:
69
5.12.5 LIN (Local Interconnection Network) mode
The UART supports LIN function, and LIN mode is selected by setting the LIN_EN bit in
UA_FUN_SEL register. In LIN mode, each byte field is initialed by a start bit with value zero
(dominant), followed by 8 data bits (LSB is first) and ended by 1 stop bit with value one
(recessive) in accordance with the LIN standard. The following diagram is the structure of LIN
function mode:
The program flow of LIN Bus Transmit transfer (TX) is shown as following
The program flow of LIN Bus Receiver transfer (RX) is show as following
1.
2.
3.
4.
5.
6.
7.
1.
2.
3.
4.
Break
Field
Setting the LIN_EN bit in UA_FUN_SEL register to enable LIN Bus mode.
Fill UA_LIN_BKFL in UA_LIN_BCNT to choose break field length. (The break field length
is UA_LIN_BKFL + 2).
Fill 0x55 to UA_THR to request synch field transmission.
Request Identifier Field transmission by writing the protected identifier value in the
UA_THR
Setting the LIN_TX_EN bit in UA_LIN_BCNT register to start transmission (When break
filed operation is finished, LIN_TX_EN will be cleared automatically).
When the STOP bit of the last byte THR has been sent to bus, hardware will set flag
TE_FLAG in UA_FSR to 1.
Fill N bytes data and Checksum to UA_THR then repeat step 5 and 6 to transmit the
data.
Setting the LIN_EN bit in UA_FUN_SEL register to enable LIN Bus mode.
Setting the LIN_RX_EN bit in UA_LIN_BCNT register to enable LIN RX mode.
Waiting for the flag LIN_RX_BREAK_IF in UA_ISR to check RX received Break field or
not.
Waiting for the flag RDA_IF in UA_ISR and read back the UR_RBR register.
NuMicro™ NUC100 Series Technical Reference Manual
Header
Synch
field
Figure 5-72 Structure of LIN Frame
Frame
Protected
Frame slot
Identifier
- 389 -
field
Response
space
Data 1
Publication Release Date: Oct 22, 2010
Data 2
Response
Data N
Check
Revision V1.06
Sum
space
frame
Inter-

Related parts for NUMICRO-SDK