More Powerful LCD Commands


Closed Thread
Results 1 to 32 of 32

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by shahidali55 View Post
    Has anyone designed a HD44780 2-wire (or 3-wire) LCD interface?
    Has anyone got an example code in picbasic?

    TX side - SEROUT directly replaces LCDOUT (pick your serial transmit format, i.e. baud rate, parity, etc)

    RX side - SERIN data feeds byte information directly to LCDOUT (again, pick your serial receive format to math the transmit side)

    3 wires - power, ground, serial transmit data

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    2 Wire: The master side may use I2CWRITE. On the slave side, you will need to build your OWN I2C routine, using the MSSP or Bit banging. Maybe you could use some part of the following...
    http://www.melabs.com/resources/samp...p/i2cslave.bas

    Still possible to set a PIC USART in Synchronous mode.

    3 wire: The master side may use SHIFTOUT. On the slave side, same rule apply..
    http://www.melabs.com/resources/samp...p/spislave.bas

    To me, a 1 wire solution is more valuable. But if your board already have a I2C bus... it's tempting to use it.
    Last edited by mister_e; - 5th June 2007 at 14:02.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question Using shift registers ? ? ?

    Can it be done without using a PIC on the slave side?
    Like 12F629 --> Shift register --> LCD

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by shahidali55 View Post
    Can it be done without using a PIC on the slave side?
    Like 12F629 --> Shift register --> LCD
    See your other post on the subject. The idea is well documented in Myke Predko's book. All you have to do is think about it a bit...the idea will hit...

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Yes the shift register could work... As long as you can deal with the limitations. It's a cheap an proved to work solution so far.

    anyway, here's the link Skimask talked about http://www.myke.com/lcd.htm
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question

    mister-e , in the "C" psuedo-code give on the link mentioned above ,
    This is what i understood so far.
    To send any data to the LCD, the "LCDNybble" function has to be called twice with the character / command data in the variable "Nybble".
    The Nybble variable should be fed with the corresponding upper and lower bits sequentially.

    Does the "LCDNybble" function take care of pulsing the E pin of LCD?
    Myke has mentioned that before strobing the E pin, a 450ns pause is necessary.
    Will PAUSEUS 1 work?
    Last edited by shahidali55; - 6th June 2007 at 13:43.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by shahidali55 View Post
    Myke has mentioned that before strobing the E pin, a 450ns pause is necessary.
    Will PAUSEUS 1 work?
    PAUSEUS 1 = 1000ns
    1000ns > 450ns
    Yes

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 19:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 14:44

Members who have read this thread : 0

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