AT32UC3L064_1 ATMEL [ATMEL Corporation], AT32UC3L064_1 Datasheet - Page 414

no-image

AT32UC3L064_1

Manufacturer Part Number
AT32UC3L064_1
Description
AVR32 32-bit Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Figure 20-35. Master Node Configuration, NACT=IGNORE
20.7.9.2
32099A–AVR32–06/09
TXRDY
RXRDY
LINTC
LINIR
Write
Slave Node Configuration
Break
Header
IMPORTANT: if the NACT configuration for this frame is PUBLISH, the US_LINMR register,
must be write with NACT=PUBLISH even if this field is already correctly configured, that in order
to set the TXREADY flag and the corresponding PDC write transfer request.
What comes next depends on the NACT configuration:
Synch
• Write TXEN and RXEN in CR to enable both the transmitter and the receiver.
• Write MODE in MR to select the LIN mode and the Slave Node configuration.
• Write CD and FP in BRGR to configure the baud rate.
• Wait until LINID in CSR rises
• Check LINISFE and LINPE errors
• Read IDCHR in RHR
• Write NACT, PARDIS, CHKDIS, CHKTYPE, DLCM and DLC in LINMR to configure the frame
• Case 1: NACT = PUBLISH, the USART sends the response
• Case 2: NACT = SUBSCRIBE, the USART receives the response
transfer.
– Wait until TXRDY in CSR rises
– Write TCHR in THR to send a byte
– If all the data have not been written, redo the two previous steps
– Wait until LINTC in CSR rises
– Check the LIN errors
– Wait until RXRDY in CSR rises
– Read RCHR in RHR
– If all the data have not been read, redo the two previous steps
– Wait until LINTC in CSR rises
– Check the LIN errors
Protected
Identifier
Data3
Response
space
Frame slot = TFrame_Maximum
Frame
Data 1
Response
Data N-1
Data N
Checksum
AT32UC3L
FSDIS=1
space
frame
Inter-
FSDIS=0
414

Related parts for AT32UC3L064_1