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
Field Bits What it does PRESCSYNC 13:12 Prescaler and Counter Synchronization0 Reload or reset the counter on next generic clock1 Reload or reset the counter on next prescaler clock2 Reload or reset the counter on next generic clock. Reset the prescaler counter RUNSTDBY 11 Run in Standby PRESCALER 10:8 Prescaler0 Prescaler: GCLK_TC1 Prescaler: GCLK_TC/22 Prescaler: GCLK_TC/43 Prescaler: GCLK_TC/84 Prescaler: GCLK_TC/165 Prescaler: GCLK_TC/646 Prescaler: GCLK_TC/2567 Prescaler: GCLK_TC/1024 WAVEGEN 6:5 Waveform Generation Operation MODE 3:2 TC Mode0 Counter in 16-bit mode1 Counter in 8-bit mode2 Counter in 32-bit mode ENABLE 1 Enable SWRST 0 Software Reset
READREQRead Request
Address 0x42003C02
Reset 0x0000
Access read/write
Size 16-bit 3 fields
Field Bits What it does RREQ 15 Read Request RCONT 14 Read Continuously ADDR 4:0 Address
CTRLBCLRControl B Clear
Address 0x42003C04
Reset 0x02
Access read/write 7 CMD1 6 CMD0 5 – 4 – 3 – 2 ONESHOT 1 – 0 DIR 3 fields
Field Bits What it does CMD 7:6 Command0 No action1 Force a start, restart or retrigger2 Force a stop ONESHOT 2 One-Shot DIR 0 Counter Direction
CTRLBSETControl B Set
Address 0x42003C05
Reset 0x00
Access read/write 7 CMD1 6 CMD0 5 – 4 – 3 – 2 ONESHOT 1 – 0 DIR 3 fields
Field Bits What it does CMD 7:6 Command0 No action1 Force a start, restart or retrigger2 Force a stop ONESHOT 2 One-Shot DIR 0 Counter Direction
CTRLCControl C
Address 0x42003C06
Reset 0x00
Access read/write 7 – 6 – 5 CPTEN1 4 CPTEN0 3 – 2 – 1 INVEN1 0 INVEN0 4 fields
Field Bits What it does CPTEN1 5 Capture Channel 1 Enable CPTEN0 4 Capture Channel 0 Enable INVEN1 1 Output Waveform 1 Invert Enable INVEN0 0 Output Waveform 0 Invert Enable
DBGCTRLDebug Control
Address 0x42003C08
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 DBGRUN 1 field
Field Bits What it does DBGRUN 0 Debug Run Mode
EVCTRLEvent Control
Address 0x42003C0A
Reset 0x0000
Access read/write
Size 16-bit 6 fields
Field Bits What it does MCEO1 13 Match or Capture Channel 1 Event Output Enable MCEO0 12 Match or Capture Channel 0 Event Output Enable OVFEO 8 Overflow/Underflow Event Output Enable TCEI 5 TC Event Input TCINV 4 TC Inverted Event Input EVACT 2:0 Event Action0 Event action disabled1 Start, restart or retrigger TC on event2 Count on event3 Start TC on event5 Period captured in CC0, pulse width in CC16 Period captured in CC1, pulse width in CC0
INTENCLRInterrupt Enable Clear
Address 0x42003C0C
Reset 0x00
Access read/write 7 – 6 – 5 MC1 4 MC0 3 SYNCRDY 2 – 1 ERR 0 OVF 5 fields
Field Bits What it does MC1 5 Match or Capture Channel 1 Interrupt Enable MC0 4 Match or Capture Channel 0 Interrupt Enable SYNCRDY 3 Synchronization Ready Interrupt Enable ERR 1 Error Interrupt Enable OVF 0 Overflow Interrupt Enable
INTENSETInterrupt Enable Set
Address 0x42003C0D
Reset 0x00
Access read/write 7 – 6 – 5 MC1 4 MC0 3 SYNCRDY 2 – 1 ERR 0 OVF 5 fields
Field Bits What it does MC1 5 Match or Capture Channel 1 Interrupt Enable MC0 4 Match or Capture Channel 0 Interrupt Enable SYNCRDY 3 Synchronization Ready Interrupt Enable ERR 1 Error Interrupt Enable OVF 0 Overflow Interrupt Enable
INTFLAGInterrupt Flag Status and Clear
Address 0x42003C0E
Reset 0x00
Access read/write 7 – 6 – 5 MC1 4 MC0 3 SYNCRDY 2 – 1 ERR 0 OVF 5 fields
Field Bits What it does MC1 5 Match or Capture Channel 1 MC0 4 Match or Capture Channel 0 SYNCRDY 3 Synchronization Ready ERR 1 Error OVF 0 Overflow
STATUSStatus
Address 0x42003C0F
Reset 0x08
Access read only 7 SYNCBUSY 6 – 5 – 4 SLAVE 3 STOP 2 – 1 – 0 – 3 fields
Field Bits What it does SYNCBUSY 7 Synchronization Busy SLAVE 4 Slave STOP 3 Stop
COUNT16.COUNTCOUNT16 Counter Value
Address 0x42003C10
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does COUNT 15:0 Count Value
COUNT32.COUNTCOUNT32 Counter Value
Address 0x42003C10
Reset 0x00000000
Access read/write
Size 32-bit 1 field
Field Bits What it does COUNT 31:0 Count Value
COUNT8.COUNTCOUNT8 Counter Value
Address 0x42003C10
Reset 0x00
Access read/write 7 COUNT7 6 COUNT6 5 COUNT5 4 COUNT4 3 COUNT3 2 COUNT2 1 COUNT1 0 COUNT0 1 field
Field Bits What it does COUNT 7:0 Counter Value
COUNT8.PERCOUNT8 Period Value
Address 0x42003C14
Reset 0xFF
Access read/write 7 PER7 6 PER6 5 PER5 4 PER4 3 PER3 2 PER2 1 PER1 0 PER0 1 field
Field Bits What it does PER 7:0 Period Value
COUNT16.CC0COUNT16 Compare/Capture
Address 0x42003C18
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does CC 15:0 Compare/Capture Value
COUNT32.CC0COUNT32 Compare/Capture
Address 0x42003C18
Reset 0x00000000
Access read/write
Size 32-bit 1 field
Field Bits What it does CC 31:0 Compare/Capture Value
COUNT8.CC0COUNT8 Compare/Capture
Address 0x42003C18
Reset 0x00
Access read/write 7 CC7 6 CC6 5 CC5 4 CC4 3 CC3 2 CC2 1 CC1 0 CC0 1 field
Field Bits What it does CC 7:0 Compare/Capture Value
COUNT8.CC1COUNT8 Compare/Capture
Address 0x42003C19
Reset 0x00
Access read/write 7 CC7 6 CC6 5 CC5 4 CC4 3 CC3 2 CC2 1 CC1 0 CC0 1 field
Field Bits What it does CC 7:0 Compare/Capture Value
COUNT16.CC1COUNT16 Compare/Capture
Address 0x42003C1A
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does CC 15:0 Compare/Capture Value
COUNT32.CC1COUNT32 Compare/Capture
Address 0x42003C1C
Reset 0x00000000
Access read/write
Size 32-bit 1 field
Field Bits What it does CC 31:0 Compare/Capture Value