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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/14/04 11:52
Read: times


 
#62530 - RE: LCD Part 2: 4-bit Mode (Tutorial Err
Responding to: ???'s previous message
Dear patrick,

  • If you follow the algorithm it'll be like that

    A contains data to be sent
    after ORL A,#0F0h and ORL DATA,#0F0h
    A will contains Fbh (if b means 4 bits to be displayed) and DATA will contain F0h
    So ANL DATA,A make DATA contains Fbh not b0h as was required to display upper nipple.

    Note: i'm refering with bh to bits to be displayed either (4..7) or (0..3).

  • The correct is to be :-

    ORL A,#0Fh
    ORL DATA,#0F0h

    A will contains bFh (if b means 4 bits to be displayed and DATA will contain F0h

    ANL DATA,A

    make DATA contains b0h as was required to display upper nipple.

    Note:- The same will be applied for other nipple

    Regards,
    Hatem Zakaria




  • List of 21 messages in thread
    TopicAuthorDate
    LCD Part 2: 4-bit Mode (Tutorial Error)            01/01/70 00:00      
       RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
          RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
             RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
                RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
                   RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
                      RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
                         RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
                            RE: MOV NI**LE, #BB            01/01/70 00:00      
          RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
             RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
                RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
                RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
                   RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
       RE: LCD Part 2: 4-bit Mode (Tutorial Error)            01/01/70 00:00      
          RE: LCD Part 2: 4-bit Mode (Tutorial Error)            01/01/70 00:00      
             RE: LCD Part 2: 4-bit Mode (Tutorial Error)            01/01/70 00:00      
          RE: LCD Part 2: 4-bit Mode (Tutorial Err            01/01/70 00:00      
             RE: LCD Part 2: 4-bit Mode            01/01/70 00:00      
                RE: LCD Part 2: 4-bit Mode            01/01/70 00:00      
                   RE: LCD Part 2: 4-bit Mode            01/01/70 00:00      

    Back to Subject List