PIC32CM5112SG00048 TCC3 registers

The 21 registers of TCC3 (Timer Counter for Control Applications), from 0x44816000, with their reset value and every field. The PIC32CM5112SG00048 has 3618 registers in 68 peripherals, one page each.

TCC3 Timer Counter for Control Applications

CTRLAControl A

Address
0x44816000
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
CPTEN125Capture Channel 1 Enable
CPTEN024Capture Channel 0 Enable
DMAOS23DMA One-shot Trigger Mode
FCYCLE16Full Cycle
MSYNC15Master Synchronization (only for TCC Slave Instance)
ALOCK14Auto Lock
PRESCSYNC13:12Prescaler and Counter Synchronization Selection
  • 0 Reload or reset counter on next GCLK
  • 1 Reload or reset counter on next prescaler clock
  • 2 Reload or reset counter on next GCLK and reset prescaler counter
RUNSTDBY11Run in Standby
PRESCALER10:8Prescaler
  • 0 No division
  • 1 Divide by 2
  • 2 Divide by 4
  • 3 Divide by 8
  • 4 Divide by 16
  • 5 Divide by 64
  • 6 Divide by 256
  • 7 Divide by 1024
RESOLUTION6:5Enhanced Resolution
  • 0 Dithering is disabled
  • 1 Dithering is done every 16 PWM frames
  • 2 Dithering is done every 32 PWM frames
  • 3 Dithering is done every 64 PWM frames
ENABLE1Enable
SWRST0Software Reset

CTRLBCLRControl B Clear

Address
0x44816004
Reset
0x00
Access
read/write
  1. 7CMD2
  2. 6CMD1
  3. 5CMD0
  4. 4IDXCMD1
  5. 3IDXCMD0
  6. 2ONESHOT
  7. 1LUPD
  8. 0DIR
5 fields
FieldBitsWhat it does
CMD7:5TCC Command
  • 0 No action
  • 1 Clear start, restart or retrigger
  • 2 Force stop
  • 3 Force update or double buffered registers
  • 4 Force COUNT read synchronization
  • 5 One-shot DMA trigger
IDXCMD4:3Ramp Index Command
  • 0 Command disabled: Index toggles between cycles A and B
  • 1 Set index: cycle B will be forced in the next cycle
  • 2 Clear index: cycle A will be forced in the next cycle
  • 3 Hold index: the next cycle will be the same as the current cycle
ONESHOT2One-Shot
LUPD1Lock Update
DIR0Counter Direction

CTRLBSETControl B Set

Address
0x44816005
Reset
0x00
Access
read/write
  1. 7CMD2
  2. 6CMD1
  3. 5CMD0
  4. 4IDXCMD1
  5. 3IDXCMD0
  6. 2ONESHOT
  7. 1LUPD
  8. 0DIR
5 fields
FieldBitsWhat it does
CMD7:5TCC Command
  • 0 No action
  • 1 Clear start, restart or retrigger
  • 2 Force stop
  • 3 Force update or double buffered registers
  • 4 Force COUNT read synchronization
  • 5 One-shot DMA trigger
IDXCMD4:3Ramp Index Command
  • 0 Command disabled: Index toggles between cycles A and B
  • 1 Set index: cycle B will be forced in the next cycle
  • 2 Clear index: cycle A will be forced in the next cycle
  • 3 Hold index: the next cycle will be the same as the current cycle
ONESHOT2One-Shot
LUPD1Lock Update
DIR0Counter Direction

SYNCBUSYSynchronization Busy

Address
0x44816008
Reset
0x00000000
Access
read only
Size
32-bit
10 fields
FieldBitsWhat it does
CC19Compare Channel 1 Busy
CC08Compare Channel 0 Busy
PER7Period Busy
WAVE6Wave Busy
PATT5Pattern Busy
COUNT4Count Busy
STATUS3Status Busy
CTRLB2Ctrlb Busy
ENABLE1Enable Busy
SWRST0Swrst Busy

FCTRLARecoverable Fault A Configuration

