inductor 1107 to calculate current through inductor 1107 a person skilled in the art will recognize that some or all of the processing defined for the adc 1120 and digital calculation process 1122 may be implemented via analog signals sampled analog signals or digital signals and any combination thereof the adc output signal 1121 can be a parallel digital word a digital bit stream or a series of sampled analog voltages or currents referring now to fig1 a digital pulse width modulation generator 1201 according to the prior art includes a pulse width data input 1202 a clock input 1203 a multi bit counter 1209 a counter output 1204 three data comparators 1205 1212 and 1218 three data comparator outputs 1206 1213 and 1219 two rs flip flops 1207 and 1214 a data constant of one 1216 a data constant of one output 1217 a maximum count constant 1210 a maximum count output 1211 a pwm output 1208 and a pwm clock output 1215 assuming that the multi bit counter 1209 and rs flip flops 1207 and 1214 have been reset the initial state of the system is that counter output 1204 is at zero pwm output 1208 is asserted and pwm clock output is asserted applying a continuous stream of clock pulses at clock input 1203 results in the counter output to increment by a value of one on each clock pulse this process continues until data comparator 1205 detects that counter output 1204 is equal to the.