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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/12/02 23:19
Read: times


 
#20754 - RE: LCD now manually works.
Ok, I've added 220ohm resistors to every lcd line and now I'm alble to manually initialize teh LCD.. that is, thruogh the bootstrap.
However, no matter what code I send to the chip, it seems to always keep port1 as
(0)01101110(7) and EN=1 and RS=RW=0
1 = 5.15v, 0 = 0.06v

I programmed it the following:
;p3.7=EN, p3.6=RW, p3.5=RS
org 0
ljmp main
main:
mov p1,00h ;(00000000)

mov p3,80h ;(00000001)
mov p1,38h ;(00011100)
mov p3,00h ;(00000000)
idle_here:
jmp idle_here
end

after running this, the ports were like I mentioned above.
I verified the code, and even double checked it with the HEX file. It all seems perfect.
Maybe its a stupid code error, but I just can't seem to make this work right.




List of 18 messages in thread
TopicAuthorDate
How to test a 8051, please help me!            01/01/70 00:00      
RE: How to test a 8051, please help me!            01/01/70 00:00      
RE: How to test a 8051, please help me!            01/01/70 00:00      
RE: How to test a 8051, please help me!            01/01/70 00:00      
RE: How to test a 8051, Erik!            01/01/70 00:00      
RE: How to test a 8051            01/01/70 00:00      
RE: How to test a 8051, please help me!            01/01/70 00:00      
new info on LCD prob, please help!            01/01/70 00:00      
RE: How to test a 8051, please help me!            01/01/70 00:00      
RE: How to test a 8051, please Aman            01/01/70 00:00      
RE: new info on LCD prob, Philip            01/01/70 00:00      
RE: new info on LCD prob, solid blocks            01/01/70 00:00      
RE: new info on LCD prob, Philip            01/01/70 00:00      
RE: new info on LCD prob, Philip            01/01/70 00:00      
RE: LCD now manually works.            01/01/70 00:00      
RE: How to test a 8051, Erik!            01/01/70 00:00      
RE: How to test a 8051, Aman            01/01/70 00:00      
KEYPAD            01/01/70 00:00      

Back to Subject List