SLDS272 September 2024 DRV81620-Q1
ADVANCE INFORMATION
The device has two independent integrated PWM generators. Each PWM generator can be assigned to one or more channels, and can be programmed with a different duty cycle and frequency.
Both PWM generators refer to a base frequency fINT generated by an internal oscillator. This base frequency can be adjusted using FPWM bits as described below.
FPWM Bits | Delta to fINT |
0000b | Reserved |
0001b | -37.2% |
0010b | -31.9% |
0011b | -26.9% |
0100b | -21% |
0101b | -15.5% |
0110b | -10.9% |
0111b | -5.8% |
1000b | - |
1001b | +4.3% |
1010b | +8.9% |
1011b | +14% |
1100b | +19.5% |
1101b | +25.6% |
1110b | +32.4% |
1111b | +40% |
For each PWM generator, four parameters can be set:
Duty cycle (bits DC0 for PWM Generator 0)
8 bits are available to achieve 0.39% duty cycle resolution
When the micro-controller programs a new duty cycle, the PWM generator waits until the previous cycleis completed before using the new duty cycle (this happens also when the duty cycle is either 0% or100% - the new duty cycle is taken with the next PWM cycle)
The maximum duty cycle achievable is 99.61% (DC0 set to 11111111b). It is possible toachieve 100% by setting FREQ0 to 11b.
Frequency (bits FREQ0, FREQ1, FCTR0 and FCTR1 select the divider for fINT to achieve the needed duty cycle)
FCTR0 | FREQ0 | PWM Frequency |
0b | 00b | fINT/1024 (corresponding to 100 Hz) |
0b | 01b | fINT/512 (corresponding to 200 Hz) |
0b | 10b | fINT/256 (corresponding to 400 Hz) |
1b | 00b | fINT/128 (corresponding to 800 Hz) |
1b | 01b | fINT/64 (corresponding to 1600 Hz) |
1b | 10b | fINT/51.2 (corresponding to 2000 Hz) |
FCTR1 | FREQ1 | PWM Frequency |
0b | 00b | fINT/1024 (corresponding to 100 Hz) |
0b | 01b | fINT/512 (corresponding to 200 Hz) |
0b | 10b | fINT/256 (corresponding to 400 Hz) |
1b | 00b | fINT/128 (corresponding to 800 Hz) |
1b | 01b | fINT/64 (corresponding to 1600 Hz) |
1b | 10b | fINT/51.2 (corresponding to 2000 Hz) |
Channel output control and mapping registers PWM_OUT and MAP_PWM
Any channel can be mapped to each PWM Generator
Together with 2 parallel input it is possible to have 4 independent PWM groups of channels with loweffort from the point of view of micro-controller resources and SPI data traffic.
Figure 7-11 expands the concept shown in adding the PWM Generators.