AVR32EB32 TCE0 registers

The 27 registers of TCE0 (16-bit Timer/Counter Type E), from 0xA00, with their reset value and every field. The AVR32EB32 has 423 registers in 40 peripherals, one page each.

TCE0 16-bit Timer/Counter Type E

CTRLAControl A

Address
0xA00
Reset
0x00
Access
read/write
  1. 7RUNSTDBY
  2. 6–
  3. 5–
  4. 4–
  5. 3CLKSEL2
  6. 2CLKSEL1
  7. 1CLKSEL0
  8. 0ENABLE
3 fields
FieldBitsWhat it does
RUNSTDBY7Run in Standby
CLKSEL3:1Clock Selection
  • 0 System Clock
  • 1 System Clock / 2
  • 2 System Clock / 4
  • 3 System Clock / 8
  • 4 System Clock / 16
  • 5 System Clock / 64
  • 6 System Clock / 256
  • 7 System Clock / 1024
ENABLE0Module Enable

CTRLBControl B

Address
0xA01
Reset
0x00
Access
read/write
  1. 7CMP3EN
  2. 6CMP2EN
  3. 5CMP1EN
  4. 4CMP0EN
  5. 3ALUPD
  6. 2WGMODE2
  7. 1WGMODE1
  8. 0WGMODE0
6 fields
FieldBitsWhat it does
CMP3EN7Compare 3 Enable
CMP2EN6Compare 2 Enable
CMP1EN5Compare 1 Enable
CMP0EN4Compare 0 Enable
ALUPD3Auto Lock Update
WGMODE2:0Waveform generation mode
  • 0 Normal Mode
  • 1 Frequency Generation Mode
  • 3 Single Slope PWM
  • 5 Dual Slope PWM, overflow on TOP
  • 6 Dual Slope PWM, overflow on TOP and BOTTOM
  • 7 Dual Slope PWM, overflow on BOTTOM

CTRLCControl C

Address
0xA02
Reset
0x00
Access
read/write
  1. 7CMP3POL
  2. 6CMP2POL
  3. 5CMP1POL
  4. 4CMP0POL
  5. 3CMP3OV
  6. 2CMP2OV
  7. 1CMP1OV
  8. 0CMP0OV
8 fields
FieldBitsWhat it does
CMP3POL7Compare 3 Polarity
CMP2POL6Compare 2 Polarity
CMP1POL5Compare 1 Polarity
CMP0POL4Compare 0 Polarity
CMP3OV3Compare 3 Waveform Output Value
CMP2OV2Compare 2 Waveform Output Value
CMP1OV1Compare 1 Waveform Output Value
CMP0OV0Compare 0 Waveform Output Value

CTRLDControl D

Address
0xA03
Reset
0x00
Access
read/write
  1. 7HREN1
  2. 6HREN0
  3. 5SCALEMODE1
  4. 4SCALEMODE0
  5. 3AMPEN
  6. 2SCALE
  7. 1–
  8. 0–
4 fields
FieldBitsWhat it does
HREN7:6High Resolution Enable
  • 0 High Resolution Disable
  • 1 Resolution increased by 4 (2 bits)
  • 2 Resolution increased by 4 (3 bits)
SCALEMODE5:4Scaling Mode
  • 0 CMPn registers scaled vs center (50% duty cycle)
  • 1 CMPn registers scaled vs BOTTOM (0% duty cycle)
  • 2 CMPn registers scaled vs TOP (100% duty cycle)
  • 3 CMPn registers scaled vs TOP or BOTTOM depending on written value.
AMPEN3Amplitude Control Enable
SCALE2Scaled Write
  • 0 Absolute values used when writing to CMPn, CMPnBUF and registers
  • 1 Fractional values used when writing to CMPn, CMPnBUF and registers

CTRLECLRControl E Clear

Address
0xA04
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3CMD1
  6. 2CMD0
  7. 1LUPD
  8. 0DIR
3 fields
FieldBitsWhat it does
CMD3:2Command
  • 0 No Command
  • 1 Force Update
  • 2 Force Restart
  • 3 Force Hard Reset
LUPD1Lock Update
DIR0Direction

CTRLESETControl E Set

Address
0xA05
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3CMD1
  6. 2CMD0
  7. 1LUPD
  8. 0DIR
3 fields
FieldBitsWhat it does
CMD3:2Command
  • 0 No Command
  • 1 Force Update
  • 2 Force Restart
  • 3 Force Hard Reset
LUPD1Lock Update
DIR0Direction
  • 0 Count up
  • 1 Count down

CTRLFCLRControl F Clear

Address
0xA06
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4CMP3BV
  5. 3CMP2BV
  6. 2CMP1BV
  7. 1CMP0BV
  8. 0PERBV
5 fields
FieldBitsWhat it does
CMP3BV4Compare 3 Buffer Valid
CMP2BV3Compare 2 Buffer Valid
CMP1BV2Compare 1 Buffer Valid
CMP0BV1Compare 0 Buffer Valid
PERBV0Period Buffer Valid

CTRLFSETControl F Set

