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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/06/05 04:15
Read: times


 
#93041 - READ / WRITE sequence
Responding to: ???'s previous message
Hi Vignesh,

Your READ / WRITE sequence is not correct. You should enable the EN pin after setting up R/W and RS signals. As an example I have modified your WAIT_LCD routine as follows

WAIT_LCD:

CLR RS ;It's a command
SETB RW ;It's a read command
SETB EN ;Start LCD command

WAIT_LCD1:
MOV p1,#0FFh ;Set all pins to FF initially
MOV A,p1 ;Read the return value
JB ACC.7,WAIT_LCD1 ;If bit 7 high, LCD still busy

CLR EN ;Finish the command
CLR RW ;Turn off RW for future commands
RET



List of 25 messages in thread
TopicAuthorDate
datasheet for lcd            01/01/70 00:00      
   datasheet            01/01/70 00:00      
   To Marjan!            01/01/70 00:00      
      is it Mehdi?            01/01/70 00:00      
         Contrast Control.            01/01/70 00:00      
            Code for the LCD            01/01/70 00:00      
               please read as:            01/01/70 00:00      
               LCD initialisation is wrong            01/01/70 00:00      
                  I have got it, but..            01/01/70 00:00      
                     READ / WRITE sequence            01/01/70 00:00      
                        thanks Leo            01/01/70 00:00      
         One more hint.            01/01/70 00:00      
            to Prahalad            01/01/70 00:00      
               LCD Contrast - Vignesh            01/01/70 00:00      
                  oh, fine..            01/01/70 00:00      
                     Oriole LCD Modules            01/01/70 00:00      
                        Re: Oriole ODM.            01/01/70 00:00      
         quick check at the shop before buying            01/01/70 00:00      
         Yes,it is!            01/01/70 00:00      
            Testing : Passed            01/01/70 00:00      
            to Mehdi with love            01/01/70 00:00      
               Thanks Vignesh !            01/01/70 00:00      
                  Oh with pleasure..            01/01/70 00:00      
   The original datasheet            01/01/70 00:00      
   damaged LCD            01/01/70 00:00      

Back to Subject List