Appearance
PWM Generator
Pulse-width modulation source. Compares an internal triangle/sawtooth carrier (frequency f_sw) against an input duty signal to produce a 0/A switching waveform that drives an IGBT, MOSFET, or other power switch.
Category: Sources
Ports
| Port | Kind | Signal | Notes |
|---|---|---|---|
duty | Control input | Real | |
out | Control output | Real |
Parameters
| Parameter | Type | Default | Units | Description | ID |
|---|---|---|---|---|---|
| f_sw | Number | 1000 | — | Switching (carrier) frequency in Hz | switching_frequency |
| A | Number | 1 | — | High-state output value (low state is 0) | amplitude |
| φ | Number | 0 | — | Carrier phase offset, normalised to one switching period (0..1) | phase |
| Polarity | Choice: Active high / Inverted | Active high | — | 0 = active high (out=A while duty>ramp), 1 = inverted | polarity |