@Lars (Gast)
>Ich werde nur nicht schlauer. Sind das jetzt einfach PWMs, die noch ein
>paar Spielereien mehr können (Faden und so)?
"14.1 Introduction
The LED_PWM controller is primarily designed to control the intensity of
LEDs, although it can be used to
generate PWM signals for other purposes as well. It has 16 channels
which can generate independent
waveforms that can be used to drive RGB LED devices. For maximum
flexibility, the high-speed as well as the
low-speed channels can be driven from one of four high-speed/low-speed
timers. The PWM controller also has
the ability to automatically increase or decrease the duty cycle
gradually, allowing for fades without any processor
interference. To increase resolution, the LED_PWM controller is also
able to dither between two values, when a
fractional PWM value is configured."
Die PWMs können allein auf einen Wert fahren (aka LED-Fading sowie
durch Dithering die mittlere Auflösung erhöhen. Nix Sigma Delta
Modulation.
"16.1 Introduction
The Motor Control Pulse Width Modulator (MCPWM) peripheral is intended
for motor and power control. It
provides six PWM outputs that can be set up to operate in several
topologies. One common topology uses a pair
of PWM outputs driving an H-bridge to control motor rotation speed and
rotation direction.
The timing and control resources inside are allocated into two major
types of submodules: PWM timers and
PWM operators. Each PWM timer provides timing references that can either
run freely or be synced to other
timers or external sources. Each PWM operator has all necessary control
resources to generate waveform pairs
for one PWM channel. The MCPWM peripheral also contains a dedicated
capture submodule that is used in
systems where accurate timing of external events is important.
ESP32 contains two MCPWM peripherals: MCPWM0 and MCPWM1. Their control
registers are located in 4-KB
memory blocks starting at memory locations 0x3FF5E000 and 0x3FF6C000
respectively."
Die Motor-PWM hat 6 Ausgänge, womit man 3 Halbbrücken mit je 2
Transistoren ansteueren kann, das braucht man für BLDC und AC-Motoren.
Das Ganze synchronisiert und mit diversem Schnickschnack versehen.