I am designing a 311V to 48V buck converter in LTSpice using ideal components for now.
I am using a 48V/311V = 15.434% duty cycle in V2 which controls S1:
This is the simulation output:
Below is the inductor current and downstream switch voltage at steady-state:
I don't understand why the output voltage is ~52.1V instead of 48V. I tried different SPICE directives for the switch from various tutorials online but I get the same result. I also tried decreasing the max time step to 1u, to no avail.
Any idea why this is happening? Thanks