The CPTS module must be configured as follows:
- Reset the CPTS module
- Clear the CPTS_EN bit in the
CPTS_CONTROL_REG
- Write the RFTCLK_SEL value in the
CPTS_RFTCLK_SEL_REG with the desired reference clock selection
- Set the CPTS_EN bit in the CPTS_CONTROL_REG
- If using interrupts and not polling, enable the
interrupt by setting the TS_PEND_EN bit in the CPTS_INT_ENABLE_REG