ATSAME70Q20B TC2 registers

The 47 registers of TC2 (Timer Counter), from 0x40014000, with their reset value and every field. The ATSAME70Q20B has 2961 registers in 67 peripherals, one page each.

TC2 Timer Counter

TC_CHANNEL0.TC_CCRChannel Control Register (channel = 0)

Address
0x40014000
Reset
0x00000000
Access
write only
Size
32-bit
3 fields
FieldBitsWhat it does
SWTRG2Software Trigger Command
CLKDIS1Counter Clock Disable Command
CLKEN0Counter Clock Enable Command

TC_CHANNEL0.TC_CMRChannel Mode Register (channel = 0)

Address
0x40014004
Reset
0x00000000
Access
read/write
Size
32-bit
26 fields
FieldBitsWhat it does
BEEVT29:28External Event Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
BCPC27:26RC Compare Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
BCPB25:24RB Compare Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
ASWTRG23:22Software Trigger Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
SBSMPLR22:20Loading Edge Subsampling Ratio
  • 0 Load a Capture Register each selected edge
  • 1 Load a Capture Register every 2 selected edges
  • 2 Load a Capture Register every 4 selected edges
  • 3 Load a Capture Register every 8 selected edges
  • 4 Load a Capture Register every 16 selected edges
AEEVT21:20External Event Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
ACPC19:18RC Compare Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
LDRB19:18RB Loading Edge Selection
  • 0 None
  • 1 Rising edge of TIOAx
  • 2 Falling edge of TIOAx
  • 3 Each edge of TIOAx
ACPA17:16RA Compare Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
LDRA17:16RA Loading Edge Selection
  • 0 None
  • 1 Rising edge of TIOAx
  • 2 Falling edge of TIOAx
  • 3 Each edge of TIOAx
WAVE15Waveform Mode
WAVSEL14:13Waveform Selection
  • 0 UP mode without automatic trigger on RC Compare
  • 1 UPDOWN mode without automatic trigger on RC Compare
  • 2 UP mode with automatic trigger on RC Compare
  • 3 UPDOWN mode with automatic trigger on RC Compare
CPCTRG14RC Compare Trigger Enable
ENETRG12External Event Trigger Enable
EEVT11:10External Event Selection
  • 0 TIOB
  • 1 XC0
  • 2 XC1
  • 3 XC2
ABETRG10TIOAx or TIOBx External Trigger Selection
EEVTEDG9:8External Event Edge Selection
  • 0 None
  • 1 Rising edge
  • 2 Falling edge
  • 3 Each edges
ETRGEDG9:8External Trigger Edge Selection
  • 0 The clock is not gated by an external signal.
  • 1 Rising edge
  • 2 Falling edge
  • 3 Each edge
CPCDIS7Counter Clock Disable with RC Loading
LDBDIS7Counter Clock Disable with RB Loading
CPCSTOP6Counter Clock Stopped with RC Compare
LDBSTOP6Counter Clock Stopped with RB Loading
BURST5:4Burst Signal Selection
  • 0 The clock is not gated by an external signal.
  • 1 XC0 is ANDed with the selected clock.
  • 2 XC1 is ANDed with the selected clock.
  • 3 XC2 is ANDed with the selected clock.
CLKI3Clock Invert
TCCLKS2:0Clock Selection
  • 0 Clock selected: internal PCK6 clock signal (from PMC)
  • 1 Clock selected: internal MCK/8 clock signal (from PMC)
  • 2 Clock selected: internal MCK/32 clock signal (from PMC)
  • 3 Clock selected: internal MCK/128 clock signal (from PMC)
  • 4 Clock selected: internal SLCK clock signal (from PMC)
  • 5 Clock selected: XC0
  • 6 Clock selected: XC1
  • 7 Clock selected: XC2
BSWTRG31:30Software Trigger Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE

TC_CHANNEL0.TC_SMMRStepper Motor Mode Register (channel = 0)

Address
0x40014008
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
DOWN1Down Count
GCEN0Gray Count Enable

TC_CHANNEL0.TC_RABRegister AB (channel = 0)

Address
0x4001400C
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
RAB31:0Register A or Register B

TC_CHANNEL0.TC_CVCounter Value (channel = 0)

Address
0x40014010
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
CV31:0Counter Value

TC_CHANNEL0.TC_RARegister A (channel = 0)

Address
0x40014014
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RA31:0Register A

TC_CHANNEL0.TC_RBRegister B (channel = 0)

Address
0x40014018
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RB31:0Register B

TC_CHANNEL0.TC_RCRegister C (channel = 0)

