Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/12/02 09:10
Read: times


 
#30629 - Passing a string to an LCD
Hi

I write a program as follows,

org 00h
.... ;LCD initialising routines
...
...

mov r1,#(message-loop)
start:
mov a,r1
movc a,@a+pc
loop:
inc r1
acall write_lcd
acall delay
jnz start
out:
ajmp out

message:
db 'hello',0

write_lcd:
setb en
-------
-------
-------
ret
delay:
----
----
----
ret

When I down load the same into the microcontroller and run it, it reads the first letter namely 'h' , the cursor moves to the next position and then executions just stops!.The next letters are not read.
I am using a single line compiler, at89c51 microcontroller, and a 16*1 LCD module.

Have I missed out something?

Regards
Pramod

List of 11 messages in thread
TopicAuthorDate
Passing a string to an LCD            01/01/70 00:00      
RE: Passing a string to an LCD            01/01/70 00:00      
RE: Passing a string to an LCD            01/01/70 00:00      
RE: Passing a string to an LCD            01/01/70 00:00      
RE: Passing a string to an LCD            01/01/70 00:00      
RE: Passing a string to an LCD            01/01/70 00:00      
RE: Passing a string to an LCD..Thanks,            01/01/70 00:00      
RE: Passing a string to an LCD            01/01/70 00:00      
RE: Passing a string to an LCD..Thanks,            01/01/70 00:00      
RE: Passing a string to an LCD..0 test            01/01/70 00:00      
RE: Passing a string to an LCD..Solved!            01/01/70 00:00      

Back to Subject List