AVR16EB28 WEX0 registers

The 28 registers of WEX0 (Waveform Extension), from 0xC80, with their reset value and every field. The AVR16EB28 has 423 registers in 40 peripherals, one page each.

WEX0 Waveform Extension

CTRLAControl A

Address
0xC80
Reset
0x00
Access
read/write
  1. 7PGM
  2. 6INMX2
  3. 5INMX1
  4. 4INMX0
  5. 3DTI3EN
  6. 2DTI2EN
  7. 1DTI1EN
  8. 0DTI0EN
6 fields
FieldBitsWhat it does
PGM7Pattern Generation Mode
INMX6:4Input Matrix
  • 0 Direct from TCE0
  • 2 Common Waveform Channel Mode A. Single WO
  • 3 Common Waveform Channel Mode B. WO from two PWM channels
DTI3EN3Dead-Time Insertion CMP3 Enable
DTI2EN2Dead-Time Insertion CMP2 Enable
DTI1EN1Dead-Time Insertion CMP1 Enable
DTI0EN0Dead-Time Insertion CMP0 Enable

CTRLBControl B

Address
0xC81
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1UPDSRC1
  8. 0UPDSRC0
1 field
FieldBitsWhat it does
UPDSRC1:0Update Source
  • 0 Timer/Counter for PWM 0 update condition
  • 3 Software update only. No hardware update condition

CTRLCControl C

Address
0xC82
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2CMD2
  7. 1CMD1
  8. 0CMD0
1 field
FieldBitsWhat it does
CMD2:0Command
  • 0 No Command
  • 1 Force update of Dead-time, SWAP and PGM buffer registers.
  • 2 Set Fault Detection
  • 3 Clear Fault Detection
  • 4 Set SW Blanking
  • 5 Clear SW Blanking

EVCTRLAEvent Control A

Address
0xC84
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4FILTER2
  5. 3FILTER1
  6. 2FILTER0
  7. 1BLANK
  8. 0FAULTEI
3 fields
FieldBitsWhat it does
FILTER4:2Fault Event Filter Enable
  • 0 No digital filter
  • 1 One Sample
  • 2 Two Samples
  • 3 Three Samples
  • 4 Four Samples
  • 5 Five Samples
  • 6 Six Samples
  • 7 Seven Samples
BLANK1Fault Event Blanking Enable
FAULTEI0Fault Event Input Enable

EVCTRLBEvent Control B

Address
0xC85
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4FILTER2
  5. 3FILTER1
  6. 2FILTER0
  7. 1BLANK
  8. 0FAULTEI
3 fields
FieldBitsWhat it does
FILTER4:2Fault Event Filter Enable
  • 0 No digital filter
  • 1 One Sample
  • 2 Two Samples
  • 3 Three Samples
  • 4 Four Samples
  • 5 Five Samples
  • 6 Six Samples
  • 7 Seven Samples
BLANK1Fault Event Blanking Enable
FAULTEI0Fault Event Input Enable

EVCTRLCEvent Control C

Address
0xC86
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4FILTER2
  5. 3FILTER1
  6. 2FILTER0
  7. 1BLANK
  8. 0FAULTEI
3 fields
FieldBitsWhat it does
FILTER4:2Fault Event Filter Enable
  • 0 No digital filter
  • 1 One Sample
  • 2 Two Samples
  • 3 Three Samples
  • 4 Four Samples
  • 5 Five Samples
  • 6 Six Samples
  • 7 Seven Samples
BLANK1Fault Event Blanking Enable
FAULTEI0Fault Event Input Enable

BUFCTRLBuffer Valid Control

Address
0xC87
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4PGMOUTBV
  5. 3PGMOVRBV
  6. 2SWAPBV
  7. 1DTHSBV
  8. 0DTLSBV
5 fields
FieldBitsWhat it does
PGMOUTBV4PGM Output Value Buffer Valid
PGMOVRBV3PGM Override Buffer Valid
SWAPBV2Swap Buffer Valid
DTHSBV1Dead-time High Side Buffer Valid
DTLSBV0Dead-time Low Side Buffer Valid

BLANKCTRLBlanking Control

Address
0xC88
Reset
0x00
Access
read/write
  1. 7–
  2. 6BLANKPRESC1
  3. 5BLANKPRESC0
  4. 4BLANKTRIG4
  5. 3BLANKTRIG3
  6. 2BLANKTRIG2
  7. 1BLANKTRIG1
  8. 0BLANKTRIG0
2 fields
FieldBitsWhat it does
BLANKPRESC6:5Blanking Prescaler
  • 0 No prescaling
  • 1 Divide CLK_PER by 4
  • 2 Divide CLK_PER by 16
  • 3 Divide CLK_PER by 64
BLANKTRIG4:0Blanking Trigger
  • 0 No HW trigger (Software only)
  • 4 TCE0 Update Condition
  • 8 TCE0 Compare 0
  • 12 TCE0 Compare 1
  • 16 TCE0 Compare 2
  • 20 TCE0 Compare 3

BLANKTIMEBlanking Time