Address
0x4001401C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RC31:0Register C

TC_CHANNEL0.TC_SRStatus Register (channel = 0)

Address
0x40014020
Reset
0x00000000
Access
read only
Size
32-bit
11 fields
FieldBitsWhat it does
MTIOB18TIOBx Mirror
MTIOA17TIOAx Mirror
CLKSTA16Clock Enabling Status
ETRGS7External Trigger Status (cleared on read)
LDRBS6RB Loading Status (cleared on read)
LDRAS5RA Loading Status (cleared on read)
CPCS4RC Compare Status (cleared on read)
CPBS3RB Compare Status (cleared on read)
CPAS2RA Compare Status (cleared on read)
LOVRS1Load Overrun Status (cleared on read)
COVFS0Counter Overflow Status (cleared on read)

TC_CHANNEL0.TC_IERInterrupt Enable Register (channel = 0)

Address
0x40014024
Reset
0x00000000
Access
write only
Size
32-bit
8 fields
FieldBitsWhat it does
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL0.TC_IDRInterrupt Disable Register (channel = 0)

Address
0x40014028
Reset
0x00000000
Access
write only
Size
32-bit
8 fields
FieldBitsWhat it does
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL0.TC_IMRInterrupt Mask Register (channel = 0)

Address
0x4001402C
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
FieldBitsWhat it does
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL0.TC_EMRExtended Mode Register (channel = 0)

Address
0x40014030
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
NODIVCLK8No Divided Clock
TRIGSRCB5:4Trigger Source for Input B
  • 0 The trigger/capture input B is driven by external pin TIOBx
  • 1 For TC0 to TC10: The trigger/capture input B is driven internally by the comparator output (see Figure 7-16) of the PWMx.For TC11: The trigger/capture input B is driven internally by the GTSUCOMP signal of the Ethernet MAC (GMAC).
TRIGSRCA1:0Trigger Source for Input A
  • 0 The trigger/capture input A is driven by external pin TIOAx
  • 1 The trigger/capture input A is driven internally by PWMx

TC_CHANNEL1.TC_CCRChannel Control Register (channel = 0)

Address
0x40014040
Reset
0x00000000
Access
write only
Size
32-bit
3 fields
FieldBitsWhat it does
SWTRG2Software Trigger Command
CLKDIS1Counter Clock Disable Command
CLKEN0Counter Clock Enable Command

TC_CHANNEL1.TC_CMRChannel Mode Register (channel = 0)

Address
0x40014044
Reset
0x00000000
Access
read/write
Size
32-bit
26 fields
FieldBitsWhat it does
BEEVT29:28External Event Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
BCPC27:26RC Compare Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
BCPB25:24RB Compare Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
ASWTRG23:22Software Trigger Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
SBSMPLR22:20Loading Edge Subsampling Ratio
  • 0 Load a Capture Register each selected edge
  • 1 Load a Capture Register every 2 selected edges
  • 2 Load a Capture Register every 4 selected edges
  • 3 Load a Capture Register every 8 selected edges
  • 4 Load a Capture Register every 16 selected edges
AEEVT21:20External Event Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
ACPC19:18RC Compare Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
LDRB19:18RB Loading Edge Selection
  • 0 None
  • 1 Rising edge of TIOAx
  • 2 Falling edge of TIOAx
  • 3 Each edge of TIOAx
ACPA17:16RA Compare Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
LDRA17:16RA Loading Edge Selection
  • 0 None
  • 1 Rising edge of TIOAx
  • 2 Falling edge of TIOAx
  • 3 Each edge of TIOAx
WAVE15Waveform Mode
WAVSEL14:13Waveform Selection
  • 0 UP mode without automatic trigger on RC Compare
  • 1 UPDOWN mode without automatic trigger on RC Compare
  • 2 UP mode with automatic trigger on RC Compare
  • 3 UPDOWN mode with automatic trigger on RC Compare
CPCTRG14RC Compare Trigger Enable
ENETRG12External Event Trigger Enable
EEVT11:10External Event Selection
  • 0 TIOB
  • 1 XC0
  • 2 XC1
  • 3 XC2
ABETRG10TIOAx or TIOBx External Trigger Selection
EEVTEDG9:8External Event Edge Selection
  • 0 None
  • 1 Rising edge
  • 2 Falling edge
  • 3 Each edges
ETRGEDG9:8External Trigger Edge Selection
  • 0 The clock is not gated by an external signal.
  • 1 Rising edge
  • 2 Falling edge
  • 3 Each edge
