18.2.1.1 Initializing the SENTx Module

Perform the following steps to initialize the module:

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

The data should be read from the SENT1DATL/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.