| ??? 12/22/00 01:49 Read: times |
#7484 - RE: LCD not initialising with P1 as Data pin |
i have changed the line outportb(Data, Ins) to P1 = Ins; in my c file it is working alright. my compiler generated the following asm code for C code line Ins is parameter to Put_Ins function "Put_Ins(unsigned char Ins)" #define Data 0x90 // outportb(Data,Ins); push bp mov bp,sp mov a,bp add a,#0fdh mov r1,a mov a,@r1 push acc clr a push acc mov a,#090h push acc clr a push acc lcall _outportb mov a,sp clr c subb a,#4 mov sp,a Whether this code is correct or compiler has bug ? i am not good in assembly language thanks to all Haribabu. |
| Topic | Author | Date |
| LCD not initialising with P1 as Data pin | 01/01/70 00:00 | |
| RE: LCD not initialising with P1 as Data pin | 01/01/70 00:00 | |
| RE: LCD not initialising with P1 as Data pin | 01/01/70 00:00 | |
| RE: LCD not initialising with P1 as Data pin | 01/01/70 00:00 | |
RE: LCD not initialising with P1 as Data pin | 01/01/70 00:00 |



