PIC32CK1012SG00064 PDEC registers

The 19 registers of PDEC (Position Decoder), from 0x4501C000, with their reset value and every field. The PIC32CK1012SG00064 has 5596 registers in 69 peripherals, one page each.

PDEC Position Decoder

CTRLAControl A

Address
0x4501C000
Reset
0x00000000
Access
read/write
Size
32-bit
16 fields
FieldBitsWhat it does
ANGULAR26:24Angular Counter Length
PINVEN222IO Pin 2 Invert Enable
PINVEN121IO Pin 1 Invert Enable
PINVEN020IO Pin 0 Invert Enable
PINEN218PDEC Input From Pin 2 Enable
PINEN117PDEC Input From Pin 1 Enable
PINEN016PDEC Input From Pin 0 Enable
PEREN15Period Enable
SWAP14PDEC Phase A and B Swap
ALOCK11Auto Lock
CONF10:8PDEC Configuration
  • 0 Quadrature decoder direction
  • 1 Secure Quadrature decoder direction
  • 2 Decoder direction
  • 3 Secure decoder direction
  • 4 Auto correction mode
RUNSTDBY6Run in Standby
MODE3:2Operation Mode
  • 0 QDEC operating mode
  • 1 HALL operating mode
  • 2 COUNTER operating mode
ENABLE1Enable
SWRST0Software Reset
MAXCMP31:28Maximum Consecutive Missing Pulses

CTRLBCLRControl B Clear

Address
0x4501C004
Reset
0x00
Access
read/write
  1. 7CMD2
  2. 6CMD1
  3. 5CMD0
  4. 4–
  5. 3–
  6. 2–
  7. 1LUPD
  8. 0–
2 fields
FieldBitsWhat it does
CMD7:5Command
  • 0 No action
  • 1 Force a counter restart or retrigger
  • 2 Force update of double buffered registers
  • 3 Force a read synchronization of COUNT
  • 4 Start QDEC/HALL
  • 5 Stop QDEC/HALL
LUPD1Lock Update

CTRLBSETControl B Set

Address
0x4501C005
Reset
0x00
Access
read/write
  1. 7CMD2
  2. 6CMD1
  3. 5CMD0
  4. 4–
  5. 3–
  6. 2–
  7. 1LUPD
  8. 0–
2 fields
FieldBitsWhat it does
CMD7:5Command
  • 0 No action
  • 1 Force a counter restart or retrigger
  • 2 Force update of double buffered registers
  • 3 Force a read synchronization of COUNT
  • 4 Start QDEC/HALL
  • 5 Stop QDEC/HALL
LUPD1Lock Update

EVCTRLEvent Control

Address
0x4501C006
Reset
0x0000
Access
read/write
Size
16-bit
9 fields
FieldBitsWhat it does
MCEO113Match Channel 1 Event Output Enable
MCEO012Match Channel 0 Event Output Enable
VLCEO11Velocity Output Event Enable
DIREO10Direction Output Event Enable
ERREO9Error Output Event Enable
OVFEO8Overflow/Underflow Output Event Enable
EVEI7:5Event Input Enable
EVINV4:2Inverted Event Input Enable
EVACT1:0Event Action
  • 0 Event action disabled
  • 2 Count on event

INTENCLRInterrupt Enable Clear

Address
0x4501C008
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5MC1
  4. 4MC0
  5. 3VLC
  6. 2DIR
  7. 1ERR
  8. 0OVF
6 fields
FieldBitsWhat it does
MC15Channel 1 Compare Match Disable
MC04Channel 0 Compare Match Disable
VLC3Velocity Interrupt Disable
DIR2Direction Interrupt Disable
ERR1Error Interrupt Disable
OVF0Overflow/Underflow Interrupt Disable

INTENSETInterrupt Enable Set

Address
0x4501C009
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5MC1
  4. 4MC0
  5. 3VLC
  6. 2DIR
  7. 1ERR
  8. 0OVF
