45.6.10.11.2 Receiving A Frame

  1. Write TXEN and RXEN in US_CR to enable both the transmitter and the receiver.
  2. Write USART_MODE in US_MR to select the LON mode configuration.
  3. Write CD and FP in US_BRGR to configure the baud rate.
  4. Write COMMT, COLDET, TCOL, CDTAIL, RDMNBM and DMAM in US_LONMR to configure the LON operating mode.
  5. Write BETA2, BETA1TX, BETA1RX, PCYCLE, PSNB, NPS, IDTTX and ITDRX respectively in US_FIDI, US_LONB1TX, US_LONB1RX, US_TTGR, US_LONPRIO, US_LONIDTTX and US_LONIDTRX to set the LON network configuration.
  6. Write RXIDLEV and RX_PL in US_MAN to indicate the receiver line value and select the preamble pattern to use.
  7. Wait until RXRDY in US_CSR rises.
  8. Read RCHR in US_RHR.
  9. If all the data and the two CRC bytes have not been read, redo the two previous steps.
  10. Wait until LRXD in US_CSR rises.
  11. Check the LON errors.
Figure 45-62. Rx Frame