Address
0x4481600C
Reset
0x00000000
Access
read/write
Size
32-bit
11 fields
FieldBitsWhat it does
FILTERVAL27:24Fault A Filter Value
BLANKVAL23:16Fault A Blanking Time
BLANKPRESC15Fault A Blanking Prescaler
CAPTURE14:12Fault A Capture Action
  • 0 No capture
  • 1 Capture on fault
  • 2 Minimum capture
  • 3 Maximum capture
  • 4 Minimum local detection
  • 5 Maximum local detection
  • 6 Minimum and maximum local detection
  • 7 Capture with ramp index as MSB value
CHSEL11:10Fault A Capture Channel
  • 0 Capture value stored in channel 0
  • 1 Capture value stored in channel 1
  • 2 Capture value stored in channel 2
  • 3 Capture value stored in channel 3
HALT9:8Fault A Halt Mode
  • 0 Halt action disabled
  • 1 Hardware halt action
  • 2 Software halt action
  • 3 Non-recoverable fault
RESTART7Fault A Restart
BLANK6:5Fault A Blanking Mode
  • 0 Blanking applied from start of the ramp
  • 1 Blanking applied from rising edge of the output waveform
  • 2 Blanking applied from falling edge of the output waveform
  • 3 Blanking applied from each toggle of the output waveform
QUAL4Fault A Qualification
KEEP3Fault A Keeper
SRC1:0Fault A Source
  • 0 Fault input disabled
  • 1 MCEx (x=0,1) event input
  • 2 Inverted MCEx (x=0,1) event input
  • 3 Alternate fault (A or B) state at the end of the previous period

FCTRLBRecoverable Fault B Configuration

Address
0x44816010
Reset
0x00000000
Access
read/write
Size
32-bit
11 fields
FieldBitsWhat it does
FILTERVAL27:24Fault B Filter Value
BLANKVAL23:16Fault B Blanking Time
BLANKPRESC15Fault B Blanking Prescaler
CAPTURE14:12Fault B Capture Action
  • 0 No capture
  • 1 Capture on fault
  • 2 Minimum capture
  • 3 Maximum capture
  • 4 Minimum local detection
  • 5 Maximum local detection
  • 6 Minimum and maximum local detection
  • 7 Capture with ramp index as MSB value
CHSEL11:10Fault B Capture Channel
  • 0 Capture value stored in channel 0
  • 1 Capture value stored in channel 1
  • 2 Capture value stored in channel 2
  • 3 Capture value stored in channel 3
HALT9:8Fault B Halt Mode
  • 0 Halt action disabled
  • 1 Hardware halt action
  • 2 Software halt action
  • 3 Non-recoverable fault
RESTART7Fault B Restart
BLANK6:5Fault B Blanking Mode
  • 0 Blanking applied from start of the ramp
  • 1 Blanking applied from rising edge of the output waveform
  • 2 Blanking applied from falling edge of the output waveform
  • 3 Blanking applied from each toggle of the output waveform
QUAL4Fault B Qualification
KEEP3Fault B Keeper
SRC1:0Fault B Source
  • 0 Fault input disabled
  • 1 MCEx (x=0,1) event input
  • 2 Inverted MCEx (x=0,1) event input
  • 3 Alternate fault (A or B) state at the end of the previous period

DRVCTRLDriver Control

Address
0x44816018
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
FILTERVAL027:24Non-Recoverable Fault Input 0 Filter Value
INVEN117Output Waveform 1 Inversion
INVEN016Output Waveform 0 Inversion
NRV19Non-Recoverable State 1 Output Value
NRV08Non-Recoverable State 0 Output Value
NRE11Non-Recoverable State 1 Output Enable
NRE00Non-Recoverable State 0 Output Enable
FILTERVAL131:28Non-Recoverable Fault Input 1 Filter Value

DBGCTRLDebug Control

Address
0x4481601E
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2FDDBD
  7. 1–
  8. 0DBGRUN
2 fields
FieldBitsWhat it does
FDDBD2Fault Detection on Debug Break Detection
DBGRUN0Debug Running Mode

EVCTRLEvent Control

