Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2281 Datasheet(PDF) 12 Page - STMicroelectronics

Part # AN2281
Description  Low cost self-synchronizing PMAC motor drive using ST7FLITE35
PDF  38 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2281 Datasheet(HTML) 12 Page - STMicroelectronics

Back Button AN2281 Datasheet HTML 8Page - STMicroelectronics AN2281 Datasheet HTML 9Page - STMicroelectronics AN2281 Datasheet HTML 10Page - STMicroelectronics AN2281 Datasheet HTML 11Page - STMicroelectronics AN2281 Datasheet HTML 12Page - STMicroelectronics AN2281 Datasheet HTML 13Page - STMicroelectronics AN2281 Datasheet HTML 14Page - STMicroelectronics AN2281 Datasheet HTML 15Page - STMicroelectronics AN2281 Datasheet HTML 16Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 38 page
background image
Implementation on the ST7LITE35 microcontroller
AN2281
12/38
You can observe that, in order to measure the Hall sensor semi-period correctly, the LTIC
and LTTB1 ISRs must be executed by the microcontroller core in the same order in which
the related interrupts events occurred. This would normally happen if no other interrupts
service routines are executing. However in our software, a third interrupt source is enabled
(PWM update event), so a potentially erroneous situation could arise due to the interrupt
priority mechanism.
Figure 9 describes two possible situations:
Figure 9.
Multiple interrupt pending situation
Due to the higher interrupt priority of LTIC with respect to LTTB1, in both cases the LTIC ISR
is executed before LTTB1 ISR.
In this case, the value stored in the LTICR is used to reconstruct the correct sequence: if the
content of the LTICR is lower than 125, it is assumed that the LTTB1 event occurred just
before a LTIC event so that the Lite Timer overflow counter must be incremented before the
semi-period computation. On the contrary, if the LTICR contains a value higher than 125, it
is assumed that the LTIC occurred just before a Lite timer overflow (LTTB1 event). In this
case, the overflow counter must not be incremented before the semi-period computation but
it will be taken into account at the next LTIC event.
Counter 1
249
LTTB1
Captured
value << 125
LTIC Int
t
t
t
Hall sensor
output
Counter 1
249
LTTB1
Captured
value >> 125
LTIC Int
t
t
t
PWM OVF ISR execution
PWM OVF ISR execution



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


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