AVR64DA64S TCB4 registers

The 10 registers of TCB4 (16-bit Timer Type B), from 0xB40, with their reset value and every field. The AVR64DA64S has 707 registers in 60 peripherals, one page each.

TCB4 16-bit Timer Type B

CTRLAControl A

Address
0xB40
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
  • 3 Use CLK_TCA from TCA1
  • 7 Count on event edge
ENABLE0Enable

CTRLBControl Register B

Address
0xB41
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
0xB44
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
0xB45
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
0xB46
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
0xB47
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
0xB48
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
0xB49
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

CNTCount

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

CCMPCompare or Capture

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