Address
0x44816020
Reset
0x00000000
Access
read/write
Size
32-bit
14 fields
FieldBitsWhat it does
MCEO125Match or Capture Channel 1 Event Output Enable
MCEO024Match or Capture Channel 0 Event Output Enable
MCEI117Match or Capture Channel 1 Event Input Enable
MCEI016Match or Capture Channel 0 Event Input Enable
TCEI115Timer/counter Event 1 Input Enable
TCEI014Timer/counter Event 0 Input Enable
TCINV113Inverted Event 1 Input Enable
TCINV012Inverted Event 0 Input Enable
CNTEO10Timer/counter Output Event Enable
TRGEO9Retrigger Output Event Enable
OVFEO8Overflow/Underflow Output Event Enable
CNTSEL7:6Timer/counter Output Event Mode
  • 0 An interrupt/event is generated when a new counter cycle starts
  • 1 An interrupt/event is generated when a counter cycle ends
  • 2 An interrupt/event is generated when a counter cycle ends, except for the first and last cycles
  • 3 An interrupt/event is generated when a new counter cycle starts or a counter cycle ends
EVACT15:3Timer/counter Input Event1 Action
  • 0 Event action disabled
  • 1 Re-trigger counter on event
  • 2 Direction control
  • 3 Stop counter on event
  • 4 Decrement counter on event
  • 5 Period capture value in CC0 register, pulse width capture value in CC1 register
  • 6 Period capture value in CC1 register, pulse width capture value in CC0 register
  • 7 Non-recoverable fault
EVACT02:0Timer/counter Input Event0 Action
  • 0 Event action disabled
  • 1 Start, restart or re-trigger counter on event
  • 2 Count on event
  • 3 Start counter on event
  • 4 Increment counter on event
  • 5 Count on active state of asynchronous event
  • 6 Stamp capture
  • 7 Non-recoverable fault

INTENCLRInterrupt Enable Clear

Address
0x44816024
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
MC117Match or Capture Channel 1 Interrupt Enable
MC016Match or Capture Channel 0 Interrupt Enable
FAULT115Non-Recoverable Fault 1 Interrupt Enable
FAULT014Non-Recoverable Fault 0 Interrupt Enable
FAULTB13Recoverable Fault B Interrupt Enable
FAULTA12Recoverable Fault A Interrupt Enable
DFS11Non-Recoverable Debug Fault Interrupt Enable
UFS10Non-Recoverable Update Fault Interrupt Enable
ERR3Error Interrupt Enable
CNT2Counter Interrupt Enable
TRG1Retrigger Interrupt Enable
OVF0Overflow Interrupt Enable

INTENSETInterrupt Enable Set

Address
0x44816028
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
MC117Match or Capture Channel 1 Interrupt Enable
MC016Match or Capture Channel 0 Interrupt Enable
FAULT115Non-Recoverable Fault 1 Interrupt Enable
FAULT014Non-Recoverable Fault 0 Interrupt Enable
FAULTB13Recoverable Fault B Interrupt Enable
FAULTA12Recoverable Fault A Interrupt Enable
DFS11Non-Recoverable Debug Fault Interrupt Enable
UFS10Non-Recoverable Update Fault Interrupt Enable
ERR3Error Interrupt Enable
CNT2Counter Interrupt Enable
TRG1Retrigger Interrupt Enable
OVF0Overflow Interrupt Enable

INTFLAGInterrupt Flag Status and Clear

Address
0x4481602C
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
MC117Match or Capture 1
MC016Match or Capture 0
FAULT115Non-Recoverable Fault 1
FAULT014Non-Recoverable Fault 0
FAULTB13Recoverable Fault B
FAULTA12Recoverable Fault A
DFS11Non-Recoverable Debug Fault
UFS10Non-Recoverable Update Fault
ERR3Error
CNT2Counter
TRG1Retrigger
OVF0Overflow

STATUSStatus

Address
0x44816030
Reset
0x00000001
Access
read/write
Size
32-bit
19 fields
FieldBitsWhat it does
CMP125Compare Channel 1 Value
CMP024Compare Channel 0 Value
CCBUFV117Compare Channel 1 Buffer Valid
CCBUFV016Compare Channel 0 Buffer Valid
FAULT115Non-Recoverable Fault 1 State
FAULT014Non-Recoverable Fault 0 State
FAULTB13Recoverable Fault B State
FAULTA12Recoverable Fault A State
FAULT1IN11Non-Recoverable Fault1 Input
FAULT0IN10Non-Recoverable Fault0 Input
FAULTBIN9Recoverable Fault B Input
FAULTAIN8Recoverable Fault A Input
PERBUFV7Period Buffer Valid
PATTBUFV5Pattern Buffer Valid
SLAVE4Slave
DFS3Non-Recoverable Debug Fault State
UFS2Non-recoverable Update Fault State
IDX1Ramp
STOP0Stop

