SLAAEQ8 February 2025 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1 , MSPM0C1105 , MSPM0C1106 , MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3518 , MSPM0G3518-Q1 , MSPM0G3519 , MSPM0G3519-Q1 , MSPM0H3216 , MSPM0L1117 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1
In this application note, use DRV8847 to control two coils, and each coil controls the optical machine to vibrate on the X-axis and Y-axis, respectively. By controlling the vibration intensity and phase of each coil, DRV8847 can control the vibration direction and distance of the optical machine in the X-Y plane.
DRV8847 is a dual H-bridge motor driver with current regulation and independent half-bridge con. Figure 1-1 is two groups of PWM waveform signals that using to drive two coils. For the procedure that DRV8847 processes these PWM signals, refer to DRV8847 block diagram and DRV8847 Dual H-Bridge Motor Driver data sheet.
Depending on the device selection, there are multiple ways to generate the above PWM waveform. The main peripherals used include Timer, Event and GPIO. Table 1-1 is the introduction and peripherals used of different methods. For detailed description, please refer to each method's section.
| Method | Peripherals | MSPM0 Device Support | Description |
|---|---|---|---|
| PWM | Timer * 4 | MSPM0 L and G series | Hardware method. |
| PWM and GPIO | Timer *3 GPIO * 1 |
MSPM0 C series | Hardware and software mixed control. |
| Timer and GPIO | Timer * 1 GPIO * 4 |
MSPM0 C, L and G series | Software method, high CPU clock is better for precise control. |