CD4504B or similar ltspice simulation model

Papabravo

Joined Feb 24, 2006
21,225
Hi all, i am looking to see if someone has a level shifter model that can be used to boost a 5V pwm to 15V pwm
Sure, I have one.
U1, U2 & U3 generate a 5V PWM signal that samples the sine wave. U4 is the level shifter which drives the gate of a MOSFET. the output of the MOSFET swings between 0v and +20V DC. U% is a lowpass filter that recovers the sinewave.
1665622202654.png
Is that what you were looking for?
Note that U3 can do the comparison and the level shifting.
ETA: Note the inversion and phase lag between input and output
Verified that for U6, H is the DC gain of the 2nd Order Lowpass filter
 
Last edited:
Top