③ ID field
ID
reception
_LinUART(void).When an interrupt is created, if no error is created and the cause of the
interrupt isn't a synch break interrupt, reception processing is performed.
__interrupt void _LinUART (void)
{
(Omitted)
if ((ssr & 0xE0) != 0) {
(Omitted)
} else if (ESCR_LBD == SET) {
(Omitted)
}else{
l_ifc_rx(data);
}
}
Processing is divided into ID reception, data sending, data reception, and wakeup sending according
the status in the reception judgment processing function l_ifc_rx( l_ifc_handle rx_data ) as shown in
"Figure 5-17 Receive determination processing".In normal sequences, to migrate the status during
the second input capture interrupt process to ID FIELD reception waiting, ID reception processing is
performed. In ID reception processing, the ID that has been acquired is judged to be either a send ID
or reception ID and parity check performed, and if it is a send ID, the status is migrated to send
preparation status, and the data to be sent is copied to the buffer. If the ID is a reception ID, the
status is migrated to data reception wait status, and a response (data) is received from the master.
processing
is
performed
Figure 5-16 LIN-UART receive interrupt control
103
in
the
LIN-UART
Error check
Synch break detection
Receive processing
AN07-00200-03E
interrupt
function