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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/09/07 23:33
Read: times


 
#130544 - Wrong!
Responding to: ???'s previous message

Ralph, firstly, I didn't score your question. So please refrain from rambling on - it makes you appear like a person possesed.

As for research - there is so much written about interfacing to the LCDs on the internet. Have you read the datasheet on one of these devices? Have you looked at the code from the project you're describing vs the code in the tutorial? Can you see anything common?

Put simply, the write to the lcd if it is bus interfaced is something like:

mov dptr,#LCD_COMMAND ;address of the LCD on the bus -usually 8000h or suchlike
mov a,#COMMAND
movx @dptr,a

whereas being bit bashed it is something like:

clr LCD_WR ;port pin for lcd R/W
clr LCD_RS ;port pin for lcd RS
mov a,#COMMAND
mov P2,a ;assuming the lcd data pins are connected to P2
setb LCD_EN ;port pin for E
nop
clr LCD_EN


As I said, there is a plethora of information and sample code out there, you just have to look for it.

I'm surprised you got the LCD to work using switches - the switch bounce usually messes everything up. Also, if you got the LCD to work via switches, you should be well aware of the sequence of signals to operate it - thus writing some code is dead easy.



List of 44 messages in thread
TopicAuthorDate
How to create wr rd for E strobe on LCD            01/01/70 00:00      
   No research!            01/01/70 00:00      
      Wrong plenty of research            01/01/70 00:00      
         clock speed?            01/01/70 00:00      
            Erik it is 12 clocker            01/01/70 00:00      
               the question is moot ...            01/01/70 00:00      
         Wrong!            01/01/70 00:00      
            My error            01/01/70 00:00      
               Asm code            01/01/70 00:00      
                  missing boldface            01/01/70 00:00      
                  4051 has no port 0            01/01/70 00:00      
                     Tell me something I don't know!            01/01/70 00:00      
   when posting a schematic PLEASE do not do it in a            01/01/70 00:00      
      This why Erik            01/01/70 00:00      
         upset?            01/01/70 00:00      
            Your 1 True Love            01/01/70 00:00      
               I don't what happen but see below            01/01/70 00:00      
   AT89C4051 hardware            01/01/70 00:00      
      A better schematic post            01/01/70 00:00      
         Understanding the schematic will help.            01/01/70 00:00      
            Thanks for the your reply            01/01/70 00:00      
               Which ports you use doesn't matter ...            01/01/70 00:00      
   LCD interface            01/01/70 00:00      
      Thanks for the comment            01/01/70 00:00      
         Cant post code?            01/01/70 00:00      
      Yikes, that interface is old-skool !            01/01/70 00:00      
         yikes, your attitude sucks            01/01/70 00:00      
         You don't like my idea            01/01/70 00:00      
            It is here!            01/01/70 00:00      
               don't quite understand            01/01/70 00:00      
                  I can            01/01/70 00:00      
                     commodore 64            01/01/70 00:00      
   STOP - THINK - START OVER            01/01/70 00:00      
      Thanks for your comments            01/01/70 00:00      
         You must know what is required            01/01/70 00:00      
            an addition            01/01/70 00:00      
               shortcut            01/01/70 00:00      
                  in response to Andy, there is now one worse            01/01/70 00:00      
                     That's why these queries continue to appear HERE!            01/01/70 00:00      
                     Mapquest            01/01/70 00:00      
   Nice Thread. Lots of passion.            01/01/70 00:00      
      This was a popular PIC demo about 15 years ago            01/01/70 00:00      
         We're dating ourselves a bit arent we?            01/01/70 00:00      
            Well ... Yes ... maybe ... those were the days ...            01/01/70 00:00      

Back to Subject List