ATxmega256D3 TCC0 registers

The 24 registers of TCC0 (16-bit Timer/Counter With PWM), from 0x800, with their reset value and every field. The ATxmega256D3 has 548 registers in 52 peripherals, one page each.

TCC0 16-bit Timer/Counter With PWM

CTRLAControl Register A

Address
0x800
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3CLKSEL3
  6. 2CLKSEL2
  7. 1CLKSEL1
  8. 0CLKSEL0
1 field
FieldBitsWhat it does
CLKSEL3:0Clock Selection
  • 0 Timer Off
  • 1 System Clock
  • 2 System Clock / 2
  • 3 System Clock / 4
  • 4 System Clock / 8
  • 5 System Clock / 64
  • 6 System Clock / 256
  • 7 System Clock / 1024
  • 8 Event Channel 0
  • 9 Event Channel 1
  • 10 Event Channel 2
  • 11 Event Channel 3
  • 12 Event Channel 4
  • 13 Event Channel 5
  • 14 Event Channel 6
  • 15 Event Channel 7

CTRLBControl Register B

Address
0x801
Reset
0x00
Access
read/write
  1. 7CCDEN
  2. 6CCCEN
  3. 5CCBEN
  4. 4CCAEN
  5. 3–
  6. 2WGMODE2
  7. 1WGMODE1
  8. 0WGMODE0
5 fields
FieldBitsWhat it does
CCDEN7Compare or Capture D Enable
CCCEN6Compare or Capture C Enable
CCBEN5Compare or Capture B Enable
CCAEN4Compare or Capture A Enable
WGMODE2:0Waveform generation mode
  • 0 Normal Mode
  • 1 Frequency Generation Mode
  • 3 Single Slope
  • 5 Dual Slope, Update on TOP
  • 6 Dual Slope, Update on TOP and BOTTOM
  • 7 Dual Slope, Update on BOTTOM

CTRLCControl register C

Address
0x802
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3CMPD
  6. 2CMPC
  7. 1CMPB
  8. 0CMPA
4 fields
FieldBitsWhat it does
CMPD3Compare D Output Value
CMPC2Compare C Output Value
CMPB1Compare B Output Value
CMPA0Compare A Output Value

CTRLDControl Register D

Address
0x803
Reset
0x00
Access
read/write
  1. 7EVACT2
  2. 6EVACT1
  3. 5EVACT0
  4. 4EVDLY
  5. 3EVSEL3
  6. 2EVSEL2
  7. 1EVSEL1
  8. 0EVSEL0
3 fields
FieldBitsWhat it does
EVACT7:5Event Action
  • 0 No Event Action
  • 1 Input Capture
  • 2 Externally Controlled Up/Down Count
  • 3 Quadrature Decode
  • 4 Restart
  • 5 Frequency Capture
  • 6 Pulse-width Capture
EVDLY4Event Delay
EVSEL3:0Event Source Select
  • 0 No Event Source
  • 8 Event Channel 0
  • 9 Event Channel 1
  • 10 Event Channel 2
  • 11 Event Channel 3
  • 12 Event Channel 4
  • 13 Event Channel 5
  • 14 Event Channel 6
  • 15 Event Channel 7

CTRLEControl Register E

Address
0x804
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0BYTEM
1 field
FieldBitsWhat it does
BYTEM0Byte Mode

INTCTRLAInterrupt Control Register A

Address
0x806
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3ERRINTLVL1
  6. 2ERRINTLVL0
  7. 1OVFINTLVL1
  8. 0OVFINTLVL0
2 fields
FieldBitsWhat it does
ERRINTLVL3:2Error Interrupt Level
  • 0 Interrupt Disabled
  • 1 Low Level
  • 2 Medium Level
  • 3 High Level
OVFINTLVL1:0Overflow interrupt level
  • 0 Interrupt Disabled
  • 1 Low Level
  • 2 Medium Level
  • 3 High Level

INTCTRLBInterrupt Control Register B

Address
0x807
Reset
0x00
Access
read/write
  1. 7CCDINTLVL1
  2. 6CCDINTLVL0
  3. 5CCCINTLVL1
  4. 4CCCINTLVL0
  5. 3CCBINTLVL1
  6. 2CCBINTLVL0
  7. 1CCAINTLVL1
  8. 0CCAINTLVL0
4 fields
FieldBitsWhat it does
CCDINTLVL7:6Compare or Capture D Interrupt Level
  • 0 Interrupt Disabled
  • 1 Low Level
  • 2 Medium Level
  • 3 High Level
CCCINTLVL5:4Compare or Capture C Interrupt Level
  • 0 Interrupt Disabled
  • 1 Low Level
  • 2 Medium Level
  • 3 High Level
CCBINTLVL3:2Compare or Capture B Interrupt Level
  • 0 Interrupt Disabled
  • 1 Low Level
  • 2 Medium Level
  • 3 High Level
CCAINTLVL1:0Compare or Capture A Interrupt Level
  • 0 Interrupt Disabled
  • 1 Low Level
  • 2 Medium Level
  • 3 High Level

CTRLFCLRControl Register F Clear

Address
0x808
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
LUPD1Lock Update
DIR0Direction

CTRLFSETControl Register F Set

Address
0x809
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

CTRLGCLRControl Register G Clear

Address
0x80A
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4CCDBV
  5. 3CCCBV
  6. 2CCBBV
  7. 1CCABV
  8. 0PERBV
5 fields
FieldBitsWhat it does
CCDBV4Compare or Capture D Buffer Valid
CCCBV3Compare or Capture C Buffer Valid
CCBBV2Compare or Capture B Buffer Valid
CCABV1Compare or Capture A Buffer Valid
PERBV0Period Buffer Valid

CTRLGSETControl Register G Set

Address
0x80B
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4CCDBV
  5. 3CCCBV
  6. 2CCBBV
  7. 1CCABV
  8. 0PERBV
5 fields
FieldBitsWhat it does
CCDBV4Compare or Capture D Buffer Valid
CCCBV3Compare or Capture C Buffer Valid
CCBBV2Compare or Capture B Buffer Valid
CCABV1Compare or Capture A Buffer Valid
PERBV0Period Buffer Valid

INTFLAGSInterrupt Flag Register

Address
0x80C
Reset
0x00
Access
read/write
  1. 7CCDIF
  2. 6CCCIF
  3. 5CCBIF
  4. 4CCAIF
  5. 3–
  6. 2–
  7. 1ERRIF
  8. 0OVFIF
6 fields
FieldBitsWhat it does
CCDIF7Compare or Capture D Interrupt Flag
CCCIF6Compare or Capture C Interrupt Flag
CCBIF5Compare or Capture B Interrupt Flag
CCAIF4Compare or Capture A Interrupt Flag
ERRIF1Error Interrupt Flag
OVFIF0Overflow Interrupt Flag

TEMPTemporary Register For 16-bit Access

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

CNTCount

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

PERPeriod

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

CCACompare or Capture A

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

CCBCompare or Capture B

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

CCCCompare or Capture C

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

CCDCompare or Capture D

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

PERBUFPeriod Buffer

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

CCABUFCompare Or Capture A Buffer

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

CCBBUFCompare Or Capture B Buffer

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

CCCBUFCompare Or Capture C Buffer

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

CCDBUFCompare Or Capture D Buffer

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