PIC32CM1216PL10048 TC0 registers

The 29 registers of TC0 (Timer/Counter), from 0x42000C00, with their reset value and every field. The PIC32CM1216PL10048 has 702 registers in 32 peripherals, one page each.

TC0 Timer/Counter

CTRLAControl A

Address
0x42000C00
Reset
0x00000000
Access
read/write
Size
32-bit
15 fields
FieldBitsWhat it does
CAPTMODE128:27Capture mode Channel 1
  • 0 Default capture
  • 1 Minimum capture
  • 2 Maximum capture
CAPTMODE025:24Capture mode Channel 0
  • 0 Default capture
  • 1 Minimum capture
  • 2 Maximum capture
COPEN121Capture On Pin 1 Enable
COPEN020Capture On Pin 0 Enable
CAPTEN117Capture Channel 1 Enable
CAPTEN016Capture Channel 0 Enable
DMAOS15DMA One-Shot Trigger Mode
ALOCK11Auto Lock
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
ONDEMAND7Clock On Demand
RUNSTDBY6Run in Standby
PRESCSYNC5:4Prescaler 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.
MODE3:2Timer Counter Mode
  • 0 Counter in 16-bit mode
  • 1 Counter in 8-bit mode
  • 2 Counter in 32-bit mode
ENABLE1Enable
SWRST0Software Reset

CTRLBCLRControl B Clear

Address
0x42000C04
Reset
0x00
Access
read/write
  1. 7CMD2
  2. 6CMD1
  3. 5CMD0
  4. 4–
  5. 3–
  6. 2ONESHOT
  7. 1LUPD
  8. 0DIR
4 fields
FieldBitsWhat it does
CMD7:5Command
ONESHOT2One-Shot on Counter
LUPD1Lock Update
DIR0Counter Direction

CTRLBSETControl B Set

Address
0x42000C05
Reset
0x00
Access
read/write
  1. 7CMD2
  2. 6CMD1
  3. 5CMD0
  4. 4–
  5. 3–
  6. 2ONESHOT
  7. 1LUPD
  8. 0DIR
4 fields
FieldBitsWhat it does
CMD7:5Command
  • 0 No action
  • 1 Force a start, restart or retrigger
  • 2 Force a stop
  • 3 Force update of double buffered registers
  • 4 Force a read synchronization of COUNT
  • 5 One-shot DMA trigger
ONESHOT2One-Shot on Counter
LUPD1Lock Update
DIR0Counter Direction

EVCTRLEvent Control

Address
0x42000C06
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 Enable
TCINV4TC Inverted Event Input Polarity
EVACT2:0Event Action
  • 0 Event action disabled
  • 1 Start, restart or retrigger TC on event
  • 2 Count on event
  • 3 Start TC on event
  • 4 Time stamp capture
  • 5 Period captured in CC0, pulse width in CC1
  • 6 Period captured in CC1, pulse width in CC0
  • 7 Pulse width capture

INTENCLRInterrupt Enable Clear

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

INTENSETInterrupt Enable Set

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

INTFLAGInterrupt Flag Status and Clear

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

STATUSStatus

Address
0x42000C0B
Reset
0x01
Access
read/write
  1. 7–
  2. 6–
  3. 5CCBUFV1
  4. 4CCBUFV0
  5. 3PERBUFV
  6. 2–
  7. 1SLAVE
  8. 0STOP
5 fields
FieldBitsWhat it does
CCBUFV15Channel 1 Compare or Capture Buffer Valid
CCBUFV04Channel 0 Compare or Capture Buffer Valid
PERBUFV3Period Buffer Valid
SLAVE1Client Status Flag
STOP0Stop Status Flag

WAVEWaveform Generation Control

Address
0x42000C0C
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1WAVEGEN1
  8. 0WAVEGEN0
1 field
FieldBitsWhat it does
WAVEGEN1:0Waveform Generation Mode
  • 0 Normal Frequency Generation mode
  • 1 Match Frequency Generation mode
  • 2 Normal Pulse-Width Modulation mode
  • 3 Match Pulse-Width Modulation mode

DRVCTRLDriver Control

Address
0x42000C0D
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1INVEN1
  8. 0INVEN0
2 fields
FieldBitsWhat it does
INVEN11Waveform Output 1 Invert Enable
INVEN00Waveform Output 0 Invert Enable

DBGCTRLDebug Control

Address
0x42000C0F
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
DBGRUN0Run in Debug Mode

SYNCBUSYSynchronization Busy

Address
0x42000C10
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
FieldBitsWhat it does
CC17Compare/Capture Channel 1 Synchronization Busy
CC06Compare/Capture Channel 0 Synchronization Busy
PER5PER Synchronization Busy
COUNT4COUNT Synchronization Busy
STATUS3STATUS Synchronization Busy
CTRLB2CTRLB Synchronization Busy
ENABLE1ENABLE Synchronization Busy
SWRST0SWRST Synchronization Busy

COUNT16.COUNTCOUNT16 Counter

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

COUNT32.COUNTCOUNT32 Counter

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

COUNT8.COUNTCOUNT8 Counter

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

Address
0x42000C1B
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 Channel # Compare/Capture

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

COUNT32.CC0COUNT32 Channel # Compare/Capture

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

COUNT8.CC0COUNT8 Channel # Compare/Capture

Address
0x42000C1C
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:0Channel Compare/Capture Value

COUNT8.CC1COUNT8 Channel # Compare/Capture

Address
0x42000C1D
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:0Channel Compare/Capture Value

COUNT16.CC1COUNT16 Channel # Compare/Capture

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

COUNT32.CC1COUNT32 Channel # Compare/Capture

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

COUNT8.PERBUFCOUNT8 Period Buffer

Address
0x42000C2F
Reset
0xFF
Access
read/write
  1. 7PERBUF7
  2. 6PERBUF6
  3. 5PERBUF5
  4. 4PERBUF4
  5. 3PERBUF3
  6. 2PERBUF2
  7. 1PERBUF1
  8. 0PERBUF0
1 field
FieldBitsWhat it does
PERBUF7:0Period Buffer Value

COUNT16.CCBUF0COUNT16 Channel # Compare Buffer

Address
0x42000C30
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
CCBUF15:0Channel Compare Buffer Value

COUNT32.CCBUF0COUNT32 Channel # Compare Buffer

Address
0x42000C30
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
CCBUF31:0Channel Compare Buffer Value

COUNT8.CCBUF0COUNT8 Channel # Compare Buffer

Address
0x42000C30
Reset
0x00
Access
read/write
  1. 7CCBUF7
  2. 6CCBUF6
  3. 5CCBUF5
  4. 4CCBUF4
  5. 3CCBUF3
  6. 2CCBUF2
  7. 1CCBUF1
  8. 0CCBUF0
1 field
FieldBitsWhat it does
CCBUF7:0Channel Compare Buffer Value

COUNT8.CCBUF1COUNT8 Channel # Compare Buffer

Address
0x42000C31
Reset
0x00
Access
read/write
  1. 7CCBUF7
  2. 6CCBUF6
  3. 5CCBUF5
  4. 4CCBUF4
  5. 3CCBUF3
  6. 2CCBUF2
  7. 1CCBUF1
  8. 0CCBUF0
1 field
FieldBitsWhat it does
CCBUF7:0Channel Compare Buffer Value

COUNT16.CCBUF1COUNT16 Channel # Compare Buffer

Address
0x42000C32
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
CCBUF15:0Channel Compare Buffer Value

COUNT32.CCBUF1COUNT32 Channel # Compare Buffer

Address
0x42000C34
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
CCBUF31:0Channel Compare Buffer Value