Datasheet
MC9S08EL32 Series and MC9S08SL16 Series Data Sheet, Rev. 3
216 Freescale Semiconductor
Figure 12-16. Handling Request LIN Message Frames
The next SLIC interrupt which occurs, if unmasked, will indicate the end of the request message frame and
will either indicate that the frame was properly transmitted or that an error was encountered during
transmission. Refer to Section 12.6.9.4, “Possible Errors on Request Message Data,” for more detailed
explanation of these possible errors. This interrupt also signals to the application that the message frame
is complete and all data bytes and the checksum value have been properly transmitted onto the bus.
PROCESS
REQUEST MESSAGE
EXTENDED FRAME
?
Y
N
4. WRITE SLCDLC FOR THIS ID
1nxx xxxx
(TXGO = 1)
(CHKMOD = n)
EXIT ISR
ERROR CODE
?
Y
N
PROCESS ERROR CODE:
EXIT ISR
RETURN TO IDLE
DECREMENT SW BYTE COUNT BY 8
LAST FRAME
?
Y
N
(SW BYTE COUNT <8)
3. WRITE SLCDLC FOR THIS ID
1n00 0xxx
(TXGO = 1)
(CHKMOD = n)
EXIT ISR
ERROR CODE
?
Y
N
PROCESS ERROR CODE:
EXIT ISR
RETURN TO IDLE
TRANSMIT COMPLETE
2. INITIALIZE SW BYTE COUNT
3. LOAD FIRST 8 DATA BYTES
2. LOAD DATA INTO MESSAGE BUFFER
1. LOAD LAST (<8) BYTES TO TRANSMIT
BYTE FRAMING ERROR
BIT-ERROR
CHECKSUM-ERROR
BYTE FRAMING ERROR
BIT-ERROR
INTERRUPT
READ SLCSV
INTERRUPT
READ SLCSV
2. WRITE TXGO BIT TO START TRANSMIT
(1)
1. LOAD NEXT 8 BYTES TO TRANSMIT
2. WRITE TXGO BIT TO START TRANSMIT
(1)
Note 1. When writing TXGO bit only, ensure that CHKMOD and data length values are not accidentally modified.
1. CLEAR SLCF
1. CLEAR SLCF
CLEAR SLCF
CLEAR SLCF
CLEAR SLCF
CLEAR SLCF
