SLVSHO5 April 2024 DRV8215
PRODUCTION DATA
Table 8-21 lists the memory-mapped registers for the DRV8215_CTRL registers. All register offset addresses not listed in Table 8-21 should be considered as reserved locations and the register contents should not be modified.
Offset | Acronym | Register Name | Section |
---|---|---|---|
Eh | REG_CTRL0 | Regulation control registers (1/3). | Section 8.3.1 |
Fh | REG_CTRL1 | Regulation control registers (2/3). | Section 8.3.2 |
10h | REG_CTRL2 | Regulation control registers (3/3). | Section 8.3.3 |
11h | RC_CTRL0 | Control Registers - (1/9). | Section 8.3.4 |
12h | RC_CTRL1 | Control Registers - (2/9). | Section 8.3.5 |
13h | RC_CTRL2 | Control Registers - (3/9). | Section 8.3.6 |
14h | RC_CTRL3 | Control Registers - (4/9). | Section 8.3.7 |
15h | RC_CTRL4 | Control Registers - (5/9). | Section 8.3.8 |
16h | RC_CTRL5 | Control Registers - (6/9). | Section 8.3.9 |
17h | RC_CTRL6 | Control Registers - (7/9). | Section 8.3.10 |
18h | RC_CTRL7 | Control Registers - (8/9). | Section 8.3.11 |
19h | RC_CTRL8 | Control Registers - (9/9). | Section 8.3.12 |
Complex bit access types are encoded to fit into small table cells. Table 8-22 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 |
REG_CTRL0 is shown in Table 8-23.
Return to the Summary Table.
Set features like Soft Start/Stop and speed scaling factor.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-6 | RSVD | R/W | 0h | Reserved. |
5 | EN_SS | R/W | 1h | Used to enable/disable soft start/stop. 1b: Target motor voltage or speed is soft-started and soft-stopped over the duration of tINRUSH time. 0b: Soft-start/stop feature is disabled. Refer to Section 7.3.6.3 for further explanation. |
4-3 | REG_CTRL | R/W | 0h | Selects the current regulation scheme (fixed off-time or cycle-by-cycle) or motor speed and voltage regulation. 00b: Fixed Off-Time Current Regulation. 01b: Cycle-By-Cycle Current Regulation. 10b: Motor speed is regulated. 11b: Motor voltage is regulated. Refer to Section 7.3.4.2 for further explanation. |
2 | PWM_FREQ | R/W | 1h | Sets the PWM frequency when bridge control is configured by INx bits (I2C_BC=1b). 0b: PWM frequency is set to 50kHz. 1b: PWM frequency is set to 25kHz. |
1-0 | W_SCALE | R/W | 3h | Scaling factor that helps in setting the target motor current ripple speed. 00b: 16 01b: 32 10b: 64 11b: 128 Refer to Section 7.3.6.2.2 for further explanation. |
REG_CTRL1 is shown in Table 8-24.
Return to the Summary Table.
Set the target motor voltage and speed for voltage and speed regulation respectively.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-0 | WSET_VSET | R/W | FFh | Sets the target motor voltage or current ripple speed. A detailed explanation is provided in Section 7.3.6.2.1. |
REG_CTRL2 is shown in Table 8-25.
Return to the Summary Table.
Set the duty cycle and cut-off frequency for output voltage filtering.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-6 | OUT_FLT | R/W | 0h | Programs the cut-off frequency of the output voltage filtering. 00b: 250Hz 01b: 500Hz 10b: 750Hz 11b: 1000Hz For best results, choose a cut-off frequency equal to a value at least 20 times lower than the PWM frequency. Eg, if you PWM at 20kHz, OUT_FLT=11b (1000Hz) is sufficient. |
5-0 | PROG_DUTY | R/W | 0h | When speed/voltage regulation is inactive and DUTY_CTRL is set to 1b, the user can write the desired PWM duty cycle to this register. The range of duty cycle is 0% (000000b) to 100% (111111b). |
RC_CTRL0 is shown in Table 8-26.
Return to the Summary Table.
Select the current mirror gain, AIPROPI.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-3 | RSVD | R/W | 1h | Reserved. |
2-0 | CS_GAIN_SEL | R/W | 0h | Used to select the current mirror gain, AIPROPI. Settings are as follows: 000b: 4 A 001b: 2 A 010b: 1 A 011b: 0.5 A 1X0b: 0.25 A 1X1b: 0.125 A Refer to Section 7.3.4.1 for further explanation. |
RC_CTRL1 is shown in Table 8-27.
Return to the Summary Table.
Reserved.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-0 | RSVD | R/W | FFh | Reserved. |
RC_CTRL2 is shown in Table 8-28.
Return to the Summary Table.
Set values of various scaling parameters.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-6 | INV_R_SCALE | R/W | 1h | Scaling factor for the INV_R parameter. 00b: INV_R_SCALE = 2 01b: INV_R_SCALE = 64 10b: INV_R_SCALE = 1024 11b: INV_R_SCALE = 8192 Refer to Section 7.3.6.2.4 for further explanation. |
5-4 | KMC_SCALE | R/W | 3h | Scaling factor for KMC parameter. 00b: KMC_SCALE = 24 x 28 01b: KMC_SCALE = 24 x 29 10b: KMC_SCALE = 24 x 212 11b: KMC_SCALE = 24 x 213 Refer to Section 7.3.6.2.5 for further explanation. |
3-0 | RSVD | R/W | 3h | Reserved. |
RC_CTRL3 is shown in Table 8-29.
Return to the Summary Table.
Set the INV_R parameter.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-0 | INV_R | R/W | 0h | User input based on motor coil resistance. INV_R = INV_R_SCALE / Motor Resistance. Must not be set to 0. Refer to Section 7.3.6.2.3 for further explanation. |
RC_CTRL4 is shown in Table 8-30.
Return to the Summary Table.
Set the KMC parameter.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-0 | KMC | R/W | 0h | Represents a proportional value of the motor back emf constant. KMC = (KV) / NR)*KMC_SCALE. Refer to Section 7.3.6.2.6 for further explanation. |
RC_CTRL5 is shown in Table 8-31.
Return to the Summary Table.
Reserved.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-0 | RSVD | R/W | 0h | Reserved. |
RC_CTRL6 is shown in Table 8-32.
Return to the Summary Table.
Reserved.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-0 | RSVD | R/W | 0h | Reserved. |
RC_CTRL7 is shown in Table 8-33.
Return to the Summary Table.
Set the proportional constant in PI control loop.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-5 | KP_DIV | R/W | 1h | Used to select a division value for calculating the actual proportional constant for the PI control loop. Actual proportional constant, KP = KP_MULT/KP_DIV. Settings are as follows: 000b: 32 001b: 64 010b: 128 011b: 256 100b: 512 101b: 16 110b: 1 |
4-0 | KP_MULT | R/W | 1h | Represents the PI loop KP constant. This is not the actual proportional constant that is fed into the gain block of the PI control loop. Rather, the actual proportional constant can be calculated using the value of this register. Actual Proportional Constant, KP = KP_MULT/KP_DIV. For example, if actual proportional constant is 0.0625, then KP_MULT can be set to 1 (00001b), and KP_DIV can be set to 16 (corresponds to 101b), hence, Actual proportional constant = 1/16 = 0.0625. |
RC_CTRL8 is shown in Table 8-34.
Return to the Summary Table.
Set the integral constant in PI control loop.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7-5 | KI_DIV | R/W | 1h | Used to select a division value for calculating the actual integral constant for the PI control loop. Actual integral constant, I = KI_MULT/KI_DIV. Settings are as follows: 000b: 32 001b: 64 010b: 128 011b: 256 100b: 512 101b: 16 110b: 1 |
4-0 | KI_MULT | R/W | 1h | Represents the PI loop KI constant. This is not the actual integral constant that is fed into the gain block of the PI control loop. Rather, the actual integral constant can be calculated using the value of this register. Actual Integral Constant, KI = KI_MULT/KI_DIV. For example, if actual integral constant is 0.90625, then KI_MULT can be set to 29 (11101b), and KI_DIV can be set to 32 (corresponds to 000b), hence, Actual integral constant = 29/32 = 0.90625. |