PWM_CMPMx

PWM Comparison x Mode Register

  0x0138 + x*0x10 [x=0..7] 32 R/W 0x00000000   8 16 -1

PWM Comparison x Mode Register

Bit  31 30 29 28 27 26 25 24  
                   
Access                   
Reset                   
Bit  23 22 21 20 19 18 17 16  
  CUPRCNT[3:0] CUPR[3:0]  
Access  R/W R/W R/W R/W R/W R/W R/W R/W  
Reset  0 0 0 0 0 0 0 0  
Bit  15 14 13 12 11 10 9 8  
  CPRCNT[3:0] CPR[3:0]  
Access  R/W R/W R/W R/W R/W R/W R/W R/W  
Reset  0 0 0 0 0 0 0 0  
Bit  7 6 5 4 3 2 1 0  
  CTR[3:0]       CEN  
Access  R/W R/W R/W R/W       R/W  
Reset  0 0 0 0       0  

Bit 0 – CEN: Comparison x Enable

Comparison x Enable

ValueDescription
0

The comparison x is disabled and can not match.

1

The comparison x is enabled and can match.

Bits 7:4 – CTR[3:0]: Comparison x Trigger

Comparison x Trigger

The comparison x is performed when the value of the comparison x period counter (CPRCNT) reaches the value defined by CTR.

Bits 11:8 – CPR[3:0]: Comparison x Period

Comparison x Period

CPR defines the maximum value of the comparison x period counter (CPRCNT). The comparison x value is performed periodically once every CPR+1 periods of the channel 0 counter.

Bits 15:12 – CPRCNT[3:0]: Comparison x Period Counter

Comparison x Period Counter

Reports the value of the comparison x period counter.

Note: The field CPRCNT is read-only

Bits 19:16 – CUPR[3:0]: Comparison x Update Period

Comparison x Update Period

Defines the time between each update of the comparison x mode and the comparison x value. This time is equal to CUPR+1 periods of the channel 0 counter.

Bits 23:20 – CUPRCNT[3:0]: Comparison x Update Period Counter

Comparison x Update Period Counter

Reports the value of the comparison x update period counter.

Note: The field CUPRCNT is read-only