6 fields
FieldBitsWhat it does
MC15Channel 1 Compare Match Enable
MC04Channel 0 Compare Match Enable
VLC3Velocity Interrupt Enable
DIR2Direction Interrupt Enable
ERR1Error Interrupt Enable
OVF0Overflow/Underflow Interrupt Enable

INTFLAGInterrupt Flag Status and Clear

Address
0x4501C00A
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5MC1
  4. 4MC0
  5. 3VLC
  6. 2DIR
  7. 1ERR
  8. 0OVF
6 fields
FieldBitsWhat it does
MC15Channel 1 Compare Match
MC04Channel 0 Compare Match
VLC3Velocity
DIR2Direction Change
ERR1Error
OVF0Overflow/Underflow

STATUSStatus

Address
0x4501C00C
Reset
0x0040
Access
read/write
Size
16-bit
11 fields
FieldBitsWhat it does
CCBUFV113Compare Channel 1 Buffer Valid
CCBUFV012Compare Channel 0 Buffer Valid
FILTERBUFV9Filter Buffer Valid
PRESCBUFV8Prescaler Buffer Valid
DIR7Direction Status Flag
STOP6Stop
HERR5Hall Error Flag
WINERR4Window Error Flag
MPERR2Missing Pulse Error flag
IDXERR1Index Error Flag
QERR0Quadrature Error Flag

DBGCTRLDebug Control

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

SYNCBUSYSynchronization Status

Address
0x4501C010
Reset
0x00000000
Access
read only
Size
32-bit
9 fields
FieldBitsWhat it does
CC18Compare Channel 1 Synchronization Busy
CC07Compare Channel 0 Synchronization Busy
COUNT6Count Synchronization Busy
FILTER5Filter Synchronization Busy
PRESC4Prescaler Synchronization Busy
STATUS3Status Synchronization Busy
CTRLB2Control B Synchronization Busy
ENABLE1Enable Synchronization Busy
SWRST0Software Reset Synchronization Busy

PRESCPrescaler Value

Address
0x4501C014
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3PRESC3
  6. 2PRESC2
  7. 1PRESC1
  8. 0PRESC0
1 field
FieldBitsWhat it does
PRESC3:0Prescaler Value
  • 0 No division
  • 1 Divide by 2
  • 2 Divide by 4
  • 3 Divide by 8
  • 4 Divide by 16
  • 5 Divide by 32
  • 6 Divide by 64
  • 7 Divide by 128
  • 8 Divide by 256
  • 9 Divide by 512
  • 10 Divide by 1024

FILTERFilter Value

Address
0x4501C015
Reset
0x00
Access
read/write
  1. 7FILTER7
  2. 6FILTER6
  3. 5FILTER5
  4. 4FILTER4
  5. 3FILTER3
  6. 2FILTER2
  7. 1FILTER1
  8. 0FILTER0
1 field
FieldBitsWhat it does
FILTER7:0Filter Value

PRESCBUFPrescaler Buffer Value

Address
0x4501C018
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3PRESCBUF3
  6. 2PRESCBUF2
  7. 1PRESCBUF1
  8. 0PRESCBUF0
1 field
FieldBitsWhat it does
PRESCBUF3:0Prescaler Buffer Value
  • 0 No division
  • 1 Divide by 2
  • 2 Divide by 4
  • 3 Divide by 8
  • 4 Divide by 16
  • 5 Divide by 32
  • 6 Divide by 64
  • 7 Divide by 128
  • 8 Divide by 256
  • 9 Divide by 512
  • 10 Divide by 1024

FILTERBUFFilter Buffer Value

Address
0x4501C019
Reset
0x00
Access
read/write
  1. 7FILTERBUF7
  2. 6FILTERBUF6
  3. 5FILTERBUF5
  4. 4FILTERBUF4
  5. 3FILTERBUF3
  6. 2FILTERBUF2
  7. 1FILTERBUF1
  8. 0FILTERBUF0
1 field
FieldBitsWhat it does
FILTERBUF7:0Filter Buffer Value

COUNTCounter Value

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

CC0Channel n Compare Value

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

CC1Channel n Compare Value

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

CCBUF0Channel n Compare Buffer Value

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

CCBUF1Channel n Compare Buffer Value

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