RSBJEUM0001-0101 Rev. 1.01
15
2.7 List of vrialbles
Item
Label
Data Type
Resolution
Description
Stop state
s_StopMode
UINT_16
2^0
Output state
g_OutputMode
UINT_8
2^0
Operation mode
Output angle
g_MotTheta
UINT_16
2^11
Startup control
counter
s_StartCnt
UINT_16
2^0
Target rotation
speed calculation
counter
s_TargetCnt
UINT_16
2^0
Counter used to provide the period
(2ms)
of
target
rotation
speed
calculation.
Rotation speed
command
g_SpeedCnd
UINT_16
2^1
ADC input
rpm = SpeedCnd /2^1/(2p)/ number of
pole pairs
×
60
Target rotation
speed
g_SpeedTgt
UINT_16
2^1
The value changed toward the rotation
speed command value at a rate of 0.5
rad per 2 ms.
Actual rotation
speed
g_SpeedAct
UINT_16
2^1
Detect from the zero-crossing
interval of the induced voltages
Zero-crossings
interval counter
s_DltCnt
UINT_16
2^0
Counter that measures the interval
between zero-crossings (60
°
).
Counter clock period is the carrier
period.
Delay time counter
for switching to the
next output pattern
s_ReloadCnt
UINT_16
2^0
Counter used to provide a time period
from a pattern switching until detection
of induced voltage zero-crossings is
enabled. Counter clock period is the
carrier period
output pattern
g_Stage
UINT_16
2^0
Current output pattern
Next output
Pattern
s_ReloadStg
UINT_16
2^0
Next pattern that is determined based
on the induced-voltage zero-crossing
detection.
PWM duty clcye
g_PwmDuty
UINT_16
2^13
Bootstrap charge
delay counter
s_BootstpCnt
UINT_16
2^0
A period delay for charging for every
IGBT
Bootstrap charge
Step counter
s_BootstpStep
UINT_8
2^0
Three-phase IGBT circuit bootstrap
Current
zero-crossings
interval counter
g_DltCntRef
UINT_16
2^0
Former
zero-crossings
interval counter
g_PreDltCnt
UINT_16
2^0
Zero-crossing
interval array
g_DltCntArray[
12]
UINT_16
2^0
Save 12 times zero-crossing interval
pulses
Average
zero-crossing
interval pulse
g_AvrDltCnt
UINT_16
2^0
External Interrupt
counter
s_IntCnt
UINT_16
2^0
Detect two INTi interrupts for induced
voltage
AD rotation speed
command
s_ADSpeed
UINT_16
2^12
Change AD value into rotation speed
AD rotation speed
sum
s_ADSum
UINT_32
2^12
16 times AD value sum
zero-crossing
interval array pointer
s_CalCnt
UINT_8
2^0
Calculate
average
zero-crossing