ATSAMHA1G15AB TC7 registers

The 21 registers of TC7 (Basic Timer Counter), from 0x42003C00, with their reset value and every field. The ATSAMHA1G15AB has 990 registers in 36 peripherals, one page each.

TC7 Basic Timer Counter

CTRLAControl A

Address
0x42003C00
Reset
0x0000
Access
read/write
Size
16-bit
7 fields
FieldBitsWhat it does
PRESCSYNC13:12Prescaler and Counter Synchronization
  • 0 Reload or reset the counter on next generic clock
  • 1 Reload or reset the counter on next prescaler clock
  • 2 Reload or reset the counter on next generic clock. Reset the prescaler counter
RUNSTDBY11Run in Standby
PRESCALER10:8Prescaler
  • 0 Prescaler: GCLK_TC
  • 1 Prescaler: GCLK_TC/2
  • 2 Prescaler: GCLK_TC/4
  • 3 Prescaler: GCLK_TC/8
  • 4 Prescaler: GCLK_TC/16
  • 5 Prescaler: GCLK_TC/64
  • 6 Prescaler: GCLK_TC/256
  • 7 Prescaler: GCLK_TC/1024
WAVEGEN6:5Waveform Generation Operation
  • 0
  • 1
  • 2
  • 3
MODE3:2TC Mode
  • 0 Counter in 16-bit mode
  • 1 Counter in 8-bit mode
  • 2 Counter in 32-bit mode
ENABLE1Enable
SWRST0Software Reset

READREQRead Request

Address
0x42003C02
Reset
0x0000
Access
read/write
Size
16-bit
3 fields
FieldBitsWhat it does
RREQ15Read Request
RCONT14Read Continuously
ADDR4:0Address

CTRLBCLRControl B Clear

Address
0x42003C04
Reset
0x02
Access
read/write
  1. 7CMD1
  2. 6CMD0
  3. 5–
  4. 4–
  5. 3–
  6. 2ONESHOT
  7. 1–
  8. 0DIR
3 fields
FieldBitsWhat it does
CMD7:6Command
  • 0 No action
  • 1 Force a start, restart or retrigger
  • 2 Force a stop
ONESHOT2One-Shot
DIR0Counter Direction

CTRLBSETControl B Set

Address
0x42003C05
Reset
0x00
Access
read/write
  1. 7CMD1
  2. 6CMD0
  3. 5–
  4. 4–
  5. 3–
  6. 2ONESHOT
  7. 1–
  8. 0DIR
3 fields
FieldBitsWhat it does
CMD7:6Command
  • 0 No action
  • 1 Force a start, restart or retrigger
  • 2 Force a stop
ONESHOT2One-Shot
DIR0Counter Direction

CTRLCControl C

Address
0x42003C06
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5CPTEN1
  4. 4CPTEN0
  5. 3–
  6. 2–
  7. 1INVEN1
  8. 0INVEN0
4 fields
FieldBitsWhat it does
CPTEN15Capture Channel 1 Enable
CPTEN04Capture Channel 0 Enable
INVEN11Output Waveform 1 Invert Enable
INVEN00Output Waveform 0 Invert Enable

DBGCTRLDebug Control

Address
0x42003C08
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 Mode

EVCTRLEvent Control

Address
0x42003C0A
Reset
0x0000
Access
read/write
Size
16-bit
6 fields
FieldBitsWhat it does
MCEO113Match or Capture Channel 1 Event Output Enable
MCEO012Match or Capture Channel 0 Event Output Enable
OVFEO8Overflow/Underflow Event Output Enable
TCEI5TC Event Input
TCINV4TC Inverted Event Input
EVACT2:0Event Action
  • 0 Event action disabled
  • 1 Start, restart or retrigger TC on event
  • 2 Count on event
  • 3 Start TC on event
  • 5 Period captured in CC0, pulse width in CC1
  • 6 Period captured in CC1, pulse width in CC0

INTENCLRInterrupt Enable Clear

