I need to invert & convert a 0-3.3v PWM signal to a 0-5v one. Is a common emitter amplifier the best way to go about this? I attempted to make one up in LTSPICE with standard 10k resister values and get some spikes during the transitions, but I don’t know if these are due to LTSPICE itself not liking square waves, or if I need to add some bypass caps/etc.
LTSPICE screenshot below. Blue is input 3.3v, green is output.