The 13 registers of QEI4 (Quadrature encoder 4), from 0xBF82B800, with their reset value and every field. The PIC32MK1024MCF064 has 1848 registers in 120 peripherals, one page each.
Most PIC32 SFRs have three more registers right after them: CLR at +4, SET at +8 and INV at +C (T1CONCLR, T1CONSET, T1CONINV), which clear, set or flip just the bits written as 1, in one write.
QEI4 Quadrature encoder 4
QEI4CONQEIx Control Register
Address
0xBF82B800
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
Field
Bits
What it does
QEIEN
15
Quadrature Encoder Interface Module Counter Enable bit
0 Module counters are disabled
1 Module counters are enabled
QEISIDL
13
Stop in Idle Mode bit
0 Continue module operation in Idle mode
1 Discontinue module operation when device enters Idle mode
PIMOD
12:10
Position Counter Initialization Mode Select bits
0 Index input event does not affect position counter
1 Every Index input event resets the position counter
2 Next index input event initializes the position counter with contents of QEIxICCH register
3 First index event after home event initializes position counter with contents of QEIxICCH register
4 Second index event after home event initializes position counter with contents of QEIxICCHregister
5 Resets the position counter when the position counter equals QEIxICCH register
6 Modulo Count mode for position counter
7 Modulo Count mode for position counter and every index event resets the position counter
IMV
9:8
Index Match Value bits
0 Index match occurs when QEB is 0 and QEA is 0
1 Index match occurs when QEB is 0 and QEA is 1
2 Index match occurs when QEB is 1 and QEA is 0
3 Index match occurs when QEB is 1 and QEA is 1
INTDIV
6:4
Timer Input Clock Prescale Select bits
0 1:1 prescale value
1 1:2 prescale value
2 1:4 prescale value
3 1:8 prescale value
4 1:16 prescale value
5 1:32 prescale value
6 1:64 prescale value
7 1:128 prescale value
CNTPOL
3
Position and Index Counter/Timer Direction Select bit
0 Counter direction is positive unless modified by external Up/Down signal
1 Counter direction is negative unless modified by external Up/Down signal
GATEN
2
External Count Gate Enable bit
0 External gate signal does not affect position counter/timer operation
1 External gate signal controls position counter operation