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 08:48
Read: times


 
#20718 - new info on LCD prob, please help!
Ok, so I decided to manually initialize the LCD.
First I connected LEDs (with a 220ohm resistor inline with it) to ever data and control line that the LCD uses, removed the LCD and entered the bootstrap. Then I manuall went through the initialization sequence, which for your info is the following:
W P3 80 ; 80 turns on bit7 (EN)
W P1 38 ; turns on bit 3,4,5
W P3 00 ; turn off EN, LCD should read P1

W P3 80
W P1 0E ; turn on bit 1,2,3
W P3 00

W P3 80
W P1 06 ; turn on bit 1,2
W P3 00

(W writes to port, P* is the port number, then the value)
I got this from the LCD tutorial.

well, I watched the LEDs as I manually wrote out each line and sent it. It did it perfectly, lighting up the correct LEDs every time.
I figured, this way I could avoid any timing issues since manually typing its a lot slower than how the chip does it.

So I pulled out the LEDs and plugged in the LCD(which, btw, i jsut tested on somethign else and is perfectly working)
And no matter if the resistors are there or not, or what code I send to it, it always looks like this:
####################
####################
( # being solid blocks of pixels)

Oh, one last thing, I'm still unsure of the way my crystal is hooked up (check out 2nd reply for more info)

Again, any informationm anyone could give me would be awesome. Thanks!

Phil

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