Address
0xC89
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

FAULTCTRLFault Control

Address
0xC8A
Reset
0x00
Access
read/write
  1. 7FDDBD
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2FDMODE
  7. 1FDACT1
  8. 0FDACT0
3 fields
FieldBitsWhat it does
FDDBD7Fault Detection on Debug Break Detection
  • 0 OCD Break request is treated as a fault if fault protection is enabled
  • 1 OCD Breask request will not trigger a fault
FDMODE2Fault Detection Restart Mode
  • 0 Latched Mode. Output will remain in fault state until fault condition is no longer active and FDF is cleared by SW.
  • 1 Cycle-by-cycle mode. Waveform output will remain in fault state until fault condition is no longer active.
FDACT1:0Fault Detection Action
  • 0 None. Fault Protection Disabled
  • 1 Drive all pins low
  • 3 Drive all pins to setting defined by FAULTDRV and FAULTVAL

FAULTDRVFault Drive

Address
0xC8B
Reset
0x00
Access
read/write
  1. 7FAULTDRV7
  2. 6FAULTDRV6
  3. 5FAULTDRV5
  4. 4FAULTDRV4
  5. 3FAULTDRV3
  6. 2FAULTDRV2
  7. 1FAULTDRV1
  8. 0FAULTDRV0
8 fields
FieldBitsWhat it does
FAULTDRV77Fault Drive Enable Bit 7
FAULTDRV66Fault Drive Enable Bit 6
FAULTDRV55Fault Drive Enable Bit 5
FAULTDRV44Fault Drive Enable Bit 4
FAULTDRV33Fault Drive Enable Bit 3
FAULTDRV22Fault Drive Enable Bit 2
FAULTDRV11Fault Drive Enable Bit 1
FAULTDRV00Fault Drive Enable Bit 0

FAULTOUTFault Output

Address
0xC8C
Reset
0x00
Access
read/write
  1. 7FAULTOUT7
  2. 6FAULTOUT6
  3. 5FAULTOUT5
  4. 4FAULTOUT4
  5. 3FAULTOUT3
  6. 2FAULTOUT2
  7. 1FAULTOUT1
  8. 0FAULTOUT0
8 fields
FieldBitsWhat it does
FAULTOUT77Fault Output Value Bit 7
FAULTOUT66Fault Output Value Bit 6
FAULTOUT55Fault Output Value Bit 5
FAULTOUT44Fault Output Value Bit 4
FAULTOUT33Fault Output Value Bit 3
FAULTOUT22Fault Output Value Bit 2
FAULTOUT11Fault Output Value Bit 1
FAULTOUT00Fault Output Value Bit 0

INTCTRLInterrupt Control

Address
0xC8D
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0FAULTDET
1 field
FieldBitsWhat it does
FAULTDET0Fault Detection Interrupt Enable

INTFLAGSInterrupt Flags

Address
0xC8E
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4FDFEVC
  5. 3FDFEVB
  6. 2FDFEVA
  7. 1–
  8. 0FAULTDET
4 fields
FieldBitsWhat it does
FDFEVC4Fault Detection Flag Event Input C
FDFEVB3Fault Detection Flag Event Input B
FDFEVA2Fault Detection Flag Event Input A
FAULTDET0Fault Detection Interrupt Flag

STATUSStatus

Address
0xC8F
Reset
0x00
Access
read only
  1. 7BLANKSTATE
  2. 6–
  3. 5–
  4. 4FDSEVC
  5. 3FDSEVB
  6. 2FDSEVA
  7. 1–
  8. 0FDSTATE
5 fields
FieldBitsWhat it does
BLANKSTATE7Blanking State
  • 0 Blanking off
  • 1 Blanking active
FDSEVC4Fault Detection State Event C
FDSEVB3Fault Detection State Event B
FDSEVA2Fault Detection State Event A
FDSTATE0Fault Detection State
  • 0 Normal state
  • 1 Fault state

DTLSDead-time Low Side

Address
0xC90
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

DTHSDead-time High Side

Address
0xC91
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

DTBOTHDead-time Both Sides

Address
0xC92
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

SWAPDTI Swap

Address
0xC93
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3SWAP3
  6. 2SWAP2
  7. 1SWAP1
  8. 0SWAP0
4 fields
FieldBitsWhat it does
SWAP33Swap DTI Output Pair 3
SWAP22Swap DTI Output Pair 2
SWAP11Swap DTI Output Pair 1
SWAP00Swap DTI Output Pair 0

PGMOVRPattern Generation Override

Address
0xC94
Reset
0x00
Access
read/write
  1. 7PGMOVR7
  2. 6PGMOVR6
  3. 5PGMOVR5
  4. 4PGMOVR4
  5. 3PGMOVR3
  6. 2PGMOVR2
  7. 1PGMOVR1
  8. 0PGMOVR0
