SCTimer/PWM REGMODE addressOffset = 0x04C

If UNIFY = 1 in the CONFIG register, only the _L bits of this register are used. The L bits control whether each set of match/capture registers operates as unified 32-bit capture/match registers.

If UNIFY = 0 in the CONFIG register, this register can be written to as two registers REGMODE_L and REGMODE_H. Both the L and H registers can be read or written individually or in a single 32-bit read or write operation.The _L bits/registers control the L match/capture registers, and the _H bits/registers control the H match/capture registers.

The SCT contains 5 Match/Capture register pairs. The Register Mode register selects whether each register pair acts as a Match register (see SCTimer/PWM MATCH addressOffset = 0x100) or as a Capture register (see SCTimer/PWM CAP addressOffset = 0x100). Each Match/Capture register has an accompanying register which serves as a Reload register when the register is used as a Match register (SCTimer/PWM MATCHREL addressOffset = 0x200) or as a Capture-Control register when the register is used as a capture register (SCTimer/PWM CAPCTRL addressOffset = 0x200). REGMODE_H is used only when the UNIFY bit is 0.

Table 1. SCTimer/PWM registerName = REGMODE addressOffset = 0x04C
Bit Symbol Description Reset value
4:0 REGMOD_L Each bit controls one pair of match/capture registers (register 0 = bit 0, register 1 = bit 1,..., register 4 = bit 4).

0 = registers operate as match registers.

1 = registers operate as capture registers.

0
15:5 - Reserved. -
20:16 REGMOD_H Each bit controls one pair of match/capture registers (register 0 = bit 16, register 1 = bit 17,..., register 4 = bit 20).

0 = registers operate as match registers.

1 = registers operate as capture registers.

0
31:21 - Reserved. -

-->