Microchip Technology MA330013 数据表
dsPIC33F
DS70165E-page 202
Preliminary
©
2007 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
(Bit only applies 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:
QEICON: QEI CONTROL REGISTER (CONTINUED)