CPCDIS7Counter Clock Disable with RC Loading
LDBDIS7Counter Clock Disable with RB Loading
CPCSTOP6Counter Clock Stopped with RC Compare
LDBSTOP6Counter Clock Stopped with RB Loading
BURST5:4Burst Signal Selection
  • 0 The clock is not gated by an external signal.
  • 1 XC0 is ANDed with the selected clock.
  • 2 XC1 is ANDed with the selected clock.
  • 3 XC2 is ANDed with the selected clock.
CLKI3Clock Invert
TCCLKS2:0Clock Selection
  • 0 Clock selected: internal PCK6 clock signal (from PMC)
  • 1 Clock selected: internal MCK/8 clock signal (from PMC)
  • 2 Clock selected: internal MCK/32 clock signal (from PMC)
  • 3 Clock selected: internal MCK/128 clock signal (from PMC)
  • 4 Clock selected: internal SLCK clock signal (from PMC)
  • 5 Clock selected: XC0
  • 6 Clock selected: XC1
  • 7 Clock selected: XC2
BSWTRG31:30Software Trigger Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE

TC_CHANNEL1.TC_SMMRStepper Motor Mode Register (channel = 0)

Address
0x40014048
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
DOWN1Down Count
GCEN0Gray Count Enable

TC_CHANNEL1.TC_RABRegister AB (channel = 0)

Address
0x4001404C
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
RAB31:0Register A or Register B

TC_CHANNEL1.TC_CVCounter Value (channel = 0)

Address
0x40014050
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
CV31:0Counter Value

TC_CHANNEL1.TC_RARegister A (channel = 0)

Address
0x40014054
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RA31:0Register A

TC_CHANNEL1.TC_RBRegister B (channel = 0)

Address
0x40014058
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RB31:0Register B

TC_CHANNEL1.TC_RCRegister C (channel = 0)

Address
0x4001405C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RC31:0Register C

TC_CHANNEL1.TC_SRStatus Register (channel = 0)

Address
0x40014060
Reset
0x00000000
Access
read only
Size
32-bit
11 fields
FieldBitsWhat it does
MTIOB18TIOBx Mirror
MTIOA17TIOAx Mirror
CLKSTA16Clock Enabling Status
ETRGS7External Trigger Status (cleared on read)
LDRBS6RB Loading Status (cleared on read)
LDRAS5RA Loading Status (cleared on read)
CPCS4RC Compare Status (cleared on read)
CPBS3RB Compare Status (cleared on read)
CPAS2RA Compare Status (cleared on read)
LOVRS1Load Overrun Status (cleared on read)
COVFS0Counter Overflow Status (cleared on read)

TC_CHANNEL1.TC_IERInterrupt Enable Register (channel = 0)

Address
0x40014064
Reset
0x00000000
Access
write only
Size
32-bit
8 fields
FieldBitsWhat it does
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL1.TC_IDRInterrupt Disable Register (channel = 0)

Address
0x40014068
Reset
0x00000000
Access
write only
Size
32-bit
8 fields
FieldBitsWhat it does
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL1.TC_IMRInterrupt Mask Register (channel = 0)

Address
0x4001406C
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
FieldBitsWhat it does
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL1.TC_EMRExtended Mode Register (channel = 0)

Address
0x40014070
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
NODIVCLK8No Divided Clock
TRIGSRCB5:4Trigger Source for Input B
  • 0 The trigger/capture input B is driven by external pin TIOBx
  • 1 For TC0 to TC10: The trigger/capture input B is driven internally by the comparator output (see Figure 7-16) of the PWMx.For TC11: The trigger/capture input B is driven internally by the GTSUCOMP signal of the Ethernet MAC (GMAC).
TRIGSRCA1:0Trigger Source for Input A
  • 0 The trigger/capture input A is driven by external pin TIOAx
  • 1 The trigger/capture input A is driven internally by PWMx

TC_CHANNEL2.TC_CCRChannel Control Register (channel = 0)

Address
0x40014080
Reset
0x00000000
Access
write only
Size
32-bit
3 fields
FieldBitsWhat it does
SWTRG2Software Trigger Command
CLKDIS1Counter Clock Disable Command
CLKEN0Counter Clock Enable Command

TC_CHANNEL2.TC_CMRChannel Mode Register (channel = 0)

