i wanna write some code for a usb module to take a 5v 1a input on the mini input and output 51a on a micro output.
you know like the modules you get on ebay. but i wanna do it with the connectors on the variable outpus.
plz guide me.
Remember the difference between software (writing code) and hardware (solder components).
Next thing - 1A is more current than a standard USB port supports unless you are talking about either a USB charge plug (no USB communication - just intended as charger) or USB 3.
Anyway - you will not be able to "program" any current routing unless there is hardware circuitry for providing that current routing.