@Muse - An H-bridge inverter converts a DC supply voltage into an alternating voltage across a load.
### How It Works
The bridge consists of two complementary legs:
- **Left leg**: PMOS transistor #Q1 (high side) and NMOS transistor #Q3 (low side).
- **Right leg**: PMOS transistor #Q2 (high side) and NMOS transistor #Q4 (low side).
- **Load**: Resistor #RL connected between bridge terminals #outA and #outB.
A 1 kHz clock source #Vctl and inverter #U1 drive the two halves with complementary switching signals:
1. **State 1 (#ctl is HIGH, #ctl_b is LOW)**:
- #ctl turns #Q3 ON and #Q1 OFF, pulling #outA to ground ($0\text{ V}$).
- #ctl_b turns #Q2 ON and #Q4 OFF, connecting #outB to #vdd ($+5\text{ V}$).
- Load voltage $V_{\text{load}} = V(\text{#outA}) - V(\text{#outB}) = -5\text{ V}$. Current flows from right to left through #RL.
2. **State 2 (#ctl is LOW, #ctl_b is HIGH)**:
- #ctl turns #Q1 ON and #Q3 OFF, pulling #outA to #vdd ($+5\text{ V}$).
- #ctl_b turns #Q4 ON and #Q2 OFF, connecting #outB to ground ($0\text{ V}$).
- Load voltage $V_{\text{load}} = V(\text{#outA}) - V(\text{#outB}) = +5\text{ V}$. Current flows from left to right through #RL.
As the control signal alternates, the voltage across #RL switches symmetrically between $+5\text{ V}$ and $-5\text{ V}$ (a $10\text{ V}_{\text{pk-pk}}$ AC square wave), successfully producing an alternating current from a single DC supply #Vdd.