English
Language : 

DSPIC33FJ32MC204T-IPT Datasheet, PDF (174/330 Pages) Microchip Technology – 16-bit Digital Signal Controllers (up to 32 KB Flash and 2 KB SRAM) with Motor Control and Advanced Analog
dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304
16.1 Ouadrature Encoder Interface
Resources
Many useful resources are provided on the main prod-
uct page of the Microchip web site for the devices listed
in this data sheet. This product page, which can be
accessed using this link, contains the latest updates
and additional information.
Note:
In the event you are not able to access
the product page using the link above,
enter this URL in your browser:
http://www.microchip.com/wwwproducts/
Devices.aspx?dDocName=en530334
16.1.1 KEY RESOURCES
• Section 15. “Quadrature Encoder Interface
(QEI)” (DS70208)
• Code Samples
• Application Notes
• Software Libraries
• Webinars
• All related dsPIC33F/PIC24H Family Reference
Manuals Sections
• Development Tools
16.2 Control and Status Registers
The QEI module has four user-accessible registers,
accessible in either Byte or Word mode:
• Control/Status Register (QEICON) – Allows
control of the QEI operation and status flags
indicating the module state.
• Digital Filter Control Register (DFLTCON) –
Allows control of the digital input filter operation.
• Position Count Register (POSCNT) – Allows
reading and writing of the 16-bit position counter.
• Maximum Count Register (MAXCNT) – Holds a
value that is compared to the POSCNT counter in
some operations.
Note:
The POSCNT register allows byte
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.
DS70283K-page 174
© 2007-2012 Microchip Technology Inc.