At the moment I'm simulating a basic buck converter circuit and would like to be able to vary the duty cycle given to the circuit by a microcontroller (switching a MOSFET).
I'm simulating the micro using a pulsed voltage source, and I want to vary the tOn parameter but am not sure how. I've tried placing {dutyCyc} in the tOn window, and adding .param dutyCyc=value*time to the circuit, which doesn't work.
I've seen suggestions on stepping through a list of values, but that performed multiple simulations as opposed to a single one with an increasing duty cycle over time.
What am I missing?