RSBJEUM0001-0101 Rev. 1.01
14
2.6 List of function modules
Module name
Label name
Input Output
Description
Motor control main
processing
Main_PWM_120slc20_PFCR( )
——
Main processing
Initialization
processing
PWMInitial( )
——
Set initial values for AD
conversion, zero-crossing
detection ,and three phase
PWM
PWM interrupt
processing
PWMInt( )
——
Call the turnoff, bootstrap,
turnon and run processing
Turn off processing
TurnoffPWM( )
——
Turns off the three pahse
PWM outputs and checks
whether to proceed to startup
operation
Turn on Processing
TurnonPWM( )
——
Performs startup operation
and check run mode switch
Bootstrap processing
BootstrapPWM ( )
——
Charging for 3-phase IGBT
circuit
TB1 int processing
TB1Int ( )
——
Performs 50us timer inquiry
and detect induced voltage
Run
Processing
RunPWM ( )
——
Normal PWM operation
processing
Run calculation
processing
Cal PwmRun ( )
——
Performs sensor-less control
and Output pattern switching
PWM duty calculation
processing
CalPWMDuty ( )
——
Calculates actual rotation
speed and PWM duty
Stop check processing
StopCheck( )
UNIT_16
Stop
check
result
Check
whether
the
processing is stopped by a
rotation speed command or
an error
Calculate Rotation
Speed Command
CalSpeedCnd( )
UINT_16 UNIT_16
Ad rotation
Input speed
Value command
Convert AD value to rotation
speed command