Hi,
On F280049 TRM Figure 27-8 Receive Buffers and Figure 27-9 Transmit Buffers, it says
“The 3-bit compare register contains the number of data bytes expected to be received or transmitted.the LENGTH value in SCIFORMAT register indicates the expected length and is used to load the 3-bit compare register.”
How to set LIN length when there are three different lengths data are received? My customer need to receive LIN data which length is 1, 7 and 8 byte separately.
Do we need to switch length value frequently? When to set SCIFORMAT register LENGTH?
We have enabled Multi-buffer mode by calling “LIN_enableMultibufferMode(base); in LIN initialization.
By the way, we find when use polling method to call LIN_isTxMatch(LINA_BASE) and LIN_isRxReady(LINA_BASE), it need to process LIN_isTxMatch(LINA_BASE) firstly, otherwise, LIN_isRxReady(LINA_BASE) can not be set after data received.
Thanks.