Datasheet

dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304
DS70283K-page 176 © 2007-2012 Microchip Technology Inc.
bit 4-3 TQCKPS<1:0>: Timer Input Clock Prescale Select bits
11 = 1:256 prescale value
10 = 1:64 prescale value
01 = 1:8 prescale value
00 = 1:1 prescale value
(Prescaler utilized for 16-bit Timer mode only)
bit 2 POSRES: Position Counter Reset Enable bit
1 = Index Pulse resets Position Counter
0 = Index Pulse does not reset Position Counter
Note: Bit applies only when QEIM<2:0> = 100 or 110.
bit 1 TQCS: Timer Clock Source Select bit
1 = External clock from pin QEA (on the rising edge)
0 = Internal clock (TCY)
bit 0 UPDN_SRC: Position Counter Direction Selection Control bit
1 = QEB pin state defines position counter direction
0 = Control/Status bit, UPDN (QEICON<11>), defines timer counter (POSCNT) direction
Note: When configured for QEI mode, control bit is a ‘don’t care’.
REGISTER 16-1: QEIxCON: QEI CONTROL REGISTER (CONTINUED)