RSBJEUM0001-0101 Rev. 1.01
16
interval pulse
AD sample interval
g_swtime
UINT_16
2^0
Sample once every 16 carrier wave
interrupt
Induced
voltage
detection
disable
time counter
g_ChkOnCnt
UINT_16
2^0
Counter used to provide a time delay
for
detect
a
induced
voltage
zero-crossing.
2.8 List of Macro definition
Macro name
Macro value
Resolution
Description
M_CTRL_TS
6711
2^25
Control cycle 0.0002* 2^25
M_K_SPEED_AD_REF
6032
2^12
A-D conversion ratio (240*2*pi/1024)* 2^12
M_Sft_SPEED_AD_RE
11
M_Start_Hz
419
2^1
Carrier wave cycle 5k, startup rotation speed
M_Sft_TURNON_MODE
15
2^0
M_TURNON_MODE_TIM
E
1500
2^0
Start up time
M_THETA_60DEG
2145
2^11
Pi/3* 2^11
M_THETA_360DEG
12868
2^11
2*Pi*2^11
M_CARR_CNT
4000
2^0
Carrier wave cycle is 5k
M_TURNOFF
0
2^0
Turnoff work mode
M_BOOTSTRAP
1
2^0
Bootstrap work mode
M_TURNON
2
2^0
Turnon work mode
M_RUN
3
2^0
Run work mode
M_INI_DUTY_120
1600
2^15
Initial PWM duty (0.08*2^15)
M_MIN_DUTY_120
328
2^15
Min PWM duty ( 0.01*2^15 )
M_MAX_DUTY_120
29488
2^15
Max PWM duty ( 0.9*2^15 )
M_BOOT_DUTY_120
3276
2^15
Bootstrap PWM duty ( 0.1*2^15 )
M_Sft_DUTY_120_TIME
15
2^0
M_BOOTSTRAPSTEP
3
Bootstrap mode step
2.9 List of constant variable
Item
Label
Data Type
Description
Output pattern switching
table
PFCRTbl[ ]
UINT_8
Comprise 6 output pattern PWM wave
Zero-crossing interval
counter table
Tgt_Dlt_Conv[ ]
UINT_8
Convert target rotation speed to
zero-crossing interval pulse
Actual rotation speed
table
Dlt_Act _Conv[ ]
UINT_8
Convert zero-crossing interval pulse to actual
rotation speed
PFCR output table for
bootstrap mode
PFCRTblBoot[ ]
UINT_8
Include three elements for three phase IGBT
circuit charging