SLLSFQ7 November 2023 MCF8329A
PRODUCTION DATA
Table 7-65 lists the memory-mapped registers for the Algorithm_Variables registers. All register offset addresses not listed in Table 7-65 should be considered as reserved locations and the register contents should not be modified.
Offset | Acronym | Register Name | Section |
---|---|---|---|
196h | ALGORITHM_STATE | Current Algorithm State Register | Section 7.8.5.1 |
19Ch | FG_SPEED_FDBK | FG Speed Feedback Register | Section 7.8.5.2 |
40Eh | BUS_CURRENT | Calculated DC Bus Current Register | Section 7.8.5.3 |
43Ch | PHASE_CURRENT_A | Measured Current on Phase A Register | Section 7.8.5.4 |
43Eh | PHASE_CURRENT_B | Measured Current on Phase B Register | Section 7.8.5.5 |
440h | PHASE_CURRENT_C | Measured Current on Phase C Register | Section 7.8.5.6 |
450h | CSA_GAIN_FEEDBACK | CSA Gain Register | Section 7.8.5.7 |
458h | VOLTAGE_GAIN_FEEDBACK | Voltage Gain Register | Section 7.8.5.8 |
45Ch | VM_VOLTAGE | VM Voltage Register | Section 7.8.5.9 |
460h | PHASE_VOLTAGE_VA | Phase A Voltage Register | Section 7.8.5.10 |
462h | PHASE_VOLTAGE_VB | Phase B Voltage Register | Section 7.8.5.11 |
464h | PHASE_VOLTAGE_VC | Phase C Voltage Register | Section 7.8.5.12 |
4AAh | SIN_COMMUTATION_ANGLE | Sine of Commutation Angle | Section 7.8.5.13 |
4ACh | COS_COMMUTATION_ANGLE | Cosine of Commutation Angle | Section 7.8.5.14 |
4CCh | IALPHA | IALPHA Current Register | Section 7.8.5.15 |
4CEh | IBETA | IBETA Current Register | Section 7.8.5.16 |
4D0h | VALPHA | VALPHA Voltage Register | Section 7.8.5.17 |
4D2h | VBETA | VBETA Voltage Register | Section 7.8.5.18 |
4DCh | ID | Measured d-axis Current Register | Section 7.8.5.19 |
4DEh | IQ | Measured q-axis Current Register | Section 7.8.5.20 |
4E0h | VD | VD Voltage Register | Section 7.8.5.21 |
4E2h | VQ | VQ Voltage Register | Section 7.8.5.22 |
51Ah | IQ_REF_ROTOR_ALIGN | Align Current Reference | Section 7.8.5.23 |
532h | SPEED_REF_OPEN_LOOP | Open Loop Speed Register | Section 7.8.5.24 |
542h | IQ_REF_OPEN_LOOP | Open Loop Current Reference | Section 7.8.5.25 |
5D0h | SPEED_REF_CLOSED_LOOP | Speed Reference Register | Section 7.8.5.26 |
60Ah | ID_REF_CLOSED_LOOP | Reference for d-axis Current loop Register | Section 7.8.5.27 |
60Ch | IQ_REF_CLOSED_LOOP | Reference q-axis for Current loop Register | Section 7.8.5.28 |
6B0h | ISD_STATE | ISD State Register | Section 7.8.5.29 |
6BAh | ISD_SPEED | ISD Speed Register | Section 7.8.5.30 |
6E4h | IPD_STATE | IPD State Register | Section 7.8.5.31 |
71Ah | IPD_ANGLE | Calculated IPD Angle Register | Section 7.8.5.32 |
75Ch | ED | Estimated BEMF EQ Register | Section 7.8.5.33 |
75Eh | EQ | Estimated BEMF ED Register | Section 7.8.5.34 |
76Eh | SPEED_FDBK | Speed Feedback Register | Section 7.8.5.35 |
774h | THETA_EST | Estimated rotor Position Register | Section 7.8.5.36 |
Complex bit access types are encoded to fit into small table cells. Table 7-66 shows the codes that are used for access types in this section.
Access Type | Code | Description |
---|---|---|
Read Type | ||
R | R | Read |
Reset or Default Value | ||
-n | Value after reset or the default value |
ALGORITHM_STATE is shown in Table 7-67.
Return to the Summary Table.
Current Algorithm State Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | ALGORITHM_STATE | R | 0h | 16-bit value indicating current state of device
0h = MOTOR_IDLE 1h = MOTOR_ISD 2h = MOTOR_TRISTATE 3h = MOTOR_BRAKE_ON_START 4h = MOTOR_IPD 5h = MOTOR_SLOW_FIRST_CYCLE 6h = MOTOR_ALIGN 7h = MOTOR_OPEN_LOOP 8h = MOTOR_CLOSED_LOOP_UNALIGNED 9h = MOTOR_CLOSED_LOOP_ALIGNED Ah = MOTOR_CLOSED_LOOP_ACTIVE_BRAKING Bh = MOTOR_SOFT_STOP Ch = MOTOR_RECIRCULATE_STOP Dh = MOTOR_BRAKE_ON_STOP Eh = MOTOR_FAULT Fh = MOTOR_MPET_MOTOR_STOP_CHECK 10h = MOTOR_MPET_MOTOR_STOP_WAIT 11h = MOTOR_MPET_MOTOR_BRAKE 12h = MOTOR_MPET_ALGORITHM_PARAMETERS_INIT 13h = MOTOR_MPET_RL_MEASURE 14h = MOTOR_MPET_KE_MEASURE 15h = MOTOR_MPET_STALL_CURRENT_MEASURE 16h = MOTOR_MPET_TORQUE_MODE 17h = MOTOR_MPET_DONE 18h = MOTOR_MPET_FAULT |
FG_SPEED_FDBK is shown in Table 7-68.
Return to the Summary Table.
Speed Feedback from FG
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | FG_SPEED_FDBK | R | 0h | 32-bit unsigned value indicating absolute value of estimated rotor speed Estimated Speed = (FG_SPEED_FDBK / 227)*MAXIMUM_SPEED_HZ |
BUS_CURRENT is shown in Table 7-69.
Return to the Summary Table.
Calculated Supply Current Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | BUS_CURRENT | R | 0h | 32-bit signed value indicating bus current. Negative value is represented in two's complement IBus = (BUS_CURRENT / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
PHASE_CURRENT_A is shown in Table 7-70.
Return to the Summary Table.
Measured current on Phase A Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | PHASE_CURRENT_A | R | 0h | 32-bit signed value indicating measured current on Phase A. Negative value is represented in two's complement Ia = (PHASE_CURRENT_A / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
PHASE_CURRENT_B is shown in Table 7-71.
Return to the Summary Table.
Measured current on Phase B Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | PHASE_CURRENT_B | R | 0h | 32-bit signed value indicating measured current on Phase B. Negative value is represented in two's complement IB = (PHASE_CURRENT_B / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
PHASE_CURRENT_C is shown in Table 7-72.
Return to the Summary Table.
Measured current on Phase C Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | PHASE_CURRENT_C | R | 0h | 32-bit signed value indicating measured current on Phase C. Negative value is represented in two's complement IC = (PHASE_CURRENT_C / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
CSA_GAIN_FEEDBACK is shown in Table 7-73.
Return to the Summary Table.
CSA Gain Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | CSA_GAIN_FEEDBACK | R | 0h | 16-bit value indicating current sense gain
0h = 40V/V 1h = 20V/V 2h = 10V/V 3h = 5V/V |
VOLTAGE_GAIN_FEEDBACK is shown in Table 7-74.
Return to the Summary Table.
Voltage Gain Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | VOLTAGE_GAIN_FEEDBACK | R | 0h | 16-bit value indicating voltage gain
0h = 15V 1h = 30V 2h = 60V |
VM_VOLTAGE is shown in Table 7-75.
Return to the Summary Table.
Supply voltage register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | VM_VOLTAGE | R | 0h | 32-bit value indicating dc bus voltage DC Bus Voltage = VM_VOLTAGE * 60 / 227 |
PHASE_VOLTAGE_VA is shown in Table 7-76.
Return to the Summary Table.
Phase A Voltage Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | PHASE_VOLTAGE_VA | R | 0h | 32-bit value indicating Phase Voltage Va during ISD Phase A voltage = PHASE_VOLTAGE_VA * 60 / (sqrt(3) * 227) |
PHASE_VOLTAGE_VB is shown in Table 7-77.
Return to the Summary Table.
Phase B Voltage Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | PHASE_VOLTAGE_VB | R | 0h | 32-bit value indicating Phase Voltage Vb during ISD Phase B voltage = PHASE_VOLTAGE_VB * 60 / (sqrt(3) * 227) |
PHASE_VOLTAGE_VC is shown in Table 7-78.
Return to the Summary Table.
Phase C Voltage Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
2 | PHASE_VOLTAGE_VC | R | 0h | 32-bit value indicating Phase Voltage Vc during ISD Phase C voltage = PHASE_VOLTAGE_VC * 60 / (sqrt(3) * 227) |
1-0 | RESERVED | R | 0h |
SIN_COMMUTATION_ANGLE is shown in Table 7-79.
Return to the Summary Table.
Sine of Commutation Angle
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | SIN_COMMUTATION_ANGLE | R | 0h | 32-bit signed value indicating sine of commutation Angle. Negative value is represented in two's complement SinCommutationAngle = (SIN_COMMUTATION_ANGLE / 227) |
COS_COMMUTATION_ANGLE is shown in Table 7-80.
Return to the Summary Table.
Cosine of Commutation Angle
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | COS_COMMUTATION_ANGLE | R | 0h | 32-bit signed value indicating cosine of commutation Angle. Negative value is represented in two's complement CosCommutationAngle = (COS_COMMUTATION_ANGLE / 227) |
IALPHA is shown in Table 7-81.
Return to the Summary Table.
IALPHA Current Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | IALPHA | R | 0h | 32-bit signed value indicating calculated IALPHA. Negative value is represented in two's complement IAlpha = (IALPHA / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
IBETA is shown in Table 7-82.
Return to the Summary Table.
IBETA Current Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | IBETA | R | 0h | 32-bit signed value indicating calculated IBETA. Negative value is represented in two's complement IBeta = (IBETA / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
VALPHA is shown in Table 7-83.
Return to the Summary Table.
VALPHA Voltage Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | VALPHA | R | 0h | 32-bit signed value indicating calculated VALPHA. Negative value is represented in two's complement VAlpha = (VALPHA / 227) * 60 / sqrt(3) |
VBETA is shown in Table 7-84.
Return to the Summary Table.
VBETA Voltage Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | VBETA | R | 0h | 32-bit signed value indicating calculated VBETA. Negative value is represented in two's complement VBeta = (VBETA / 227) * 60 / sqrt(3) |
ID is shown in Table 7-85.
Return to the Summary Table.
Measured d-axis Current Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | ID | R | 0h | 32-bit signed value indicating estimated Id. Negative value is represented in two's complement Id = (ID / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
IQ is shown in Table 7-86.
Return to the Summary Table.
Measured q-axis Current Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | IQ | R | 0h | 32-bit signed value indicating estimated Iq. Negative value is represented in two's complement Iq = (IQ / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
VD is shown in Table 7-87.
Return to the Summary Table.
VD Voltage Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | VD | R | 0h | 32-bit signed value indicating applied Vd. Negative value is represented in two's complement Vd = (VD / 227) * 60 / sqrt(3) |
VQ is shown in Table 7-88.
Return to the Summary Table.
VQ Voltage Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | VQ | R | 0h | 32-bit signed value indicating applied Vq. Negative value is represented in two's complement Vq = (VQ / 227) * 60 / sqrt(3) |
IQ_REF_ROTOR_ALIGN is shown in Table 7-89.
Return to the Summary Table.
Align Current Reference
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | IQ_REF_ROTOR_ALIGN | R | 0h | 32-bit signed value indicating Align Current Reference. Negative value is represented in two's complement IqRefRotorAlign = (IQ_REF_ROTOR_ALIGN / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
SPEED_REF_OPEN_LOOP is shown in Table 7-90.
Return to the Summary Table.
Speed at which motor transitions to close loop
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | SPEED_REF_OPEN_LOOP | R | 0h | 32-bit signed value indicating Open Loop Speed. The value is positive for OUTA-OUTB-OUTC and Negative and represented in two's complement for OUTA-OUTC-OUTB OpenLoopSpeedRef = (SPEED_REF_OPEN_LOOP / 227) * max_Speed- In Hz |
IQ_REF_OPEN_LOOP is shown in Table 7-91.
Return to the Summary Table.
Open Loop Current Reference
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | IQ_REF_OPEN_LOOP | R | 0h | 32-bit signed value indicating Open Loop Current Reference. Negative value is represented in two's complement IqRefOpenLoop = (IQ_REF_OPEN_LOOP / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
SPEED_REF_CLOSED_LOOP is shown in Table 7-92.
Return to the Summary Table.
Speed Reference Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | SPEED_REF_CLOSED_LOOP | R | 0h | 32-bit signed value indicating reference for closed loop. Negative and represented in two's complement In Speed Control mode, Speed Reference in closed loop (Hz) = (SPEED_REF_CLOSED_LOOP/ 227) * MAX_SPEED (Hz) In Power Control mode, Power Reference in closed loop (watts ) = (SPEED_REF_CLOSED_LOOP/ 227) * MAX_POWER (Watts) In Current Control mode, IQ current reference in closed loop (A) = (SPEED_REF_CLOSED_LOOP / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
ID_REF_CLOSED_LOOP is shown in Table 7-93.
Return to the Summary Table.
Reference for Current Loop Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | ID_REF_CLOSED_LOOP | R | 0h | 32-bit signed value indicating Id_ref for flux loop. Negative value is represented in two's complement IdRefClosedLoop = (ID_REF_CLOSED_LOOP / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
IQ_REF_CLOSED_LOOP is shown in Table 7-94.
Return to the Summary Table.
Reference for Current Loop Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | IQ_REF_CLOSED_LOOP | R | 0h | 32-bit signed value indicating Iq_ref for torque loop. Negative value is represented in two's complement IqRefClosedLoop = (IQ_REF_CLOSED_LOOP / 227) * Base_Current/(2CSA_GAIN_FEEDBACK) |
ISD_STATE is shown in Table 7-95.
Return to the Summary Table.
ISD state Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | ISD_STATE | R | 0h | 16-bit value indicating current ISD state
0h = ISD_INIT 1h = ISD_MOTOR_STOP_CHECK 2h = ISD_ESTIM_INIT 3h = ISD_RUN_MOTOR_CHECK 4h = ISD_MOTOR_DIRECTION_CHECK 5h = ISD_COMPLETE 6h = ISD_FAULT |
ISD_SPEED is shown in Table 7-96.
Return to the Summary Table.
ISD Speed Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | ISD_SPEED | R | 0h | 32-bit value indicating calculated absolute speed during ISD state Isd speed = (ISD_SPEED / 227) * max_Speed- In Hz |
IPD_STATE is shown in Table 7-97.
Return to the Summary Table.
IPD state Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | IPD_STATE | R | 0h | 16-bit value indicating current IPD state
0h = IPD_INIT 1h = IPD_VECTOR_CONFIG 2h = IPD_RUN 3h = IPD_SLOW_RISE_CLOCK 4h = IPD_SLOW_FALL_CLOCK 5h = IPD_WAIT_CURRENT_DECAY 6h = IPD_GET_TIMES 7h = IPD_SET_NEXT_VECTOR 8h = IPD_CALC_SECTOR_RISE 9h = IPD_CALC_ROTOR_POSITION Ah = IPD_CALC_ANGLE Bh = IPD_COMPLETE Ch = IPD_FAULT |
IPD_ANGLE is shown in Table 7-98.
Return to the Summary Table.
Calculated IPD Angle Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | IPD_ANGLE | R | 0h | 32-bit value indicating measured IPD angle IpdAngle = (IPD_ANGLE / 227) * 360 (Degree) |
ED is shown in Table 7-99.
Return to the Summary Table.
Estimated BEMF EQ Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | ED | R | 0h | 32-bit signed value indicating estimated ED. Negative value is represented in two's complement Ed = (ED / 227) * 60 / sqrt(3) |
EQ is shown in Table 7-100.
Return to the Summary Table.
Estimated BEMF ED Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | EQ | R | 0h | 32-bit signed value indicating estimated EQ. Negative value is represented in two's complement Eq = (EQ / 227) * 60 / sqrt(3) |
SPEED_FDBK is shown in Table 7-101.
Return to the Summary Table.
Speed Feedback Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | SPEED_FDBK | R | 0h | 32-bit signed value indicating estimated rotor speed. The value is positive for OUTA-OUTB-OUTC and Negative and represented in two's complement for OUTA-OUTC-OUTB Estimated speed = (SPEED_FDBK / 227)*MAXIMUM_SPEED_HZ |
THETA_EST is shown in Table 7-102.
Return to the Summary Table.
Estimated rotor Position Register
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | THETA_EST | R | 0h | 32-bit signed value indicating estimated rotor angle. Negative value is represented in two's complement Estimated angle = (THETA_EST / 227)*360 (Degree) |