46.7.9.11.2 Receiving a Frame

  1. Write FLEX_US_CR.TXEN and FLEX_US_CR.RXEN to enable both the transmitter and the receiver.
  2. Write FLEX_US_MR.USART_MODE to select the LON mode configuration.
  3. Write FLEX_US_BRGR.CD and FLEX_US_BRGR.FP to configure the baud rate.
  4. Write COMMT, COLDET, TCOL, CDTAIL, RDMNBM and DMAM in FLEX_US_LONMR to configure the LON operating mode.
  5. Write BETA2, BETA1TX, BETA1RX, PCYCLE, PSNB, NPS, IDTTX and ITDRX respectively in FLEX_US_FIDI, FLEX_US_LONB1TX, FLEX_US_LONB1RX, FLEX_US_TTGR, FLEX_US_LONPRIO, FLEX_US_LONIDTTX and FLEX_US_LONIDTRX to set the LON network configuration.
  6. Write FLEX_US_MAN.RXIDLEV and FLEX_US_MAN.RX_PL to indicate the receiver line value and select the preamble pattern to use.
  7. Wait until FLEX_US_CSR.RXRDY rises.
  8. Read FLEX_US_RHR.RCHR.
  9. If all the data and the two CRC bytes have not been read, repeat the two previous steps.
  10. Wait until FLEX_US_CSR.LRXD rises.
  11. Check the LON errors.
    Figure 46-62. Rx Frame