поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

XMEGAD датащи(PDF) 49 Page - ATMEL Corporation

номер детали XMEGAD
подробное описание детали  Interrupts and Programmable Multi-level Interrupt Controller
PDF  309 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  ATMEL [ATMEL Corporation]
домашняя страница  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

XMEGAD датащи(HTML) 49 Page - ATMEL Corporation

Back Button XMEGAD Datasheet HTML 45Page - ATMEL Corporation XMEGAD Datasheet HTML 46Page - ATMEL Corporation XMEGAD Datasheet HTML 47Page - ATMEL Corporation XMEGAD Datasheet HTML 48Page - ATMEL Corporation XMEGAD Datasheet HTML 49Page - ATMEL Corporation XMEGAD Datasheet HTML 50Page - ATMEL Corporation XMEGAD Datasheet HTML 51Page - ATMEL Corporation XMEGAD Datasheet HTML 52Page - ATMEL Corporation XMEGAD Datasheet HTML 53Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 49 / 309 page
background image
49
8210B–AVR–04/10
XMEGA D
Figure 5-4 shows typical quadrature signals from a rotary encoder. The signals QDPH0 and
QDPH90 are the two quadrature signals. When QDPH90 leads QDPH0, the rotation is defined
as positive or forward. When QDPH0 leads QDPH90, the rotation is defined as negative, or
reverse. The concatenation of the two phase signals is called the quadrature state or the phase
state.
In order to know the absolute rotary displacement a third index signal (QDINDX) can be used.
This gives an indication once per revolution.
5.7.2
QDEC Setup
For a full QDEC setup the following is required:
• I/O port pins - quadrature signal input
• The Event System - quadrature decoding
• A Timer/Counter - up, down and optional index count
The following procedure should be used for QDEC setup:
• Choose two successive pins on a port as QDEC phase inputs.
• Set pin direction for QDPH0 and QDPH90 as input.
• Set pin configuration for QDPH0 and QDPH90 to low level sense.
• Select QDPH0 pin as multiplexer input for an event channel, n.
• Enable quadrature decoding and digital filtering in the Event Channel.
• Optional:
a.
Setup QDEC index (QINDX).
b.
Select a third pin for QINDX input.
c.
Set pin direction for QINDX as input.
d.
Set pin configuration for QINDX to sense both edges.
e.
Select QINDX as multiplexer input for Event Channel n+1
f.
Set the Quadrature Index Enable bit in Event Channel n+1.
g.
Select the Index Recognition mode for Event Channel n+1.
• Set quadrature decoding as event action for a Timer/Counter.
• Select Event Channel n as event source the Timer/Counter.
• Set the period register of the Timer/Counter to ('line count' * 4 - 1). (The line count of the
quadrature encoder).
• Enable the Timer/Counter by setting CLKSEL to a CLKSEL_DIV1.
The angle of a quadrature encoder attached to QDPH0, QDPH90 (and QINDX) can now be read
directly from the Timer/Counter Count register. If the Count register is different from BOTTOM
when the index is recognized, the Timer/Counter error flag is set. Similarly the error flag is set if
the position counter passes BOTTOM without the recognition of the index.



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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