18.2.1.1 Initializing the SENTx Module
Perform the following steps to initialize the module:
- Write RCVEN (SENT1CON1L[11]) =
1for Receive mode. - Write NIBCNT[2:0] (SENT1CON1L[2:0]) for the desired data frame length.
- Write CRCEN (SENT1CON1L[8]) for hardware or software CRC validation.
- Write PPP (SENT1CON1L[7]) =
1if pause pulse is present. - Write SENT1CON2L with the value of SYNCMAXx (Nominal Sync Period + 20%).
- Write SENT1CON3L with the value of SYNCMINx (Nominal Sync Period – 20%).
- Enable interrupts and set interrupt priority.
- 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.
