40.7.17 Waveform Control

Table 40-26. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: WAVE
Offset: 0x3C
Reset: 0x00000000
Property: RW

Bit 3130292827262524 
     SWAP[3:0] 
Access  
Reset 0000 
Bit 2322212019181716 
 POL[7:0] 
Access  
Reset 00000000 
Bit 15141312111098 
     CICCEN[3:0] 
Access  
Reset 0000 
Bit 76543210 
 CIPERENRAMP[2:0] WAVEGEN[2:0] 
Access  
Reset 0000000 

Bits 27:24 – SWAP[3:0] Swap DTI Output Pair x

Bits 23:16 – POL[7:0] Channel x Polarity

Bits 11:8 – CICCEN[3:0] Circular Channel x Enable

Bit 7 – CIPEREN Circular period Enable

Setting this bits enable the period circular buffer option. When the bit is set, the PER register value is copied-back into the PERBUF register on UPDATE condition.

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

These bits select Ramp operation (RAMP). These bits are not synchronized.

ValueNameDescription
0RAMP1RAMP1 operation
1RAMP2AAlternative RAMP2 operation
2RAMP2RAMP2 operation
3RAMP2CCritical RAMP2 operation
4RAMP2CSCritical Swapped RAMP2 operation

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

These bits select the waveform generation operation. The settings impact the top value and control if frequency or PWM waveform generation should be used. These bits are not synchronized.

ValueNameDescription
OperationTopUpdate Waveform Output

On Match

Waveform Output

On Update

OVF Interrupt Flag/Event

Up Down

0x0NFRQNormal FrequencyPERTOP/ZeroToggleStableTOPZero
0x1MFRQMatch FrequencyCC0TOP/ZeroToggleStableTOPZero
0x2NPWMNormal PWMPERTOP/ZeroSetClearTOPZero
0x3DPWMDual Compare PWMPERTOP/ZEROSet/ClearClear-Zero
0x4DSCRITICALDual-slope PWMPERZero~DIRStableZero
0x5DSBOTTOMDual-slope PWMPERZero~DIRStableZero
0x6DSBOTHDual-slope PWMPERTOP & Zero~DIRStableTOPZero
0x7DSTOPDual-slope PWMPERZero~DIRStableTOP
ValueNameDescription
0NFRQNormal frequency
1MFRQMatch frequency
2NPWMNormal PWM
3DPWMDual compare PWM
4DSCRITICALDual-slope critical
5DSBOTTOMDual-slope with interrupt/event condition when COUNT reaches ZERO
6DSBOTHDual-slope with interrupt/event condition when COUNT reaches ZERO or TOP
7DSTOPDual-slope with interrupt/event condition when COUNT reaches TOP