sir this is my analysis:
1.
--> if i write...
unsigned char k=48,j=0;
and then (returning value from Read function is char type)
j = Read(x);
then it shows 10 complete blocks.
now when i write lcd_command(0x38) and lcd_command(0x0E) before for loop, it is showing the same problem of 4 characters repeated... and the characters it is showing are (chinese type) special characters...
--> if i write...
unsigned char k=48,j=0;
and then (returning value from Read function is char type)
j = Read(x);
lcd_data(j+k);
then it shows //////////
--> if i write...
unsigned char k=48,j=0;
and then (returning value from Read function is int type)
j = Read(x);
then it shows 10 complete blocks.
--> if i write...
unsigned char k=48,j=0;
and then (returning value from Read function is int type)
j = Read(x);
lcd_data(j+k);
then it shows //////////
--> if i write...
unsigned char k=48;
int j;
and then (returning value from Read function is char type)
j = Read(x);
lcd_data(j+k);
then it shows //////////
--> if i write...
unsigned char k=48;
int j;
and then (returning value from Read function is char type)
j = Read(x);
then it shows 10 complete blocks
--> if i write...
unsigned char k=48;
int j;
and then (returning value from Read function is int type)
j = Read(x);
then it shows 10 complete blocks
--> if i write...
unsigned char k=48;
int j;
and then (returning value from Read function is int type)
j = Read(x);
lcd_data(j+k);
then it shows //////////
2. can you recheck the nack function??
last line of it?
sda=1;
scl=1;
scl=0;
scl=1; //this should be sda=0 ?????
now how to bring the data 0123456789 on lcd???