Address
0x42003C0C
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5MC1
  4. 4MC0
  5. 3SYNCRDY
  6. 2–
  7. 1ERR
  8. 0OVF
5 fields
FieldBitsWhat it does
MC15Match or Capture Channel 1 Interrupt Enable
MC04Match or Capture Channel 0 Interrupt Enable
SYNCRDY3Synchronization Ready Interrupt Enable
ERR1Error Interrupt Enable
OVF0Overflow Interrupt Enable

INTENSETInterrupt Enable Set

Address
0x42003C0D
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5MC1
  4. 4MC0
  5. 3SYNCRDY
  6. 2–
  7. 1ERR
  8. 0OVF
5 fields
FieldBitsWhat it does
MC15Match or Capture Channel 1 Interrupt Enable
MC04Match or Capture Channel 0 Interrupt Enable
SYNCRDY3Synchronization Ready Interrupt Enable
ERR1Error Interrupt Enable
OVF0Overflow Interrupt Enable

INTFLAGInterrupt Flag Status and Clear

Address
0x42003C0E
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5MC1
  4. 4MC0
  5. 3SYNCRDY
  6. 2–
  7. 1ERR
  8. 0OVF
5 fields
FieldBitsWhat it does
MC15Match or Capture Channel 1
MC04Match or Capture Channel 0
SYNCRDY3Synchronization Ready
ERR1Error
OVF0Overflow

STATUSStatus

Address
0x42003C0F
Reset
0x08
Access
read only
  1. 7SYNCBUSY
  2. 6–
  3. 5–
  4. 4SLAVE
  5. 3STOP
  6. 2–
  7. 1–
  8. 0–
3 fields
FieldBitsWhat it does
SYNCBUSY7Synchronization Busy
SLAVE4Slave
STOP3Stop

COUNT16.COUNTCOUNT16 Counter Value

Address
0x42003C10
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
COUNT15:0Count Value

COUNT32.COUNTCOUNT32 Counter Value

Address
0x42003C10
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
COUNT31:0Count Value

COUNT8.COUNTCOUNT8 Counter Value

Address
0x42003C10
Reset
0x00
Access
read/write
  1. 7COUNT7
  2. 6COUNT6
  3. 5COUNT5
  4. 4COUNT4
  5. 3COUNT3
  6. 2COUNT2
  7. 1COUNT1
  8. 0COUNT0
1 field
FieldBitsWhat it does
COUNT7:0Counter Value

COUNT8.PERCOUNT8 Period Value

Address
0x42003C14
Reset
0xFF
Access
read/write
  1. 7PER7
  2. 6PER6
  3. 5PER5
  4. 4PER4
  5. 3PER3
  6. 2PER2
  7. 1PER1
  8. 0PER0
1 field
FieldBitsWhat it does
PER7:0Period Value

COUNT16.CC0COUNT16 Compare/Capture

Address
0x42003C18
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
CC15:0Compare/Capture Value

COUNT32.CC0COUNT32 Compare/Capture

Address
0x42003C18
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
CC31:0Compare/Capture Value

COUNT8.CC0COUNT8 Compare/Capture

Address
0x42003C18
Reset
0x00
Access
read/write
  1. 7CC7
  2. 6CC6
  3. 5CC5
  4. 4CC4
  5. 3CC3
  6. 2CC2
  7. 1CC1
  8. 0CC0
1 field
FieldBitsWhat it does
CC7:0Compare/Capture Value

COUNT8.CC1COUNT8 Compare/Capture

Address
0x42003C19
Reset
0x00
Access
read/write
  1. 7CC7
  2. 6CC6
  3. 5CC5
  4. 4CC4
  5. 3CC3
  6. 2CC2
  7. 1CC1
  8. 0CC0
1 field
FieldBitsWhat it does
CC7:0Compare/Capture Value

COUNT16.CC1COUNT16 Compare/Capture

Address
0x42003C1A
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
CC15:0Compare/Capture Value

COUNT32.CC1COUNT32 Compare/Capture

Address
0x42003C1C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
CC31:0Compare/Capture Value