| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
PIC18F4331 Datasheet(PDF) 172 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC18F4331 Datasheet(HTML) 172 Page - Microchip Technology |
|
172 / 396 page ![]() PIC18F2331/2431/4331/4431 DS39616B-page 170 Preliminary 2003 Microchip Technology Inc. 16.2 Quadrature Encoder Interface The Quadrature Encoder Interface (QEI) decodes speed and motion sensor information. It can be used in any application that uses a quadrature encoder for feedback. The interface implements these features: • Three QEI inputs: two phase signals (QEA and QEB) and one index signal (INDX) • Direction of movement detection with a direction change interrupt (IC3DRIF) • 16-bit up/down position counter • Standard and high-precision position tracking modes • Two position update modes (x2 and x4) • Velocity measurement with a programmable postscaler for high-speed velocity measurement • Position counter interrupt (IC2QEIF in the PIR3 register) • Velocity control interrupt (IC1IF in the PIR3 register) The QEI sub-module has three main components: the QEI control logic block, the position counter and velocity postscaler. The QEI control logic detects the leading edge on the QEA or QEB phase input pins, and generates the count pulse which is sent to the position counter logic. It also samples the index input signal (INDX), and generates the direction of rotation signal (up/down) and the veloc- ity event signals. The position counter acts as an integrator for tracking distance traveled. The QEA and QEB input edges serve as the stimulus to create the input clock which advances the Position Counter Register (POSCNT). The register is incremented on either the QEA input edge, or the QEA and QEB input edges, depending on the operating mode. It is reset either by a rollover on match to the Period Register, MAXCNT, or on the exter- nal index pulse input signal (INDX). An interrupt is gen- erated on a reset of POSCNT if the position counter interrupt is enabled. The velocity postscaler down-samples the velocity pulses used to increment the velocity counter by a specified ratio. It essentially divides down the number of velocity pulses to one output per so many input, pre- serving the pulse width in the process. A simplified block-diagram of the QEI module is shown in Figure 16-8. FIGURE 16-8: QEI BLOCK DIAGRAM Comparator CAP2/QEA CAP1/INDX CAP3/QEB POSCNT/CAP2BUF Reset on match QEI Module QEI Control Logic Filter Filter Filter QEB QEA INDX Timer reset Velocity Event Postscaler 8 MAXCNT/CAP3BUF 8 8 Clock Direction 8 8 Set IC2QEIF Set UP/DOWN Position Counter Reset Timer5 Direction change Set CHGIF Velocity Capture |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |