toto_na16
Member level 1
i want to make a incrementing output off number from 0-9 on 7-seg but i got unexpected output
the code :
and i have attached proteus simulation file
so i would be thankful if you helped me :|
the code :
Code:
void main(){
char x[10] = {192,294,164,176,153,146,30,248,128,152};
char i=0;
TRISD = 0x00;
while (1){
PORTD = x [i];
i= i +1;
if (i>=20)
i =0 ;
delay_ms(1000);
}
}
and i have attached proteus simulation file
so i would be thankful if you helped me :|