8 fields
FieldBitsWhat it does
PGMOVR77Pattern Generation Override Enable Bit 7
PGMOVR66Pattern Generation Override Enable Bit 6
PGMOVR55Pattern Generation Override Enable Bit 5
PGMOVR44Pattern Generation Override Enable Bit 4
PGMOVR33Pattern Generation Override Enable Bit 3
PGMOVR22Pattern Generation Override Enable Bit 2
PGMOVR11Pattern Generation Override Enable Bit 1
PGMOVR00Pattern Generation Override Enable Bit 0

PGMOUTPattern Generation Output

Address
0xC95
Reset
0x00
Access
read/write
  1. 7PGMOUT7
  2. 6PGMOUT6
  3. 5PGMOUT5
  4. 4PGMOUT4
  5. 3PGMOUT3
  6. 2PGMOUT2
  7. 1PGMOUT1
  8. 0PGMOUT0
8 fields
FieldBitsWhat it does
PGMOUT77Pattern Generation Output Value Bit 7
PGMOUT66Pattern Generation Output Value Bit 6
PGMOUT55Pattern Generation Output Value Bit 5
PGMOUT44Pattern Generation Output Value Bit 4
PGMOUT33Pattern Generation Output Value Bit 3
PGMOUT22Pattern Generation Output Value Bit 2
PGMOUT11Pattern Generation Output Value Bit 1
PGMOUT00Pattern Generation Output Value Bit 0

OUTOVENOutput Override Enable

Address
0xC97
Reset
0x00
Access
read/write
  1. 7OUTOVEN7
  2. 6OUTOVEN6
  3. 5OUTOVEN5
  4. 4OUTOVEN4
  5. 3OUTOVEN3
  6. 2OUTOVEN2
  7. 1OUTOVEN1
  8. 0OUTOVEN0
8 fields
FieldBitsWhat it does
OUTOVEN77Output Override Enable Bit 7
OUTOVEN66Output Override Enable Bit 6
OUTOVEN55Output Override Enable Bit 5
OUTOVEN44Output Override Enable Bit 4
OUTOVEN33Output Override Enable Bit 3
OUTOVEN22Output Override Enable Bit 2
OUTOVEN11Output Override Enable Bit 1
OUTOVEN00Output Override Enable Bit 0

DTLSBUFDead-time Low Side Buffer

Address
0xC98
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

DTHSBUFDead-time High Side Buffer

Address
0xC99
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

DTBOTHBUFDead-time Both Sides Buffer

Address
0xC9A
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

SWAPBUFDTI Swap Buffer

Address
0xC9B
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3SWAPBUF3
  6. 2SWAPBUF2
  7. 1SWAPBUF1
  8. 0SWAPBUF0
4 fields
FieldBitsWhat it does
SWAPBUF33Swap DTI Output Pair 3 Buffer
SWAPBUF22Swap DTI Output Pair 2 Buffer
SWAPBUF11Swap DTI Output Pair 1 Buffer
SWAPBUF00Swap DTI Output Pair 0 Buffer

PGMOVRBUFPattern Generation Override Buffer

Address
0xC9C
Reset
0x00
Access
read/write
  1. 7PGMOVRBUF7
  2. 6PGMOVRBUF6
  3. 5PGMOVRBUF5
  4. 4PGMOVRBUF4
  5. 3PGMOVRBUF3
  6. 2PGMOVRBUF2
  7. 1PGMOVRBUF1
  8. 0PGMOVRBUF0
8 fields
FieldBitsWhat it does
PGMOVRBUF77Pattern Generation Override Enable Buffer Bit 7
PGMOVRBUF66Pattern Generation Override Enable Buffer Bit 6
PGMOVRBUF55Pattern Generation Override Enable Buffer Bit 5
PGMOVRBUF44Pattern Generation Override Enable Buffer Bit 4
PGMOVRBUF33Pattern Generation Override Enable Buffer Bit 3
PGMOVRBUF22Pattern Generation Override Enable Buffer Bit 2
PGMOVRBUF11Pattern Generation Override Enable Buffer Bit 1
PGMOVRBUF00Pattern Generation Override Enable Buffer Bit 0

PGMOUTBUFPattern Generation Output Buffer

Address
0xC9D
Reset
0x00
Access
read/write
  1. 7PGMOUTBUF7
  2. 6PGMOUTBUF6
  3. 5PGMOUTBUF5
  4. 4PGMOUTBUF4
  5. 3PGMOUTBUF3
  6. 2PGMOUTBUF2
  7. 1PGMOUTBUF1
  8. 0PGMOUTBUF0
8 fields
FieldBitsWhat it does
PGMOUTBUF77Pattern Generation Output Value Buffer Bit 7
PGMOUTBUF66Pattern Generation Output Value Buffer Bit 6
PGMOUTBUF55Pattern Generation Output Value Buffer Bit 5
PGMOUTBUF44Pattern Generation Output Value Buffer Bit 4
PGMOUTBUF33Pattern Generation Output Value Buffer Bit 3
PGMOUTBUF22Pattern Generation Output Value Buffer Bit 2
PGMOUTBUF11Pattern Generation Output Value Buffer Bit 1
PGMOUTBUF00Pattern Generation Output Value Buffer Bit 0