Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Mexican  ▼
ALLDATASHEET.COM.MX

X  

PIC18F4331 Datasheet(PDF) 177 Page - Microchip Technology

No. de pieza PIC18F4331
Descripción Electrónicos  28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PDF  396 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  MICROCHIP [Microchip Technology]
Página de inicio  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F4331 Datasheet(HTML) 177 Page - Microchip Technology

Back Button PIC18F4331 Datasheet HTML 173Page - Microchip Technology PIC18F4331 Datasheet HTML 174Page - Microchip Technology PIC18F4331 Datasheet HTML 175Page - Microchip Technology PIC18F4331 Datasheet HTML 176Page - Microchip Technology PIC18F4331 Datasheet HTML 177Page - Microchip Technology PIC18F4331 Datasheet HTML 178Page - Microchip Technology PIC18F4331 Datasheet HTML 179Page - Microchip Technology PIC18F4331 Datasheet HTML 180Page - Microchip Technology PIC18F4331 Datasheet HTML 181Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 177 / 396 page
background image
 2003 Microchip Technology Inc.
Preliminary
DS39616B-page 175
PIC18F2331/2431/4331/4431
FIGURE 16-11:
QEI MODULE RESET TIMING WITH THE INDEX INPUT
16.2.6
VELOCITY MEASUREMENT
The velocity pulse generator, in conjunction with the
IC1 and the synchronous TMR5 (in synchronous
operation), provides a method for high accuracy speed
measurements at both low and high mechanical motor
speeds. The Velocity mode is enabled when the VELM
bit is cleared (= 0) and QEI is set to one of its operating
modes (see Table 16-6).
To optimize register space, the input capture channel
one (IC1) is used to capture TMR5 counter values.
Input capture buffer register, CAP1BUF, is redefined in
Velocity Measurement mode, VELM = 0, as the
Velocity Register buffer (VREGH, VREGL).
TABLE 16-6:
VELOCITY PULSES
QEB
QEA
UP/DOWN
IC2QEIF
POSCNT(1)
count (+/-)
+1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
MAXCNT
MAXCNT=1527
Q4(3)
Q4(3)
INDX
Q1(4)
Q1(5)
Position
counter load
Forward
Reverse
Note 2
Note 2
Note 1:
POSCNT register is shown in QEI x4 Update mode (POSCNT increments on every rising and every falling edge of
QEA and QEB input signals)
2:
When INDX Reset pulse is detected, POSCNT is reset to ‘0’ on the next QEA or QEB edge. POSCNT is set to
MAXCNT when POSCNT = 0 (when decrementing), which occurs on the next QEA or QEB edge. Similar Reset
sequence occurs for the reverse direction except that the INDX signal is recognized on its falling edge. The Reset
is generated on the next QEA or QEB edge.
3:
IC2QEI is enabled for one TCY clock cycle.
4:
Position counter is loaded with ‘0000h’ (i.e., Reset) on the next QEA or QEB edge when INDX is high.
5:
Position counter is loaded with MAXCNT value (e.g., 1527h) on the next QEA or QEB edge following the INDX
falling edge input signal detect).
6:
IC2QEIF must be cleared in software.
Note 6
QEIM<2:0>
Velocity Event Mode
001
010
x2 Velocity Event mode. The velocity
pulse is generated on every QEA
edge.
101
110
x4 Velocity Event mode. The velocity
pulse is generated on every QEA and
QEB active edge.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Descarga

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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