COUNTCount

Address
0x44816034
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
COUNT15:0Counter Value
COUNT15:4Counter Value
COUNT15:5Counter Value
COUNT15:6Counter Value

WAVEWaveform Control

Address
0x4481603C
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
POL117Channel 1 Polarity
POL016Channel 0 Polarity
CICCEN19Circular Channel 1 Enable
CICCEN08Circular Channel 0 Enable
CIPEREN7Circular period Enable
RAMP6:4Ramp Mode
  • 0 RAMP1 operation
  • 1 Alternative RAMP2 operation
  • 2 RAMP2 operation
  • 3 Critical RAMP2 operation
  • 4 Critical Swapped RAMP2 operation
WAVEGEN2:0Waveform Generation
  • 0 Normal frequency
  • 1 Match frequency
  • 2 Normal PWM
  • 3 Dual compare PWM
  • 4 Dual-slope critical
  • 5 Dual-slope with interrupt/event condition when COUNT reaches ZERO
  • 6 Dual-slope with interrupt/event condition when COUNT reaches ZERO or TOP
  • 7 Dual-slope with interrupt/event condition when COUNT reaches TOP

PERPeriod

Address
0x44816040
Reset
0x0000FFFF
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
PER15:0Period Value
PER15:4Period Value
PER15:5Period Value
PER15:6Period Value
DITHER5:0Dithering Cycle Number
DITHER4:0Dithering Cycle Number
DITHER3:0Dithering Cycle Number

CC0Compare and Capture

Address
0x44816044
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
CC15:0Channel Compare/Capture Value
CC15:4Channel Compare/Capture Value
CC15:5Channel Compare/Capture Value
CC15:6Channel Compare/Capture Value
DITHER5:0Dithering Cycle Number
DITHER4:0Dithering Cycle Number
DITHER3:0Dithering Cycle Number

CC1Compare and Capture

Address
0x44816048
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
CC15:0Channel Compare/Capture Value
CC15:4Channel Compare/Capture Value
CC15:5Channel Compare/Capture Value
CC15:6Channel Compare/Capture Value
DITHER5:0Dithering Cycle Number
DITHER4:0Dithering Cycle Number
DITHER3:0Dithering Cycle Number

PERBUFPeriod Buffer

Address
0x4481606C
Reset
0x0000FFFF
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
PERBUF15:0Period Buffer Value
PERBUF15:4Period Buffer Value
PERBUF15:5Period Buffer Value
PERBUF15:6Period Buffer Value
DITHERBUF5:0Dithering Buffer Cycle Number
DITHERBUF4:0Dithering Buffer Cycle Number
DITHERBUF3:0Dithering Buffer Cycle Number

CCBUF0Compare and Capture Buffer

Address
0x44816070
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
CCBUF15:0Channel Compare/Capture Buffer Value
CCBUF15:4Dithering Buffer Cycle Number
CCBUF15:5Channel Compare/Capture Buffer Value
CCBUF15:6Channel Compare/Capture Buffer Value
DITHERBUF5:0Dithering Buffer Cycle Number
DITHERBUF4:0Dithering Buffer Cycle Number
DITHERBUF3:0Channel Compare/Capture Buffer Value

CCBUF1Compare and Capture Buffer

Address
0x44816074
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
CCBUF15:0Channel Compare/Capture Buffer Value
CCBUF15:4Dithering Buffer Cycle Number
CCBUF15:5Channel Compare/Capture Buffer Value
CCBUF15:6Channel Compare/Capture Buffer Value
DITHERBUF5:0Dithering Buffer Cycle Number
DITHERBUF4:0Dithering Buffer Cycle Number
DITHERBUF3:0Channel Compare/Capture Buffer Value