Figure 5-16 Lin-Uart Receive Interrupt Control; Figure 5-17 Receive Determination Processing - Fujitsu F2MC-8FX Series User Manual

8-bit microcontroller bits pot yellow lin board
Hide thumbs Also See for F2MC-8FX Series:
Table of Contents

Advertisement

③ 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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95f136jbs

Table of Contents