Skip to main contentModule output
Source - PwmMapper
- Full output path: optional ΣΔ then duty.
- SigmaDelta
- First-order sigma-delta modulator (PCM → single-bit decision → duty).
- SigmaDelta2ndOrder
- Second-order sigma-delta modulator (MASH 1-1 / dual error integrator).
- DutyMode
- How PCM is converted to a PWM compare value.
- limit_bus
- Soft limiter before mix bus.
- pcm_to_dac_u8
- Convert signed 8-bit PCM (-128..=127) to unsigned 8-bit DAC sample (0..=255).
- pcm_to_dac_u12
- Convert signed 8-bit PCM (-128..=127) to unsigned 12-bit DAC sample (0..=4095, e.g. STM32 DAC1).
- pcm_to_dac_u16
- Convert signed 8-bit PCM (-128..=127) to unsigned 16-bit DAC sample (0..=65535).
- pcm_to_duty
- Map shaped PCM to PWM duty in
1..period-1. - pcm_to_i16
- Convert signed 8-bit PCM (-128..=127) to signed 16-bit PCM (-32768..=32767).
- pcm_to_i32
- Convert signed 8-bit PCM (-128..=127) to signed 32-bit PCM (24-bit aligned).