Hi, I want to modify a program that was written long ago. I would like to give the output from hardware as user input. Here, user input deals with current at maximum duty cycle allways. My task is to control the current according to the user input. Let say, if user wants 2kA as O/P and i should only activate my PWM signal until for 2KA and rest should be in sleep. What i wonder is PWM is only represent the voltage cycles and how can then i control the current at full duty cycle. Can someone help me out.