Address
0x40014084
Reset
0x00000000
Access
read/write
Size
32-bit
26 fields
FieldBitsWhat it does
BEEVT29:28External Event Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
BCPC27:26RC Compare Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
BCPB25:24RB Compare Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
ASWTRG23:22Software Trigger Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
SBSMPLR22:20Loading Edge Subsampling Ratio
  • 0 Load a Capture Register each selected edge
  • 1 Load a Capture Register every 2 selected edges
  • 2 Load a Capture Register every 4 selected edges
  • 3 Load a Capture Register every 8 selected edges
  • 4 Load a Capture Register every 16 selected edges
AEEVT21:20External Event Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
ACPC19:18RC Compare Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
LDRB19:18RB Loading Edge Selection
  • 0 None
  • 1 Rising edge of TIOAx
  • 2 Falling edge of TIOAx
  • 3 Each edge of TIOAx
ACPA17:16RA Compare Effect on TIOAx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE
LDRA17:16RA Loading Edge Selection
  • 0 None
  • 1 Rising edge of TIOAx
  • 2 Falling edge of TIOAx
  • 3 Each edge of TIOAx
WAVE15Waveform Mode
WAVSEL14:13Waveform Selection
  • 0 UP mode without automatic trigger on RC Compare
  • 1 UPDOWN mode without automatic trigger on RC Compare
  • 2 UP mode with automatic trigger on RC Compare
  • 3 UPDOWN mode with automatic trigger on RC Compare
CPCTRG14RC Compare Trigger Enable
ENETRG12External Event Trigger Enable
EEVT11:10External Event Selection
  • 0 TIOB
  • 1 XC0
  • 2 XC1
  • 3 XC2
ABETRG10TIOAx or TIOBx External Trigger Selection
EEVTEDG9:8External Event Edge Selection
  • 0 None
  • 1 Rising edge
  • 2 Falling edge
  • 3 Each edges
ETRGEDG9:8External Trigger Edge Selection
  • 0 The clock is not gated by an external signal.
  • 1 Rising edge
  • 2 Falling edge
  • 3 Each edge
CPCDIS7Counter Clock Disable with RC Loading
LDBDIS7Counter Clock Disable with RB Loading
CPCSTOP6Counter Clock Stopped with RC Compare
LDBSTOP6Counter Clock Stopped with RB Loading
BURST5:4Burst Signal Selection
  • 0 The clock is not gated by an external signal.
  • 1 XC0 is ANDed with the selected clock.
  • 2 XC1 is ANDed with the selected clock.
  • 3 XC2 is ANDed with the selected clock.
CLKI3Clock Invert
TCCLKS2:0Clock Selection
  • 0 Clock selected: internal PCK6 clock signal (from PMC)
  • 1 Clock selected: internal MCK/8 clock signal (from PMC)
  • 2 Clock selected: internal MCK/32 clock signal (from PMC)
  • 3 Clock selected: internal MCK/128 clock signal (from PMC)
  • 4 Clock selected: internal SLCK clock signal (from PMC)
  • 5 Clock selected: XC0
  • 6 Clock selected: XC1
  • 7 Clock selected: XC2
BSWTRG31:30Software Trigger Effect on TIOBx
  • 0 NONE
  • 1 SET
  • 2 CLEAR
  • 3 TOGGLE

TC_CHANNEL2.TC_SMMRStepper Motor Mode Register (channel = 0)

Address
0x40014088
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
DOWN1Down Count
GCEN0Gray Count Enable

TC_CHANNEL2.TC_RABRegister AB (channel = 0)

Address
0x4001408C
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
RAB31:0Register A or Register B

TC_CHANNEL2.TC_CVCounter Value (channel = 0)

Address
0x40014090
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
CV31:0Counter Value

TC_CHANNEL2.TC_RARegister A (channel = 0)

Address
0x40014094
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RA31:0Register A

TC_CHANNEL2.TC_RBRegister B (channel = 0)

Address
0x40014098
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RB31:0Register B

TC_CHANNEL2.TC_RCRegister C (channel = 0)

Address
0x4001409C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RC31:0Register C

TC_CHANNEL2.TC_SRStatus Register (channel = 0)

Address
0x400140A0
Reset
0x00000000
Access
read only
Size
32-bit
11 fields
FieldBitsWhat it does
MTIOB18TIOBx Mirror
MTIOA17TIOAx Mirror
CLKSTA16Clock Enabling Status
ETRGS7External Trigger Status (cleared on read)
LDRBS6RB Loading Status (cleared on read)
LDRAS5RA Loading Status (cleared on read)
CPCS4RC Compare Status (cleared on read)
CPBS3RB Compare Status (cleared on read)
CPAS2RA Compare Status (cleared on read)
LOVRS1Load Overrun Status (cleared on read)
COVFS0Counter Overflow Status (cleared on read)

