The CPTS module should be configured as follows:
- Reset the CPTS module.
- Write the CPTS_CLKSEL value in the
CTRLMMR_CPTS_CLKSEL register with the desired reference clock selection. This
value is allowed to be written only when the CPTS_EN bit in the
CPSW_CPTS_CONTROL_REG register is cleared to zero.
- Set the CPTS_EN bit in the CPSW_CPTS_CONTROL_REG
register.
- If using interrupts and not polling, enable the
interrupt by setting the TS_PEND_EN bit in the CPSW_CPTS_INT_ENABLE_REG
register.