Address
0xA07
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4CMP3BV
  5. 3CMP2BV
  6. 2CMP1BV
  7. 1CMP0BV
  8. 0PERBV
5 fields
FieldBitsWhat it does
CMP3BV4Compare 3 Buffer Valid
CMP2BV3Compare 2 Buffer Valid
CMP1BV2Compare 1 Buffer Valid
CMP0BV1Compare 0 Buffer Valid
PERBV0Period Buffer Valid

EVGENCTRLEvent Generation Control

Address
0xA08
Reset
0x00
Access
read/write
  1. 7CMP3EV
  2. 6CMP2EV
  3. 5CMP1EV
  4. 4CMP0EV
  5. 3–
  6. 2–
  7. 1–
  8. 0–
4 fields
FieldBitsWhat it does
CMP3EV7Compare 3 Event
  • 0 Event output for CMP is a pulse
  • 1 Event output for CMP is equal to waveform
CMP2EV6Compare 2 Event
  • 0 Event output for CMP is a pulse
  • 1 Event output for CMP is equal to waveform
CMP1EV5Compare 1 Event
  • 0 Event output for CMP is a pulse
  • 1 Event output for CMP is equal to waveform
CMP0EV4Compare 0 Event
  • 0 Event output for CMP is a pulse
  • 1 Event output for CMP is equal to waveform

EVCTRLEvent Control

Address
0xA09
Reset
0x00
Access
read/write
  1. 7EVACTB2
  2. 6EVACTB1
  3. 5EVACTB0
  4. 4CNTBEI
  5. 3EVACTA2
  6. 2EVACTA1
  7. 1EVACTA0
  8. 0CNTAEI
4 fields
FieldBitsWhat it does
EVACTB7:5Event Action B
  • 0 No Action
  • 3 Count on prescaled clock. Event controls count direction. Up-count when event line is 0, down-count when event line is 1.
  • 4 Restart counter at positive edge event
  • 5 Restart counter on any edge event
  • 6 Restart counter while event line is 1.
CNTBEI4Count on Event Input B
EVACTA3:1Event Action A
  • 0 Count on positive edge event
  • 1 Count on any edge event
  • 2 Count on prescaled clock while event line is 1.
  • 3 Count on prescaled clock. Event controls count direction. Up-count when event line is 0, down-count when event line is 1.
CNTAEI0Count on Event Input A

INTCTRLInterrupt Control

Address
0xA0A
Reset
0x00
Access
read/write
  1. 7CMP3
  2. 6CMP2
  3. 5CMP1
  4. 4CMP0
  5. 3–
  6. 2–
  7. 1–
  8. 0OVF
5 fields
FieldBitsWhat it does
CMP37Compare 3 Interrupt Enable
CMP26Compare 2 Interrupt Enable
CMP15Compare 1 Interrupt Enable
CMP04Compare 0 Interrupt Enable
OVF0Overflow Interrupt Enable

INTFLAGSInterrupt Flags

Address
0xA0B
Reset
0x00
Access
read/write
  1. 7CMP3
  2. 6CMP2
  3. 5CMP1
  4. 4CMP0
  5. 3–
  6. 2–
  7. 1–
  8. 0OVF
5 fields
FieldBitsWhat it does
CMP37Compare 3 Interrupt Flag
CMP26Compare 2 Interrupt Flag
CMP15Compare 1 Interrupt Flag
CMP04Compare 0 Interrupt Flag
OVF0Overflow Interrupt Flag

DBGCTRLDebug Control

Address
0xA0E
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0DBGRUN
1 field
FieldBitsWhat it does
DBGRUN0Debug Run

TEMPTemporary data for 16-bit Access

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

CNTCount

Address
0xA20
Reset
0x0000
Access
read/write
Size
16-bit

AMPAmplitude

Address
0xA22
Reset
0x0000
Access
read/write
Size
16-bit

OFFSETOffset

Address
0xA24
Reset
0x0000
Access
read/write
Size
16-bit

PERPeriod

Address
0xA26
Reset
0x0000
Access
read/write
Size
16-bit

CMP0Compare 0

Address
0xA28
Reset
0x0000
Access
read/write
Size
16-bit

CMP1Compare 1

Address
0xA2A
Reset
0x0000
Access
read/write
Size
16-bit

CMP2Compare 2

Address
0xA2C
Reset
0x0000
Access
read/write
Size
16-bit

CMP3Compare 3

Address
0xA2E
Reset
0x0000
Access
read/write
Size
16-bit

PERBUFPeriod Buffer

Address
0xA36
Reset
0x0000
Access
read/write
Size
16-bit

CMP0BUFCompare 0 Buffer

Address
0xA38
Reset
0x0000
Access
read/write
Size
16-bit

CMP1BUFCompare 1 Buffer

Address
0xA3A
Reset
0x0000
Access
read/write
Size
16-bit

CMP2BUFCompare 2 Buffer

Address
0xA3C
Reset
0x0000
Access
read/write
Size
16-bit

CMP3BUFCompare 3 Buffer

Address
0xA3E
Reset
0x0000
Access
read/write
Size
16-bit