TC_CHANNEL2.TC_IERInterrupt Enable Register (channel = 0)

Address
0x400140A4
Reset
0x00000000
Access
write only
Size
32-bit
8 fields
FieldBitsWhat it does
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL2.TC_IDRInterrupt Disable Register (channel = 0)

Address
0x400140A8
Reset
0x00000000
Access
write only
Size
32-bit
8 fields
FieldBitsWhat it does
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL2.TC_IMRInterrupt Mask Register (channel = 0)

Address
0x400140AC
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
FieldBitsWhat it does
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL2.TC_EMRExtended Mode Register (channel = 0)

Address
0x400140B0
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
NODIVCLK8No Divided Clock
TRIGSRCB5:4Trigger Source for Input B
  • 0 The trigger/capture input B is driven by external pin TIOBx
  • 1 For TC0 to TC10: The trigger/capture input B is driven internally by the comparator output (see Figure 7-16) of the PWMx.For TC11: The trigger/capture input B is driven internally by the GTSUCOMP signal of the Ethernet MAC (GMAC).
TRIGSRCA1:0Trigger Source for Input A
  • 0 The trigger/capture input A is driven by external pin TIOAx
  • 1 The trigger/capture input A is driven internally by PWMx

TC_BCRBlock Control Register

Address
0x400140C0
Reset
0x00000000
Access
write only
Size
32-bit
1 field
FieldBitsWhat it does
SYNC0Synchro Command

TC_BMRBlock Mode Register

Address
0x400140C4
Reset
0x00000000
Access
read/write
Size
32-bit
16 fields
FieldBitsWhat it does
MAXCMP29:26Maximum Consecutive Missing Pulses
MAXFILT25:20Maximum Filter
AUTOC18AutoCorrection of missing pulses
IDXPHB17Index Pin is PHB Pin
SWAP16Swap PHA and PHB
INVIDX15Inverted Index
INVB14Inverted PHB
INVA13Inverted PHA
EDGPHA12Edge on PHA Count Mode
QDTRANS11Quadrature Decoding Transparent
SPEEDEN10Speed Enabled
POSEN9Position Enabled
QDEN8Quadrature Decoder Enabled
TC2XC2S5:4External Clock Signal 2 Selection
  • 0 Signal connected to XC2: TCLK2
  • 2 Signal connected to XC2: TIOA0
  • 3 Signal connected to XC2: TIOA1
TC1XC1S3:2External Clock Signal 1 Selection
  • 0 Signal connected to XC1: TCLK1
  • 2 Signal connected to XC1: TIOA0
  • 3 Signal connected to XC1: TIOA2
TC0XC0S1:0External Clock Signal 0 Selection
  • 0 Signal connected to XC0: TCLK0
  • 2 Signal connected to XC0: TIOA1
  • 3 Signal connected to XC0: TIOA2

TC_QIERQDEC Interrupt Enable Register

Address
0x400140C8
Reset
0x00000000
Access
write only
Size
32-bit
4 fields
FieldBitsWhat it does
MPE3Consecutive Missing Pulse Error
QERR2Quadrature Error
DIRCHG1Direction Change
IDX0Index

TC_QIDRQDEC Interrupt Disable Register

Address
0x400140CC
Reset
0x00000000
Access
write only
Size
32-bit
4 fields
FieldBitsWhat it does
MPE3Consecutive Missing Pulse Error
QERR2Quadrature Error
DIRCHG1Direction Change
IDX0Index

TC_QIMRQDEC Interrupt Mask Register

Address
0x400140D0
Reset
0x00000000
Access
read only
Size
32-bit
4 fields
FieldBitsWhat it does
MPE3Consecutive Missing Pulse Error
QERR2Quadrature Error
DIRCHG1Direction Change
IDX0Index

TC_QISRQDEC Interrupt Status Register

Address
0x400140D4
Reset
0x00000000
Access
read only
Size
32-bit
5 fields
FieldBitsWhat it does
DIR8Direction
MPE3Consecutive Missing Pulse Error
QERR2Quadrature Error
DIRCHG1Direction Change
IDX0Index

TC_FMRFault Mode Register

Address
0x400140D8
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
ENCF11Enable Compare Fault Channel 1
ENCF00Enable Compare Fault Channel 0

TC_WPMRWrite Protection Mode Register

Address
0x400140E4
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
WPEN0Write Protection Enable
WPKEY31:8Write Protection Key
  • 5523789 Writing any other value in this field aborts the write operation of the WPEN bit.Always reads as 0.