thanks for the help; this is my project hardware (monitor voltage and current output proportional). The idea is to add the 0-5VDC output with pwm controlled to perform a transducer 0-5V / 0-10V / 0-10mA / 4-20mA configurable through jumpers ...

Name:  trans4_20mA_10V.JPG
Views: 38894
Size:  167.8 KB

First I start by controlling the input voltage and delivering a value similar to the output from your help ... and I will continue burning after the neurons to attack the current reading.
Try not to make it so complicated, implement a unique port to read analog signals 4-20mA (I saw the topic that the voltage drop is calculated from the resistance of 250 Ohms).
Now as soon as you finish what you offer me, I upload the program the microcontroller. regards

PD: tags that make recommendation me search similar forum topics?...

EN ESPAÑOL:
gracias por la ayuda; este es el hardware de mi proyecto (un monitor de tension y corriente con salida proporcional). La idea es sumar la salida 0-5vcc con el pwm controlado para poder realizar un transductor 0-5v / 0-10v / 0-10mA / 4-20mA configurable por intermedio de los jumper...
primero arranco controlando la tension de entrada y entregando un valor similar a la salida gracias a tu ayuda... y despues seguire quemando las neuronas para atacar la lectura de la corriente.
Quizas para no hacerla tan complicada, implemente un puerto analogico exclusivo para leer señales 4-20mA (vi el topico que se calcula la caida de tension con la resistencia de 250 Ohms).
Ahora ni bien termine lo que me propones, subo el programa del microcontrolador. Saludos

PD: con que tags me recomendas realizar la busqueda de temas similares en el foro?