I want to implement a digital controller for a switch mode power supply in Orcad pspice.
The controller will take voltages and current values as inputs and create the control signal using intelligent algorithms (state machines, digital control techniques etc).
Therefore I need a block that runs a code for processing these values (ie. C programming code).