8051 lcd proteus
I m using proteus 6.9 with keil to develop a 51 base LCD driver.
I hv written the code and it displays strings and letters etc fine.
problm arises whn i try to roll it to the right.As I saw it in the data sheets,the code to move the whole display right (w/o changing DDRAM data) is 0x1C or 0x1E.
i hv put a simple loop like
for(i=0;i<16;i++)
{
LCD_out(0,0x1C);
} //where LCD_out is the fn to call with (char type,char val),type=0,thn its
//command type=1 then data
so i xpect it to shift 15 times to the right on LCD,but its shifting to the left instead
I tried with the code 0x18 and the same left shift.
i m using 16x2 LCD and 80C52 @ 24 MHz..init in proteus has been done ok.
can anyone throw some light?