I'm using PIC 89v51 microcontroller, and i have to generate voltages from port pins of a particular port [i have used R2R ladder ckt in hardware] but the thing is i need to generate it from the microcontroller only i.e. i have taken four port pins say P2.0=V1, P2.1=V2, P2.2=V3, P2.0=V4;
So if V1=0; V2=0; V3=0; V4=1 it should display the voltage say 1v and similarly for all binary values from 0010 to 1111 it should display 2v to 15v,kindly help me in resolving this..
MEANWHILE I'll make clear that I have constructed R2R ladder circuit, but while checking the output i'm not using this circuit... I'm testing from microcontroller only..