Implementation of a method of numerical integration of average voltages atthe integration stepfor designing microcontroller models of electrotechnical systems