SLLSFV1 March 2025 MCF8329A-Q1
PRODUCTION DATA
Table 8-5 lists the memory-mapped registers for the Algorithm_Control registers. All register offset addresses not listed in Table 8-5 should be considered as reserved locations and the register contents should not be modified.
| Offset | Acronym | Register Name | Section |
|---|---|---|---|
| ECh | ALGO_DEBUG1 | Algorithm Control Register | Section 8.2.1 |
| EEh | ALGO_DEBUG2 | Algorithm Control Register | Section 8.2.2 |
| F0h | CURRENT_PI | Current PI Controller used | Section 8.2.3 |
| F2h | SPEED_PI | Speed PI controller used | Section 8.2.4 |
Complex bit access types are encoded to fit into small table cells. Table 8-6 shows the codes that are used for access types in this section.
| Access Type | Code | Description |
|---|---|---|
| Read Type | ||
| R | R | Read |
| Write Type | ||
| W | W | Write |
| Reset or Default Value | ||
| -n | Value after reset or the default value | |
ALGO_DEBUG1 is shown in Figure 8-3 and described in Table 8-7.
Return to the Summary Table.
Algorithm control register for debug
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| SPEED_OVER_RIDE | DIGITAL_SPEED_CTRL | ||||||
| R/W-0h | R/W-0h | ||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| DIGITAL_SPEED_CTRL | |||||||
| R/W-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| CLOSED_LOOP_DIS | FORCE_ALIGN_EN | FORCE_SLOW_FIRST_CYCLE_EN | FORCE_IPD_EN | FORCE_ISD_EN | FORCE_ALIGN_ANGLE_SRC_SEL | RESERVED | |
| R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R-0h | |
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | |||||||
| R-0h | |||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31 | SPEED_OVER_RIDE | R/W | 0h | Use to control the reference input mode.
If OVERRIDE = 0x1, speed command can be written by the user through I2C interface irrespective of SPEED_MODE setting.
|
| 30-16 | DIGITAL_SPEED_CTRL | R/W | 0h | Reference input when OVERRIDE is set 0x1 or SPEED_MODE is set to 0x2. Reference input = (DIGITAL_SPEED_CTRL/32768 *100)% |
| 15 | CLOSED_LOOP_DIS | R/W | 0h | Use to disable closed loop operation
|
| 14 | FORCE_ALIGN_EN | R/W | 0h | Enable force align state
|
| 13 | FORCE_SLOW_FIRST_CYCLE_EN | R/W | 0h | Force Slow First Cycle Enable
|
| 12 | FORCE_IPD_EN | R/W | 0h | Force IPD Enable
|
| 11 | FORCE_ISD_EN | R/W | 0h | Force ISD enable
|
| 10 | FORCE_ALIGN_ANGLE_SRC_SEL | R/W | 0h | Force Align Angle State Source Select
|
| 9-0 | RESERVED | R | 0h | Reserved |
ALGO_DEBUG2 is shown in Figure 8-4 and described in Table 8-8.
Return to the Summary Table.
Algorithm control register for debug
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | FORCE_RECIRCULATE_STOP_SECTOR | FORCE_RECIRCULATE_STOP_EN | CURRENT_LOOP_DIS | FORCE_VD_CURRENT_LOOP_DIS | |||
| R-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | |||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| FORCE_VD_CURRENT_LOOP_DIS | |||||||
| R/W-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| FORCE_VQ_CURRENT_LOOP_DIS | |||||||
| R/W-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| FORCE_VQ_CURRENT_LOOP_DIS | MPET_CMD | RESERVED | RESERVED | MPET_KE | MPET_MECH | MPET_WRITE_SHADOW | |
| R/W-0h | W-0h | R-0h | R-0h | W-0h | W-0h | W-0h | |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31 | RESERVED | R | 0h | Reserved |
| 30-28 | FORCE_RECIRCULATE_STOP_SECTOR | R/W | 0h | Select the specific sector for recirculation stop if FORCE_RECIRCULATE_STOP_EN is set to 0x1
|
| 27 | FORCE_RECIRCULATE_STOP_EN | R/W | 0h | Enable force recirculate stop
|
| 26 | CURRENT_LOOP_DIS | R/W | 0h | Use to control the FORCE_VD_CURRENT_LOOP_DIS and FORCE_VQ_CURRENT_LOOP_DIS.
If CURRENT_LOOP_DIS = 0x1, Current loop and speed loop are disabled
|
| 25-16 | FORCE_VD_CURRENT_LOOP_DIS | R/W | 0h | Sets Vd when current loop and speed loop are disabled If CURRENT_LOOP_DIS = 0b1, then Vd is control using FORCE_VD_CURRENT_LOOP_DIS mdRef = (FORCE_VD_CURRENT_LOOP_DIS /500) if FORCE_VD_CURRENT_LOOP_DIS < 500 (FORCE_VD_CURRENT_LOOP_DIS - 1024)/500 if FORCE_VD_CURRENT_LOOP_DIS > 524 Valid values: 0 to 500 and 524 to 1024 |
| 15-6 | FORCE_VQ_CURRENT_LOOP_DIS | R/W | 0h | Sets Vq when current loop speed loop are disabled If CURRENT_LOOP_DIS = 0b1, then Vq is control using FORCE_VQ_CURRENT_LOOP_DIS mqRef = (FORCE_VQ_CURRENT_LOOP_DIS /500) if FORCE_VQ_CURRENT_LOOP_DIS < 500 (FORCE_VQ_CURRENT_LOOP_DIS - 1024)/500 if FORCE_VQ_CURRENT_LOOP_DIS > 512 Valid values: 0 to 500 and 512 to 1000 |
| 5 | MPET_CMD | W | 0h | Initiates motor parameter measurement (MPET) routine when set to 0x1 |
| 4 | RESERVED | R | 0h | Reserved |
| 3 | RESERVED | R | 0h | Reserved |
| 2 | MPET_KE | W | 0h | Enables motor BEMF constant measurement during motor parameter measurement routine (MPET)
|
| 1 | MPET_MECH | W | 0h | Enables motor mechanical parameter measurement during motor parameter measurement routine (MPET)
|
| 0 | MPET_WRITE_SHADOW | W | 0h | Write measured parameters to shadow register when set to 1 |
CURRENT_PI is shown in Figure 8-5 and described in Table 8-9.
Return to the Summary Table.
Current PI controller used
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| CURRENT_LOOP_KI | CURRENT_LOOP_KP | ||||||||||||||||||||||||||||||
| R-0h | R-0h | ||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | CURRENT_LOOP_KI | R | 0h | 10 bit value for current loop Ki Same Scaling as CURR_LOOP_KI |
| 15-0 | CURRENT_LOOP_KP | R | 0h | 10 bit value for current loop Kp Same Scaling as CURR_LOOP_KP |
SPEED_PI is shown in Figure 8-6 and described in Table 8-10.
Return to the Summary Table.
Speed PI controller used
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SPEED_LOOP_KI | SPEED_LOOP_KP | ||||||||||||||||||||||||||||||
| R-0h | R-0h | ||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | SPEED_LOOP_KI | R | 0h | 10 bit value for Speed loop Ki Same Scaling as SPD_LOOP_KI |
| 15-0 | SPEED_LOOP_KP | R | 0h | 10 bit value for Speed loop Kp Same Scaling as SPD_LOOP_KP |