23.6.16 Waveform

Name: WAVE
Offset: 0x3C
Reset: 0x00000000
Property: Write-Synchronized, Enable-Protected

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
     POL3POL2POL1POL0 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 15141312111098 
     CICCEN3CICCEN2CICCEN1CICCEN0 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 76543210 
 CIPERENRAMP[2:0] WAVEGEN[2:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 

Bits 16, 17, 18, 19 – POLn Channel n Polarity

Setting these bits enables the output polarity in single- and dual-slope PWM and dual-compare operations.

Note:
  • These bits are not enable-protected
  • These bits are write-synchronized. The WAVE Synchronization Busy bit of the Synchronization Busy register (SYNCBUSY.WAVE) must be checked to ensure that the WAVE.POLn synchronization is complete.

Channel n Polarity in Single-Slope Mode

ValueNameDescription
0 NORMAL Compare output is initialized to ~DIR and set to DIR when TCC counter matches CCn value.
1 INVERTED Compare output is initialized to DIR and set to ~DIR when TCC counter matches CCn value.

Bits 16, 17, 18, 19 – POLn Channel n Polarity

Setting these bits enables the output polarity in single- and dual-slope PWM and dual-compare operations.

Note:
  • These bits are not enable-protected
  • These bits are write-synchronized. The WAVE Synchronization Busy bit of the Synchronization Busy register (SYNCBUSY.WAVE) must be checked to ensure that the WAVE.POLn synchronization is complete.

Channel n Polarity in Dual-Slope Mode

ValueNameDescription
0 NORMAL Compare output is set to ~DIR when TCC counter matches CCn value
1 INVERTED Compare output is set to DIR when TCC counter matches CCn value.

Bits 16, 17, 18, 19 – POLn Channel n Polarity

Setting these bits enables the output polarity in single- and dual-slope PWM and dual-compare operations.

Note:
  • These bits are not enable-protected
  • These bits are write-synchronized. The WAVE Synchronization Busy bit of the Synchronization Busy register (SYNCBUSY.WAVE) must be checked to ensure that the WAVE.POLn synchronization is complete.

Channel n Polarity in Dual-Compare Mode

ValueNameDescription
0 NORMAL Compare output is initialized to ~DIR, set to DIR when TCC counter matches CCn value and set to ~DIR when TCC counter matches CC[n+WO_NUM/2] value.
1 INVERTED

Compare output is initialized to DIR, set to ~DIR when TCC counter matches CCn value and set to DIR when TCC counter matches CC[n+WO_NUM/2] value.

Bits 8, 9, 10, 11 – CICCENn Circular Compare/Capture Channel n Enable

Setting these bits enables the compare circular buffer option on the channel. When the bit is set, the CCn register value is copied back into the CCn register on an UPDATE condition.
Note:
  • These bits are not enable-protected
  • These bits are write-synchronized. The WAVE Synchronization Busy bit of the Synchronization Busy register (SYNCBUSY.WAVE) must be checked to ensure that the WAVE.CICCENn synchronization is complete.

Bit 7 – CIPEREN Circular Period Enable

Setting these bits enables the period circular buffer option. When the bit is set, the PER register value is copied back into the PERB register on an UPDATE condition.

Note:
  • This bit is not enable-protected
  • This bit is write-synchronized. The WAVE Synchronization Busy bit of the Synchronization Busy register (SYNCBUSY.WAVE) must be checked to ensure that the WAVE.CIPEREN synchronization is complete.

Bits 6:4 – RAMP[2:0] Ramp Operation

This bit field select Ramp operation (RAMP).

Note:
  • This bit field is enable-protected
  • This bit field is not synchronized
ValueNameDescription
0x0RAMP1RAMP1 operation
0x1RAMP2AAlternative RAMP2 operation
0x2RAMP2RAMP2 operation
0x3RAMP2CCritical RAMP2 operation
OtherReserved

Bits 2:0 – WAVEGEN[2:0] Waveform Generation Operation

This bit field selects the waveform generation operation. The settings impact the top value and determine whether frequency or PWM frequency or PWM waveform generation should be used.

Note:
  • This bit field is enable-protected
  • This bit field is not synchronized
ValueNameDescription
0x0 NFRQ Normal Frequency
0x1 MFRQ Match Frequency
0x2 NPWM Normal PWM
0x3 DPWM Dual Compare PWM
0x4 DSCRITICAL Dual-slope PWM
0x5 DSBOTTOM Dual-slope PWM
0x6 DSBOTH Dual-slope PWM
0x7 DSTOP Dual-slope PWM
Other Reserved