ATxmega64C3 TCD0 registers

The 24 registers of TCD0 (16-bit Timer/Counter With PWM), from 0x900, with their reset value and every field. The ATxmega64C3 has 550 registers in 51 peripherals, one page each.

TCD0 16-bit Timer/Counter With PWM

CTRLAControl Register A

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

CTRLBControl Register B

Address
0x901
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
  • 3 Single Slope
  • 5 Dual Slope, Update on TOP
  • 5 Dual Slope, Update on TOP
  • 6 Dual Slope, Update on both TOP and BOTTOM
  • 6 Dual Slope, Update on both TOP and BOTTOM
  • 7 Dual Slope, Update on BOTTOM
  • 7 Dual Slope, Update on BOTTOM

CTRLCControl register C

Address
0x902
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
0x903
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

CTRLEControl Register E

Address
0x904
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1BYTEM1
  8. 0BYTEM0
1 field
FieldBitsWhat it does
BYTEM1:0Byte Mode
  • 0 16-bit mode
  • 1 Timer/Counter operating in byte mode only
  • 2 Timer/Counter split into two 8-bit Counters (TC2)

INTCTRLAInterrupt Control Register A

Address
0x906
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
0x907
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
0x908
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
0x909
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
0x90A
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
0x90B
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
0x90C
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
0x90F
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

CNTCount

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

PERPeriod

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

CCACompare or Capture A

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

CCBCompare or Capture B

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

CCCCompare or Capture C

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

CCDCompare or Capture D

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

PERBUFPeriod Buffer

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

CCABUFCompare Or Capture A Buffer

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

CCBBUFCompare Or Capture B Buffer

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

CCCBUFCompare Or Capture C Buffer

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

CCDBUFCompare Or Capture D Buffer

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