Electronic Components Datasheet Search
  English  ▼

X  

AN1113 Datasheet(PDF) 8 Page - STMicroelectronics

Part # AN1113
Description  BRUSHLESS MOTOR FUZZY CONTROL BY USING ST52X301
PDF  18 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1113 Datasheet(HTML) 8 Page - STMicroelectronics

Back Button AN1113 Datasheet HTML 4Page - STMicroelectronics AN1113 Datasheet HTML 5Page - STMicroelectronics AN1113 Datasheet HTML 6Page - STMicroelectronics AN1113 Datasheet HTML 7Page - STMicroelectronics AN1113 Datasheet HTML 8Page - STMicroelectronics AN1113 Datasheet HTML 9Page - STMicroelectronics AN1113 Datasheet HTML 10Page - STMicroelectronics AN1113 Datasheet HTML 11Page - STMicroelectronics AN1113 Datasheet HTML 12Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 18 page
background image
Figure 9 . Main view
end of this application note contains the whole assembler code generated by the compiler.
Let us discuss about the main program. "
Int_AD_on" and "init" blocks in fig. 9 are used to initialize global
variables and interrupts mask (only AD Int is enabled). The two following blocks start the converter and
wait for the results of the conversion. After that, the converter values are stored in the variable called
"speed, "torque", "current" and a new Interrupt mask is enabled (only Ext Int).
Block "
V200_duty" loads the Triac counter with a default value and the block "PWM_start" allows the Tri-
ac peripheral to run. At this time it is already possible to see a PWM wave on pin 24 of ST52x301.
Since pin 27 reads a time period related to the speed it is necessary to perform a mathematical inver-
sion to achieve the frequency. Just to simplify, a complementation of the period byte will be made in-
stead of the inversion. In this way, an error will be introduced in the spin frequency calculation. If a more
accurate precision is requested, an alternative method to implement the inversion is to use a fuzzy im-
plementation of the function 1/T. The block "L298_EN_on" enables the bridge driver.
The Block "
complemnt" performs the above task. Following the loop, a new value of the speed Ref
"
torque_ref" and "current" are read. The block "max_research" catches the maximum value of the cur-
rent during a turn of the shaft. This loop is performed until the condition "tmp>=2" is false. Variable tmp is
used to create a time inertia in the fuzzy control. "Tmp" is incremented each time the Ext-Interrupt routi-
ne is executed (each 1/3 turn of the shaft) and this implies a real time control in about one turn of the
shaft.
Block "
calc_err" performs error calculation as "error = speed - ref - speed ", error variable is sent to the
fuzzy input, Fuzzy block "
fuzzy controller" produces the incremental value "delta_DC".
Next figure shows the content of the 5 mathematics blocks. In the second, "delta_DC" is added (or sub-
tract, if negative) to the current duty-cycle before to refresh Triac counter. The operators
If .. then are in-
troduced to avoid overflow or underflow in the counter registers during the control.
Key point in the program is the Ext_Int routine (fig. 11). This task performs the period measurement of
®
AN1113 - APPLICATION NOTE
8/18



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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