Perform the following procedure to enable a group of counters:
- For each counter in the group:
- Enable access to the SCTM by setting the SCTM_CTCNTL[0] ENBL 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 [4]FREE bits (if required).
- Start all counters in lockstep by writing to the CTGNBL0 register for all counters that are set to 1 in the group.