Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

UM0324 Datasheet(PDF) 42 Page - STMicroelectronics

Part # UM0324
Description  This user manual describes
PDF  105 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0324 Datasheet(HTML) 42 Page - STMicroelectronics

Back Button UM0324 Datasheet HTML 38Page - STMicroelectronics UM0324 Datasheet HTML 39Page - STMicroelectronics UM0324 Datasheet HTML 40Page - STMicroelectronics UM0324 Datasheet HTML 41Page - STMicroelectronics UM0324 Datasheet HTML 42Page - STMicroelectronics UM0324 Datasheet HTML 43Page - STMicroelectronics UM0324 Datasheet HTML 44Page - STMicroelectronics UM0324 Datasheet HTML 45Page - STMicroelectronics UM0324 Datasheet HTML 46Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 42 / 105 page
background image
Library functions
UM0324
42/105
Furthermore, you have the possibility to add any A/D conversions required for your
application (hereafter referred to as general purpose conversions). This section describes
how this is achieved.
First of all, the SVPWM_3ShuntInit function performs the synchronization between PWM
and TIM0 peripherals (Figure 21 shows the two peripheral counters when REP_RATE = 1),
then, the A/D converter peripheral is configured so that it is triggered by the TIM0 OC2
signal.
Figure 21.
PWM and TIM0 synchronization (REP_RATE=1)
This way, when the value of the TIM0 counter matches the value contained in the OCR2
register, the first A/D conversion for current sampling is started.
Meanwhile, a DMA transaction reloads the TIM0 OCR2 register with the value
corresponding to the delay required for the second current sampling conversion. Moreover,
the end of this first A/D conversion triggers another DMA transaction which sets the next
channel to be converted in the ADC register CLR2.
At the end of the second conversion, the three-phase load current has been updated and
the IFOC algorithm can then be executed in the A/D End of Conversion Interrupt Service
Routine (EOC ISR). In this routine, the A/D converter is also reconfigured so that it can
perform the general purpose chain of conversions while the CPU executes the IFOC
algorithm.
The entire process is illustrated in Figure 22.
After execution of the IFOC algorithm, the A/D converter is configured to perform the next
PWM period three-phase current sensing (delays and channels). This allows to reduce the
CPU load (lower number of ADC ISR) and limits to 6 (@ 7.5 MHz ADC peripheral clock) the
number of general purpose A/D conversions that can be performed in each PWM period.
To specify the general purpose conversions to be performed, you can select the first channel
and the number of channels to be converted by editing the
GP_CONVERSIONS_FIRST_CHANNEL
and GP_CONVERSIONS_NUMBER parameters
respectively in the MC_pwm_3shunt_prm.h header file.



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 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