LCD and Manual output.


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511

    Default LCD and Manual output.

    Hello Folks.

    Does anyone know how to control the LCD manually using 4 bits? Can someone give a example?

    Here is how I do it using 8 bits:

    Enable Var Porta.1
    LCDDataCommand Var Porta.0

    ...
    ...

    Portb=x+45 " or Whatever Value" (To display numbers)
    LCDDataCommand=(High or low depending on if it is a command or data)
    Toggle Enable to send that data to the LCD.

    endProgram.


    This is using all 8 bits of the LCD pins.


    I would like to use the LSB 0-4 for data/command, but don't know how to toggle the data into the LCD.

    My guess would be Toggling twice... one time with High Order bits, then immediately following with Low order bits. But then How do you make sure the LCD is in 4 bit Mode, and not 8 bit?

    The purpose of this, is because I have very very little overhead, if I use my own LCD writing, compared to using a subroutine

    Thanks very much.

    Dwayne

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    You first have to tell the LCD you're using 4-bit mode. The programming manual for your LCD's controller chip should tell you the initialisation sequence that you need to achieve this.

  3. #3
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Melanie!

    Melanie >>You first have to tell the LCD you're using 4-bit mode. The programming manual for your LCD's controller chip should tell you the initialisation sequence that you need to achieve this.<<

    That was the problem <grin>. My LCD is over 12 years old, and I cannot find it on the internet. I finally took the chip number and hoped for the best. Thus I have had a lot of trail and errors trying to figure out this LCD. I finally endup up ordering a new one about 3 days ago.

    Thanks a million!

    Dwayne

Similar Threads

  1. Newbie? Problem with LCD
    By lew247 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th December 2009, 19:48
  2. LCD freeze
    By harryweb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th October 2009, 08:01
  3. Migrating from PIC16F690 to PIC18F4525 and having LCD issues
    By jblackann in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th June 2008, 20:05
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Running an LCD on different port
    By malc-c in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 18th December 2006, 06:41

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts