PIC32CM1602GV00032 TC1 registers

The 21 registers of TC1 (Basic Timer Counter), from 0x42002400, with their reset value and every field. The PIC32CM1602GV00032 has 608 registers in 29 peripherals, one page each.

TC1 Basic Timer Counter

CTRLAControl A

Address
0x42002400
Reset
0x0000
Access
read/write
Size
16-bit
7 fields
FieldBitsWhat it does
PRESCSYNC13:12Prescaler and Counter Synchronization
  • 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. Reset prescaler counter
RUNSTDBY11Run in Standby
PRESCALER10:8Prescaler
  • 0 GCLK_TC
  • 1 GCLK_TC/2
  • 2 GCLK_TC/4
  • 3 GCLK_TC/8
  • 4 GCLK_TC/16
  • 5 GCLK_TC/64
  • 6 GCLK_TC/256
  • 7 GCLK_TC/1024
WAVEGEN6:5Waveform Generation Operation
  • 0
  • 1
  • 2
  • 3
MODE3:2TC Mode
  • 0 Counter in 16-bit mode
  • 1 Counter in 8-bit mode
  • 2 Counter in 32-bit mode
ENABLE1Enable
SWRST0Software Reset

READREQRead Request

Address
0x42002402
Reset
0x0000
Access
read/write
Size
16-bit
3 fields
FieldBitsWhat it does
RREQ15Read Request
RCONT14Read Continuously
ADDR4:0Address

CTRLBCLRControl B Clear

Address
0x42002404
Reset
0x02
Access
read/write
  1. 7CMD1
  2. 6CMD0
  3. 5–
  4. 4–
  5. 3–
  6. 2ONESHOT
  7. 1–
  8. 0DIR
3 fields
FieldBitsWhat it does
CMD7:6Command
  • 0 No action
  • 1 Force start, restart or retrigger
  • 2 Force stop
ONESHOT2One-Shot
DIR0Counter Direction

CTRLBSETControl B Set

Address
0x42002405
Reset
0x00
Access
read/write
  1. 7CMD1
  2. 6CMD0
  3. 5–
  4. 4–
  5. 3–
  6. 2ONESHOT
  7. 1–
  8. 0DIR
3 fields
FieldBitsWhat it does
CMD7:6Command
  • 0 No action
  • 1 Force start, restart or retrigger
  • 2 Force stop
ONESHOT2One-shot
DIR0Counter Direction

CTRLCControl C

Address
0x42002406
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5CPTEN1
  4. 4CPTEN0
  5. 3–
  6. 2–
  7. 1INVEN1
  8. 0INVEN0
4 fields
FieldBitsWhat it does
CPTEN15Capture Channel 1 Enable
CPTEN04Capture Channel 0 Enable
INVEN11Output Waveform 1 Invert Enable
INVEN00Output Waveform 0 Invert Enable

DBGCTRLDebug Control

Address
0x42002408
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
DBGRUN0Debug Run Mode

EVCTRLEvent Control

Address
0x4200240A
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
TCINV4TC Inverted Event Input
EVACT2:0Event Action
  • 0 Event action disabled
  • 1 Start, restart or retrigger TC on event
  • 2 Count on event
  • 3 Start TC on event
  • 5 Period captured into CC0 Pulse Width in CC1
  • 6 Period captured into CC1 Pulse Width on CC0

INTENCLRInterrupt Enable Clear

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

INTENSETInterrupt Enable Set

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

INTFLAGInterrupt Flag Status and Clear

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

STATUSStatus

Address
0x4200240F
Reset
0x08
Access
read only
  1. 7SYNCBUSY
  2. 6–
  3. 5–
  4. 4SLAVE
  5. 3STOP
  6. 2–
  7. 1–
  8. 0–
3 fields
FieldBitsWhat it does
SYNCBUSY7Synchronization Busy
SLAVE4Slave
STOP3Stop

COUNT16.COUNTCOUNT16 Counter Value

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

COUNT32.COUNTCOUNT32 Counter Value

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

COUNT8.COUNTCOUNT8 Counter Value

Address
0x42002410
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 Value

Address
0x42002414
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 Compare/Capture

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

COUNT32.CC0COUNT32 Compare/Capture

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

COUNT8.CC0COUNT8 Compare/Capture

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

COUNT8.CC1COUNT8 Compare/Capture

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

COUNT16.CC1COUNT16 Compare/Capture

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

COUNT32.CC1COUNT32 Compare/Capture

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