I have to measure voltage (0- 500v) and current (0 to 5a) using a PIC microcontroller. Since it takes 0 to 5v, how do i bring the voltage and current down linearly such that.. if i measure 5v, it is equal to 500v , 4=400v, 3=300v etc.. n the same goes for the current. plz help :)