Hi all I need help from you in my project i have to display the voltage on seven segment display. iam using 89c51 & keil software I connected 3 number seven segment displays to the PORT2 by using 74LS373 latches . Latch enable signals were giveing from PORT3. iam using this code sbit c1=P3^0; sbit c2=P3^1; sbit c3=P3^2; s1,s2,s3=data /*voltage=4.57v*/ while(1) { P2=s1; /*P2=4*/ c1=1; /* Latch enable*/ Delay(100); c1=0; /* Latch disable*/ P2=s2; /*P2=5*/ c2=1; Delay(100); c2=0; P2=s3; /*P2=7*/ c3=1; Delay(100); c3=0; } In the first loop it is showing correct values but in the second time loop it showing interchanged values on the display. Iam using ADC804+89c51+74LS373(3 numbers) +7 seven segment displays(3 numbers) thank you regards nari