AVR64DA32 TCB2 registers

The 10 registers of TCB2 (16-bit Timer Type B), from 0xB20, with their reset value and every field. The AVR64DA32 has 486 registers in 46 peripherals, one page each.

TCB2 16-bit Timer Type B

CTRLAControl A

Address
0xB20
Reset
0x00
Access
read/write
  1. 7–
  2. 6RUNSTDBY
  3. 5CASCADE
  4. 4SYNCUPD
  5. 3CLKSEL2
  6. 2CLKSEL1
  7. 1CLKSEL0
  8. 0ENABLE
5 fields
FieldBitsWhat it does
RUNSTDBY6Run Standby
CASCADE5Cascade two timers
SYNCUPD4Synchronize Update
CLKSEL3:1Clock Select
  • 0 CLK_PER
  • 1 CLK_PER/2
  • 2 Use CLK_TCA from TCA0
  • 7 Count on event edge
ENABLE0Enable

CTRLBControl Register B

Address
0xB21
Reset
0x00
Access
read/write
  1. 7–
  2. 6ASYNC
  3. 5CCMPINIT
  4. 4CCMPEN
  5. 3–
  6. 2CNTMODE2
  7. 1CNTMODE1
  8. 0CNTMODE0
4 fields
FieldBitsWhat it does
ASYNC6Asynchronous Enable
CCMPINIT5Pin Initial State
CCMPEN4Pin Output Enable
CNTMODE2:0Timer Mode
  • 0 Periodic Interrupt
  • 1 Periodic Timeout
  • 2 Input Capture Event
  • 3 Input Capture Frequency measurement
  • 4 Input Capture Pulse-Width measurement
  • 5 Input Capture Frequency and Pulse-Width measurement
  • 6 Single Shot
  • 7 8-bit PWM

EVCTRLEvent Control

Address
0xB24
Reset
0x00
Access
read/write
  1. 7–
  2. 6FILTER
  3. 5–
  4. 4EDGE
  5. 3–
  6. 2–
  7. 1–
  8. 0CAPTEI
3 fields
FieldBitsWhat it does
FILTER6Input Capture Noise Cancellation Filter
EDGE4Event Edge
CAPTEI0Event Input Enable

INTCTRLInterrupt Control

Address
0xB25
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1OVF
  8. 0CAPT
2 fields
FieldBitsWhat it does
OVF1Overflow
CAPT0Capture or Timeout

INTFLAGSInterrupt Flags

Address
0xB26
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1OVF
  8. 0CAPT
2 fields
FieldBitsWhat it does
OVF1Overflow
CAPT0Capture or Timeout

STATUSStatus

Address
0xB27
Reset
0x00
Access
read only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0RUN
1 field
FieldBitsWhat it does
RUN0Run

DBGCTRLDebug Control

Address
0xB28
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 Value

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

CNTCount

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

CCMPCompare or Capture

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