数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

ST9 数据表(PDF) 84 Page - STMicroelectronics

部件名 ST9
功能描述  USER GUIDE
PDF  146 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

ST9 数据表(HTML) 84 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 80Page - STMicroelectronics ST9 Datasheet HTML 81Page - STMicroelectronics ST9 Datasheet HTML 82Page - STMicroelectronics ST9 Datasheet HTML 83Page - STMicroelectronics ST9 Datasheet HTML 84Page - STMicroelectronics ST9 Datasheet HTML 85Page - STMicroelectronics ST9 Datasheet HTML 86Page - STMicroelectronics ST9 Datasheet HTML 87Page - STMicroelectronics ST9 Datasheet HTML 88Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 84 / 146 page
background image
84/146
ST9 USER GUIDE
4.4.3 Incremental Encoder Counter
An incremental encoder is a device that generates two square signals in quadrature when its
shaft rotates. Its main specification is the number of cycles per revolution, i.e. the number of
square signal cycles for one shaft revolution. The greater the number of cycles, the more ac-
curate it is, and the more it costs.
In a stepper motor application, it is used to monitor the rotation of the motor. Here however, we
have taken an encoder that has a great resolution, and this section will show you how to use
an MFT to count encoder pulses, and rescale it to another resolution to meet your project
needs.
4.4.3.1 Description
The MFT includes an input block, a counter block, an event block and an output block. In this
application, no output signal is required, since the counter is expected to produce a value that
is read in registers.
The MFT must provide the following functions:
– Use the inputs to drive the counter according to the amount and direction of rotation
– Keep the count undisturbed by events other than the transitions at the inputs
– Allow reading the current counter value
– Allow setting the counter to an arbitrary initial value
We configure the input block to use the two square signals delivered by the encoder to drive
the up and down counting of the counter. We do this using a special mode of the input block
called “autodiscrimination”. In this mode, the input pulses clock the counter, and the phase re-
lationship between the two signals selects up or down counting. Since the process is incre-
mental, once the MFT configured this way, it automatically follows the rotation of the encoder
shaft and the counter value reflects its position relative to the position it was in when the
counter was configured. In our example, the encoder produces 512 cycles per revolution. Be-
cause the counter is 16-bit, it can monitor shaft positions 65536/512 = 128 (or +/-64) full rev-
olutions from the original position.
To operate with an encoder as the input pulse source, we need to set the MFT to Continuous
Mode. When the counter crosses the FFFF to 0000 boundary in either direction, this is called
an End-Of-Count event. In the normal Continuous mode, the End-Of-Count event reloads the
counter with the contents of REG0R (or REG1R in biload mode). In this application, no auto-
matic reload may occur at any time so we can use the full range of the counter and be able to
cross the boundary. To prevent the reload from occurring, we must set the REG0R register to
Capture Mode. The MFT is then said to be in Free-Running Mode.
We have thus selected Free-Running Mode, yet we need to be able to set the counter to any
arbitrary value that is taken as the initial position. For this we need to use the REG0R register



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


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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