ATxmega128D4 TCC1 registers The 20 registers of TCC1 (16-bit Timer/Counter With PWM), from 0x840, with their reset value and every field. The ATxmega128D4 has 441 registers in 45 peripherals, one page each.
TCC1 16-bit Timer/Counter With PWM CTRLAControl Register A
Address 0x840
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 CLKSEL3 2 CLKSEL2 1 CLKSEL1 0 CLKSEL0 1 field
Field Bits What it does CLKSEL 3:0 Clock Selection0 Timer Off1 System Clock2 System Clock / 23 System Clock / 44 System Clock / 85 System Clock / 646 System Clock / 2567 System Clock / 10248 Event Channel 09 Event Channel 110 Event Channel 211 Event Channel 3
CTRLBControl Register B
Address 0x841
Reset 0x00
Access read/write 7 – 6 – 5 CCBEN 4 CCAEN 3 – 2 WGMODE2 1 WGMODE1 0 WGMODE0 3 fields
Field Bits What it does CCBEN 5 Compare or Capture B Enable CCAEN 4 Compare or Capture A Enable WGMODE 2:0 Waveform generation mode0 Normal Mode1 Frequency Generation Mode3 Single Slope3 Single Slope5 Dual Slope, Update on TOP5 Dual Slope, Update on TOP6 Dual Slope, Update on both TOP and BOTTOM6 Dual Slope, Update on both TOP and BOTTOM7 Dual Slope, Update on BOTTOM7 Dual Slope, Update on BOTTOM
CTRLCControl register C
Address 0x842
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 CMPB 0 CMPA 2 fields
Field Bits What it does CMPB 1 Compare B Output Value CMPA 0 Compare A Output Value
CTRLDControl Register D
Address 0x843
Reset 0x00
Access read/write 7 EVACT2 6 EVACT1 5 EVACT0 4 EVDLY 3 EVSEL3 2 EVSEL2 1 EVSEL1 0 EVSEL0 3 fields
Field Bits What it does EVACT 7:5 Event Action0 No Event Action1 Input Capture2 Externally Controlled Up/Down Count3 Quadrature Decode4 Restart5 Frequency Capture6 Pulse-width Capture EVDLY 4 Event Delay EVSEL 3:0 Event Source Select0 No Event Source8 Event Channel 09 Event Channel 110 Event Channel 211 Event Channel 3
CTRLEControl Register E
Address 0x844
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 BYTEM 1 field
Field Bits What it does BYTEM 0 Byte Mode
INTCTRLAInterrupt Control Register A
Address 0x846
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 ERRINTLVL1 2 ERRINTLVL0 1 OVFINTLVL1 0 OVFINTLVL0 2 fields
Field Bits What it does ERRINTLVL 3:2 Error Interrupt Level0 Interrupt Disabled1 Low Level2 Medium Level3 High Level OVFINTLVL 1:0 Overflow interrupt level0 Interrupt Disabled1 Low Level2 Medium Level3 High Level
INTCTRLBInterrupt Control Register B
Address 0x847
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 CCBINTLVL1 2 CCBINTLVL0 1 CCAINTLVL1 0 CCAINTLVL0 2 fields
Field Bits What it does CCBINTLVL 3:2 Compare or Capture B Interrupt Level0 Interrupt Disabled1 Low Level2 Medium Level3 High Level CCAINTLVL 1:0 Compare or Capture A Interrupt Level0 Interrupt Disabled1 Low Level2 Medium Level3 High Level
CTRLFCLRControl Register F Clear
Address 0x848
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 CMD1 2 CMD0 1 LUPD 0 DIR 3 fields
Field Bits What it does CMD 3:2 Command LUPD 1 Lock Update DIR 0 Direction
CTRLFSETControl Register F Set
Address 0x849
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 CMD1 2 CMD0 1 LUPD 0 DIR 3 fields
Field Bits What it does CMD 3:2 Command0 No Command1 Force Update2 Force Restart3 Force Hard Reset LUPD 1 Lock Update DIR 0 Direction
CTRLGCLRControl Register G Clear
Address 0x84A
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 CCBBV 1 CCABV 0 PERBV 3 fields
Field Bits What it does CCBBV 2 Compare or Capture B Buffer Valid CCABV 1 Compare or Capture A Buffer Valid PERBV 0 Period Buffer Valid
CTRLGSETControl Register G Set
Address 0x84B
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 CCBBV 1 CCABV 0 PERBV 3 fields
Field Bits What it does CCBBV 2 Compare or Capture B Buffer Valid CCABV 1 Compare or Capture A Buffer Valid PERBV 0 Period Buffer Valid
INTFLAGSInterrupt Flag Register
Address 0x84C
Reset 0x00
Access read/write 7 – 6 – 5 CCBIF 4 CCAIF 3 – 2 – 1 ERRIF 0 OVFIF 4 fields
Field Bits What it does CCBIF 5 Compare or Capture B Interrupt Flag CCAIF 4 Compare or Capture A Interrupt Flag ERRIF 1 Error Interrupt Flag OVFIF 0 Overflow Interrupt Flag
TEMPTemporary Register For 16-bit Access
Address 0x84F
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – CNTCount
Address 0x860
Reset 0x0000
Access read/write
Size 16-bit PERPeriod
Address 0x866
Reset 0x0000
Access read/write
Size 16-bit CCACompare or Capture A
Address 0x868
Reset 0x0000
Access read/write
Size 16-bit CCBCompare or Capture B
Address 0x86A
Reset 0x0000
Access read/write
Size 16-bit PERBUFPeriod Buffer
Address 0x876
Reset 0x0000
Access read/write
Size 16-bit CCABUFCompare Or Capture A Buffer
Address 0x878
Reset 0x0000
Access read/write
Size 16-bit CCBBUFCompare Or Capture B Buffer
Address 0x87A
Reset 0x0000
Access read/write
Size 16-bit