English
Language : 

UM0324 Datasheet, PDF (53/105 Pages) STMicroelectronics – This user manual describes
UM0324
SVPWM_IcsInit
Library functions
Synopsis
void SVPWM_IcsInit(void);
Description
The purpose of this function is to set-up microcontroller peripherals for
performing ICS reading and center aligned PWM generation.
The function initializes EIC, ADC, GPIO, and PWM peripherals.
In particular ADC and PWM peripherals are configured to perform one
injected chain of two A/D conversions every time PWM registers are
updated (event called U event).
Refer to Section 4.3.3 for further information on A/D conversion
triggering in ICS configuration.
Input
None.
Returns
None.
Note
It must be called at main level.
Functions called Standard library:
MRCC_PeripheralClockConfig, GPIO_Init, EIC_IRQInit,
EIC_IRQCmd, PWM_DeInit, PWM_StructInit, PWM_Init,
PWM_TRGOSelection, PWM_ClearFlag, PWM_ITConfig,
PWM_ResetCounter, ADC_StructInit, ADC_Init, ADC_Cmd,
ADC_StartCalibration, ADC_ConversionCmd, PWM_Cmd.
Motor control library:
SVPWM_IcsCurrentReadingCalibration
SVPWM_IcsCurrentReadingCalibration
Synopsis
void SVPWM_IcsCurrentReadingCalibration(void);
Description
The purpose of this function is to store the two analog voltages
corresponding to zero current values for compensating the offset
introduced by both ICS and amplification network.
Input
None.
Returns
None.
Note
The function must be called before PWM outputs are enabled so that
current flowing through inverter legs is zero. When using the STR750
MC Kit, ICS sensors must be supplied before the control board
(MB469B). This way, the current sensing conditioning network can
reach steady state before performing calibration.
Functions called Standard Library:
ADC_GetFlagStatus, ADC_ConversionCmd,
ADC_GetConversionValue
53/105