DSPIC33FJ12MC202 Microchip Technology Inc., DSPIC33FJ12MC202 Datasheet - Page 170

no-image

DSPIC33FJ12MC202

Manufacturer Part Number
DSPIC33FJ12MC202
Description
High-performance, 16-bit Digital Signal Controllers
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DSPIC33FJ12MC202-E/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
DSPIC33FJ12MC202-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
DSPIC33FJ12MC202-I/SO
0
Part Number:
DSPIC33FJ12MC202-I/SP
0
Part Number:
DSPIC33FJ12MC202-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
dsPIC33FJ12MC201/202
15.7.2
When the CPU is placed in Idle mode and the QEI mod-
ule is configured in 16-bit Timer mode, the 16-bit timer
will operate if QEISIDL (QEICON<13>) = 0. This bit
defaults to a logic ‘0’ upon executing POR. To halt the
timer module during CPU Idle mode, QEISIDL should
be set to ‘1’.
If the QEISIDL bit is cleared, the timer will function
normally as if CPU Idle mode had not been entered.
15.8
The Quadrature Encoder Interface can generate an
interrupt on occurrence of the following events:
• 16-bit up/down position counter rollover/underflow
• Detection of qualified index pulse
• CNTERR bit is set
• Timer period match event (overflow/underflow)
• Gate accumulation event
The QEI Interrupt Flag bit, QEIIF in the IFS3 register, is
asserted upon occurrence of any of these events. The
QEIIF bit must be cleared in software.
Enabling an interrupt is accomplished via the
respective enable bit, QEIIE, in the IEC3 register.
DS70265B-page 168
Quadrature Encoder Interface
Interrupts
TIMER OPERATION DURING CPU
IDLE MODE
Preliminary
15.9
The QEI module has four user-accessible registers,
accessible in either Byte or Word mode:
• Control/Status Register (QEICON) – Allows
• Digital Filter Control Register (DFLTCON) –
• Position Count Register (POSCNT) – Allows
• Maximum Count Register (MAXCNT) – Holds a
control of the QEI operation and status flags
indicating the module state.
Allows control of the digital input filter operation.
reading and writing of the 16-bit position counter.
value that is compared to the POSCNT counter in
some operations.
Note:
Control and Status Registers
The
accesses,. However, reading the register
in Byte mode can result in partially
updated values in subsequent reads.
Either use Word mode reads/writes, or
ensure that the counter is not counting
during Byte operations.
POSCNT
© 2007 Microchip Technology Inc.
register
allows
byte

Related parts for DSPIC33FJ12MC202