Perform the following procedure to enable a single counter:
- Reset the counter by setting the SCTM_CTCR_WOT_j[1] RESET bit to 1.
- Select which signal drives the counter function by writing the correct index to the SCTM_CTCR_WOT_j[23:16]INPSEL bit field
- Configure the sampling scheme to be used by the counter (edge/level) by writing to the SCTM_CTCR_WOT_j [3]DURMODE bit (if required).
- Set the behavior for system state by writing to the SCTM_CTCR_WOT_j[5]IDLE and SCTM_CTCR_WOT_j[4] FREE bits (if required).
- Start the counter function by setting the SCTM_CTCR_WOT_j[0] ENBL bit to 1.