| ??? 10/15/01 19:50 Read: times |
#15705 - RE: Converting my o/p to drive LCD display |
I have tried some code but I cannot understand why I am getting the results I seem to be getting.
If I:- mov dptr,#TABLE it gets me to the top of the table. Not really what I want. So I have a value in the the acc. First save it then:- loop: MOVC A,@A+DPTR 'get a character JZ exit 'jump if acc 0 to exit LCALL WRITE_TEXT 'write it to the port INC DPTR 'get next char CLR A 'clear acc for next character SJMP loop 'loop back to get a character Thats how I think it should work but the LCD display seems to run away at great speed, show garbage and what ever. The table looks like this:- table: DB "TX1240.0",0h DB "TX1240.5",0h DB "TX1241.0",0h DB "TX1241.5",0h DB "TX1242.0",0h DB "TX1242.5",0h DB "TX1243.0",0h DB "TX1243.5",0h DB "TX1244.0",0h and so on... I have read the instruction set but now i'm stuck??? If I had some code that works at least I could try it and understand why it is hapening:) From the very unchilled... Neil Austin |



