20.2.1 Initializing the SENTx Module

Perform the following steps to initialize the module:

  1. Write RCVEN (SENTxCON1[11]) = 1 for Receive mode.
  2. Write NIBCNT[2:0] (SENTxCON1[2:0]) for the desired data frame length.
  3. Write CRCEN (SENTxCON1[8]) for hardware or software CRC validation.
  4. Write PPP (SENTxCON1[7]) = 1 if pause pulse is present.
  5. Write SENTxCON2 with the value of SYNCMAXx (Nominal Sync Period + 20%).
  6. Write SENTxCON3 with the value of SYNCMINx (Nominal Sync Period – 20%).
  7. Enable interrupts and set interrupt priority.
  8. Set the SNTEN (SENTxCON1[15]) bit to enable the module.

The data should be read from the SENTxDATL/H registers after the completion of the CRC and before the next message frame’s status nibble. The recommended method is to use the message frame completion interrupt trigger.