English
Language : 

PIC18F2331 Datasheet, PDF (182/396 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
TABLE 16-8: REGISTERS ASSOCIATED WITH THE MOTION FEEDBACK MODULE
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR, BOR
Value on all
other
Resets
INTCON
IPR3
PIE3
PIR3
TMR5H
TMR5L
PR5H
PR5L
GIE/GIEH PEIE/GIEL TMR0IE
—
—
—
—
—
—
—
—
—
Timer5 Register High Byte (Buffer)
Timer5 Register Low Byte
Timer5 Period Register High Byte
Timer5 Period Register Low Byte
INT0IE
PTIP
PTIE
PTIF
RBIE
IC3DRIP
IC3DRIE
IC3DRIF
TMR0IF
IC2QEIP
IC2QEIE
IC2QEIF
INT0IF
IC1IP
IC1IE
IC1IF
RBIF
TMR5IP
TMR5IE
TMR5IF
0000 000x 0000 000u
---1 1111 ---1 1111
---0 0000 ---0 0000
---0 0000 ---0 0000
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
1111 1111 1111 1111
1111 1111 1111 1111
T5CON
CAP1BUFH/
VELRH
CAP1BUFL/
VELRL
CAP2BUFH/
POSCNTH
CAP2BUFL/
POSCNTL
CAP3BUFH/
MAXCNTH
CAP3BUFL/
MAXCNTL
CAP1CON
CAP2CON
CAP3CON
DFLTCON
T5SEN RESEN T5MOD T5PS1 T5PS0 T5SYNC
Capture 1 Register, High Byte / Velocity Register, High Byte(1)
Capture 1 Register Low Byte / Velocity Register, Low Byte(1)
Capture 2 Register, High Byte / QEI Position Counter Register, High Byte(1)
Capture 2 Register, Low Byte / QEI Position Counter Register, Low Byte(1)
Capture 3 Register, High Byte / QEI Max. Count Limit Register, High Byte(1)
Capture 3 Register, Low Byte / QEI Max. Count Limit Register, Low Byte(1)
—
CAP1REN
—
—
CAP1M3 CAP1M2
—
CAP2REN
—
—
CAP2M3 CAP2M2
—
CAP3REN
—
—
CAP3M3 CAP3M2
—
FLT4EN FLT3EN FLT2EN FLT1EN FLTCK2
TMR5CS TMR5ON 0000 0000 0000 0000
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
CAP1M1
CAP2M1
CAP3M1
FLTCK1
CAP1M0
CAP2M0
CAP3M0
FLTCK0
-0-- 0000 -0-- 0000
-0-- 0000 -0-- 0000
-0-- 0000 -0-- 0000
-000 0000 -000 0000
QEICON
Legend:
Note 1:
VELM ERROR UP/DOWN QEIM2 QEIM1
QEIM0
PDEC1 PDEC0 0000 0000 0000 0000
x = unknown, u = unchanged, – = unimplemented, q = value depends on condition.
Shaded cells are not used by the Motion Feedback module.
Register name and function determined by which submodule is selected (IC/QEI, respectively). See Section 16.1.10 “Other
Operating Modes” for more information.
DS39616B-page 180
Preliminary
 2003 Microchip Technology Inc.