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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/03/03 08:07
Read: times


 
#56004 - RE: What's wrong with this LCD program?
Responding to: ???'s previous message
Unfortunately some people are a little too lazy to read any sort of information.

To cut things short - Ofir has has made the fundamental mistake of expecting that his constant string is in a common data area - not so with 8051's!
The earlier respondants picked up on this and suggested he use the MOVC.

The other issue I think he might have is timing with the lcd display - from memory I think the delay after a data write is about 400uS.

So, Ofir - use the MOVC A,@A+DPTR instruction to get constant data from the code space, MOVX reads/write from the external data space(xdata), MOV A,@R0 reads from idata (internal data memory). 8051's are harvard architecture unlike x86's,z80's etc and have separate code/data areas.

Read the data on the lcd display CAREFULLY and/or find some code that is known to work. There's plenty of it out there.

It seems people are too quick to put problems on the message boards hoping for a quick magic answer. Erik has said something similar. If only there were REAL problems posted that would test our collective skills rather than us thinking 'RTFM'. Like the person wanting to know how to do SPI & i2C on a aduc812 - if he has no idea why the hell is he attempting it?

That's my friday bitch!





List of 28 messages in thread
TopicAuthorDate
What's wrong with this LCD program?            01/01/70 00:00      
   RE: What's wrong with this LCD program?            01/01/70 00:00      
      RE: What\\\\\\\\\\\\\\\'s wrong with this LCD prog            01/01/70 00:00      
         RE: What\\\\\\\\\\\\\\\'s wrong with this LCD prog            01/01/70 00:00      
         RE: What\\\\\\\\\\\\\\\'s wrong with this LCD prog            01/01/70 00:00      
            RE: What\\\\\\\\\\\\\\\'s wrong with this LCD prog            01/01/70 00:00      
               RE: What\\\\\\\\\\\\\\\'s wrong with this LCD prog            01/01/70 00:00      
                  RE: What\\\\\\\\\\\\\\\'s wrong with this LCD prog            01/01/70 00:00      
      RE: What's wrong with this LCD program?            01/01/70 00:00      
         RE: What's wrong with this LCD program?            01/01/70 00:00      
            RE: What's wrong with this LCD program?            01/01/70 00:00      
               RE: What's wrong with this LCD program?            01/01/70 00:00      
                  RE: What's wrong with this LCD program?            01/01/70 00:00      
                     RE: What's wrong with this LCD program?            01/01/70 00:00      
                        RE: What's wrong with this LCD program?            01/01/70 00:00      
                           RE: What's wrong with this LCD program?            01/01/70 00:00      
                              RE: What's wrong with this LCD program?            01/01/70 00:00      
                                 RE: What's wrong with this LCD program?            01/01/70 00:00      
                                    RE: What's wrong with this LCD program?            01/01/70 00:00      
   RE: What\\\\\\\'s wrong with this LCD program?            01/01/70 00:00      
      RE: What\\\\\\\'s wrong with this LCD pr            01/01/70 00:00      
         RE: What\\\\\\\'s wrong with this LCD pr            01/01/70 00:00      
         RE: What\\\\\\\'s wrong with this LCD pr            01/01/70 00:00      
   RE: What's wrong with this LCD program?            01/01/70 00:00      
      RE: 15What's wrong with this LCD program            01/01/70 00:00      
      RE: What's wrong with this LCD program?            01/01/70 00:00      
         RE: What\'s wrong with this LCD program?            01/01/70 00:00      
      RE: What's wrong with this LCD program?            01/01/70 00:00      

Back to Subject List