PIC32CX1025MTSH128 TC2 registers

The 58 registers of TC2 (Timer Counter), from 0x40040000, with their reset value and every field. The PIC32CX1025MTSH128 has 2920 registers in 63 peripherals, one page each.

TC2 Timer Counter

TC_CHANNEL0.TC_CCRChannel Control Register

Address
0x40040000
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

Address
0x40040004
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 edge
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 Compare
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 GCLK [TC_ID] 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 MD_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

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

TC_CHANNEL0.TC_CVCounter Value

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

TC_CHANNEL0.TC_RARegister A

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

TC_CHANNEL0.TC_RBRegister B

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

TC_CHANNEL0.TC_RCRegister C

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

TC_CHANNEL0.TC_SRInterrupt Status Register

Address
0x40040020
Reset
0x00000000
Access
read only
Size
32-bit
14 fields
FieldBitsWhat it does
MTIOB18TIOBx Mirror
MTIOA17TIOAx Mirror
CLKSTA16Clock Enabling Status
SECE10Security and/or Safety Event (cleared on read)
RXBUFF9Reception Buffer Full (cleared by writing TC_RCR or TC_RNCR)
ENDRX8End of Receiver Transfer (cleared by writing TC_RCR or TC_RNCR)
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

Address
0x40040024
Reset
0x00000000
Access
write only
Size
32-bit
11 fields
FieldBitsWhat it does
SECE10Security and/or Safety Event Interrupt Enable
RXBUFF9Reception Buffer Full
ENDRX8End of Receiver Transfer
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL0.TC_IDRInterrupt Disable Register

Address
0x40040028
Reset
0x00000000
Access
write only
Size
32-bit
11 fields
FieldBitsWhat it does
SECE10Security and/or Safety Event Interrupt Disable
RXBUFF9Reception Buffer Full
ENDRX8End of Receiver Transfer
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL0.TC_IMRInterrupt Mask Register

Address
0x4004002C
Reset
0x00000000
Access
read only
Size
32-bit
11 fields
FieldBitsWhat it does
SECE10Security and/or Safety Event Interrupt Mask
RXBUFF9Reception Buffer Full
ENDRX8End of Receiver Transfer
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL0.TC_EMRExtended Mode Register

Address
0x40040030
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 The trigger/capture input B is driven internally by the comparator output (see Figure 7-16) of the PWMx.
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_CHANNEL0.TC_CSRChannel Status Register

Address
0x40040034
Reset
0x00000000
Access
read only
Size
32-bit
3 fields
FieldBitsWhat it does
MTIOB18TIOBx Mirror
MTIOA17TIOAx Mirror
CLKSTA16Clock Enabling Status

TC_CHANNEL0.TC_SSRSafety Status Register

Address
0x40040038
Reset
0x00000000
Access
read only
Size
32-bit
7 fields
FieldBitsWhat it does
SWETYP27:24Software Error Type (cleared on read)
  • 0 TC Channel x is enabled and a write-only register has been read (Warning).
  • 1 TC Channel x is enabled and a write access has been performed on a read-only register (Warning).
  • 2 Access to an undefined address of the TC (Warning).
  • 3 TC_RAx or TC_RBx are written while channel is enabled and configured in capture mode (Error).
WPVSRC23:8Write Protection Violation Source (cleared on read)
SWE3Software Control Error (cleared on read)
SEQE2Internal Sequencer Error (cleared on read)
CGD1Clock Glitch Detected (cleared on read)
WPVS0Write Protection Violation Status (cleared on read)
ECLASS31Software Error Class
  • 0 An abnormal access that does not have any impact.
  • 1 An abnormal access that may have an impact.

TC_CHANNEL1.TC_CCRChannel Control Register

Address
0x40040040
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

Address
0x40040044
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 edge
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 Compare
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 GCLK [TC_ID] 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 MD_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

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

TC_CHANNEL1.TC_CVCounter Value

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

TC_CHANNEL1.TC_RARegister A

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

TC_CHANNEL1.TC_RBRegister B

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

TC_CHANNEL1.TC_RCRegister C

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

TC_CHANNEL1.TC_SRInterrupt Status Register

Address
0x40040060
Reset
0x00000000
Access
read only
Size
32-bit
14 fields
FieldBitsWhat it does
MTIOB18TIOBx Mirror
MTIOA17TIOAx Mirror
CLKSTA16Clock Enabling Status
SECE10Security and/or Safety Event (cleared on read)
RXBUFF9Reception Buffer Full (cleared by writing TC_RCR or TC_RNCR)
ENDRX8End of Receiver Transfer (cleared by writing TC_RCR or TC_RNCR)
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

Address
0x40040064
Reset
0x00000000
Access
write only
Size
32-bit
11 fields
FieldBitsWhat it does
SECE10Security and/or Safety Event Interrupt Enable
RXBUFF9Reception Buffer Full
ENDRX8End of Receiver Transfer
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL1.TC_IDRInterrupt Disable Register

Address
0x40040068
Reset
0x00000000
Access
write only
Size
32-bit
11 fields
FieldBitsWhat it does
SECE10Security and/or Safety Event Interrupt Disable
RXBUFF9Reception Buffer Full
ENDRX8End of Receiver Transfer
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL1.TC_IMRInterrupt Mask Register

Address
0x4004006C
Reset
0x00000000
Access
read only
Size
32-bit
11 fields
FieldBitsWhat it does
SECE10Security and/or Safety Event Interrupt Mask
RXBUFF9Reception Buffer Full
ENDRX8End of Receiver Transfer
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL1.TC_EMRExtended Mode Register

Address
0x40040070
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 The trigger/capture input B is driven internally by the comparator output (see Figure 7-16) of the PWMx.
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_CSRChannel Status Register

Address
0x40040074
Reset
0x00000000
Access
read only
Size
32-bit
3 fields
FieldBitsWhat it does
MTIOB18TIOBx Mirror
MTIOA17TIOAx Mirror
CLKSTA16Clock Enabling Status

TC_CHANNEL1.TC_SSRSafety Status Register

Address
0x40040078
Reset
0x00000000
Access
read only
Size
32-bit
7 fields
FieldBitsWhat it does
SWETYP27:24Software Error Type (cleared on read)
  • 0 TC Channel x is enabled and a write-only register has been read (Warning).
  • 1 TC Channel x is enabled and a write access has been performed on a read-only register (Warning).
  • 2 Access to an undefined address of the TC (Warning).
  • 3 TC_RAx or TC_RBx are written while channel is enabled and configured in capture mode (Error).
WPVSRC23:8Write Protection Violation Source (cleared on read)
SWE3Software Control Error (cleared on read)
SEQE2Internal Sequencer Error (cleared on read)
CGD1Clock Glitch Detected (cleared on read)
WPVS0Write Protection Violation Status (cleared on read)
ECLASS31Software Error Class
  • 0 An abnormal access that does not have any impact.
  • 1 An abnormal access that may have an impact.

TC_CHANNEL2.TC_CCRChannel Control Register

Address
0x40040080
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

Address
0x40040084
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 edge
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 Compare
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 GCLK [TC_ID] 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 MD_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

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

TC_CHANNEL2.TC_CVCounter Value

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

TC_CHANNEL2.TC_RARegister A

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

TC_CHANNEL2.TC_RBRegister B

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

TC_CHANNEL2.TC_RCRegister C

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

TC_CHANNEL2.TC_SRInterrupt Status Register

Address
0x400400A0
Reset
0x00000000
Access
read only
Size
32-bit
14 fields
FieldBitsWhat it does
MTIOB18TIOBx Mirror
MTIOA17TIOAx Mirror
CLKSTA16Clock Enabling Status
SECE10Security and/or Safety Event (cleared on read)
RXBUFF9Reception Buffer Full (cleared by writing TC_RCR or TC_RNCR)
ENDRX8End of Receiver Transfer (cleared by writing TC_RCR or TC_RNCR)
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

Address
0x400400A4
Reset
0x00000000
Access
write only
Size
32-bit
11 fields
FieldBitsWhat it does
SECE10Security and/or Safety Event Interrupt Enable
RXBUFF9Reception Buffer Full
ENDRX8End of Receiver Transfer
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL2.TC_IDRInterrupt Disable Register

Address
0x400400A8
Reset
0x00000000
Access
write only
Size
32-bit
11 fields
FieldBitsWhat it does
SECE10Security and/or Safety Event Interrupt Disable
RXBUFF9Reception Buffer Full
ENDRX8End of Receiver Transfer
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL2.TC_IMRInterrupt Mask Register

Address
0x400400AC
Reset
0x00000000
Access
read only
Size
32-bit
11 fields
FieldBitsWhat it does
SECE10Security and/or Safety Event Interrupt Mask
RXBUFF9Reception Buffer Full
ENDRX8End of Receiver Transfer
ETRGS7External Trigger
LDRBS6RB Loading
LDRAS5RA Loading
CPCS4RC Compare
CPBS3RB Compare
CPAS2RA Compare
LOVRS1Load Overrun
COVFS0Counter Overflow

TC_CHANNEL2.TC_EMRExtended Mode Register

Address
0x400400B0
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 The trigger/capture input B is driven internally by the comparator output (see Figure 7-16) of the PWMx.
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_CSRChannel Status Register

Address
0x400400B4
Reset
0x00000000
Access
read only
Size
32-bit
3 fields
FieldBitsWhat it does
MTIOB18TIOBx Mirror
MTIOA17TIOAx Mirror
CLKSTA16Clock Enabling Status

TC_CHANNEL2.TC_SSRSafety Status Register

Address
0x400400B8
Reset
0x00000000
Access
read only
Size
32-bit
7 fields
FieldBitsWhat it does
SWETYP27:24Software Error Type (cleared on read)
  • 0 TC Channel x is enabled and a write-only register has been read (Warning).
  • 1 TC Channel x is enabled and a write access has been performed on a read-only register (Warning).
  • 2 Access to an undefined address of the TC (Warning).
  • 3 TC_RAx or TC_RBx are written while channel is enabled and configured in capture mode (Error).
WPVSRC23:8Write Protection Violation Source (cleared on read)
SWE3Software Control Error (cleared on read)
SEQE2Internal Sequencer Error (cleared on read)
CGD1Clock Glitch Detected (cleared on read)
WPVS0Write Protection Violation Status (cleared on read)
ECLASS31Software Error Class
  • 0 An abnormal access that does not have any impact.
  • 1 An abnormal access that may have an impact.

TC_BCRBlock Control Register

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

TC_BMRBlock Mode Register

Address
0x400400C4
Reset
0x00000000
Access
read/write
Size
32-bit
14 fields
FieldBitsWhat it does
MAXFILT25:20Maximum Filter
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
0x400400C8
Reset
0x00000000
Access
write only
Size
32-bit
7 fields
FieldBitsWhat it does
FMP7Filtered Missing Pulse
FIDX6Filtered Index Line
FPHB5Filtered Phase B Line
FPHA4Filtered Phase A Line
QERR2Quadrature Error
DIRCHG1Direction Change
IDX0Index

TC_QIDRQDEC Interrupt Disable Register

Address
0x400400CC
Reset
0x00000000
Access
write only
Size
32-bit
7 fields
FieldBitsWhat it does
FMP7Filtered Missing Pulse
FIDX6Filtered Index Line
FPHB5Filtered Phase B Line
FPHA4Filtered Phase A Line
QERR2Quadrature Error
DIRCHG1Direction Change
IDX0Index

TC_QIMRQDEC Interrupt Mask Register

Address
0x400400D0
Reset
0x00000000
Access
read only
Size
32-bit
7 fields
FieldBitsWhat it does
FMP7Filtered Missing Pulse
FIDX6Filtered Index Line
FPHB5Filtered Phase B Line
FPHA4Filtered Phase A Line
QERR2Quadrature Error
DIRCHG1Direction Change
IDX0Index

TC_QISRQDEC Interrupt Status Register

Address
0x400400D4
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
FieldBitsWhat it does
DIR8Direction
FMP7Filtered Missing Pulse
FIDX6Filtered Index Line
FPHB5Filtered Phase B Line
FPHA4Filtered Phase A Line
QERR2Quadrature Error
DIRCHG1Direction Change
IDX0Index

TC_FMRFault Mode Register

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

TC_QSRQDEC Status Register

Address
0x400400DC
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
DIR8Direction

TC_WPMRWrite Protection Mode Register

Address
0x400400E4
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
FieldBitsWhat it does
FIRSTE4First Error Report Enable
WPCREN2Write Protection Control Enable
WPITEN1Write Protection Interrupt Enable
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.

TC_RPRReceive Pointer Register

Address
0x40040100
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RXPTR31:0Receive Pointer Register

TC_RCRReceive Counter Register

Address
0x40040104
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RXCTR15:0Receive Counter Register

TC_RNPRReceive Next Pointer Register

Address
0x40040110
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RXNPTR31:0Receive Next Pointer

TC_RNCRReceive Next Counter Register

Address
0x40040114
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RXNCTR15:0Receive Next Counter

TC_PTCRTransfer Control Register

Address
0x40040120
Reset
0x00000000
Access
write only
Size
32-bit
9 fields
FieldBitsWhat it does
ERRCLR24Transfer Bus Error Clear
TXCBDIS19Transmitter Circular Buffer Disable
TXCBEN18Transmitter Circular Buffer Enable
RXCBDIS17Receiver Circular Buffer Disable
RXCBEN16Receiver Circular Buffer Enable
TXTDIS9Transmitter Transfer Disable
TXTEN8Transmitter Transfer Enable
RXTDIS1Receiver Transfer Disable
RXTEN0Receiver Transfer Enable

TC_PTSRTransfer Status Register

Address
0x40040124
Reset
0x00000000
Access
read only
Size
32-bit
5 fields
FieldBitsWhat it does
ERR24Transfer Bus Error
TXCBEN18Transmitter Circular Buffer Enable
RXCBEN16Receiver Circular Buffer Enable
TXTEN8Transmitter Transfer Enable
RXTEN0Receiver Transfer Enable

TC_PWPMRWrite Protection Mode Register

Address
0x40040128
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
WPCREN2Write Protection Control Register Enable
WPCTREN1Write Protection Counter Registers Enable
WPPTREN0Write Protection Pointer Registers Enable
WPKEY31:8Write Protection Key
  • 5260355 Writing any other value in this field aborts the write operation. Always reads as 0.