How do you drive a Serial LCD?


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: How do you drive a Serial LCD?

    Hi Dwight,

    I attached the schematic below but I'm afraid the interface in its present form is not very PBP friendly. It was the only way I knew of at the time to control six (6) pins on an LCD with only five (5) PIC output pins. That means you have to drive the display by sending two serial bytes for each LCD byte, each serial byte containing four data bits and an RS bit.

    The new design that I'm working should be done soon. It uses full eight bit bytes and recognizes the $FE character (for toggling an RS flag).

    Regards...
    Attached Images Attached Images  

  2. #2
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: How do you drive a Serial LCD?

    Thanks Mike,

    That was quite innovative of you to use the incomming data to both talk to the PIC and control the RS line of the LCD!!

    nice work.

    So is your new design going to use a differend PIC with more I/O pins??

    Dwight
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  3. #3
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: How do you drive a Serial LCD?

    So is your new design going to use a differend PIC with more I/O pins?
    I'm upgrading the interface that uses the 8 pin PIC and actually studying another two slightly more advanced designs.

    If you're interested, I've attached the source (assembler) for the 12F635 backpack as well as the source (also assembler) for the 16F1823 on that prototype board. This is the old software and, as I mentioned, probably not very useful for PBP users who are used to having all those wonderful LCD output formatting capabilities.

    Happy Holidays! Mike
    Attached Files Attached Files

  4. #4
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: How do you drive a Serial LCD?

    Hi Dwight (and gang),

    If you're interested... I just finished testing the upgrade to the 8-pin PIC serial LCD interface and it works great. The mod involved adding an RC integrator/filter (10K + 330pF) between the GP0/D4 pin and the LCD RS pin. Now I can drive all six LCD control pins directly from the little 8-pin PIC which means I can collect serial data, analyze it, and write data to the LCD display any way I want. In short, you should be able to feed the serial interface using the DEBUG, SEROUT2 or HSEROUT commands with all of the same formatting parameters you're using now with the LCDOUT command. I'm pretty geeked (yes, I'm a nerd - LOL).

    If anyone is interested, I'll start a new thread in the 'schematic' sub-forum after characterizing and testing the firmware. The only real advantages I can think of for this interface is its size (very small footprint on a project board when using the 2x5 header for a MikroE LCD Adapter board) and its ability to drive four lines of a switch matrix (one additional pin on the host can read four switches, an encoder, etc.).

    Cheers, Happy Holidays, Mike
    Attached Images Attached Images  
    Last edited by Mike, K8LH; - 9th December 2011 at 18:47.

  5. #5
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: How do you drive a Serial LCD?

    Drawing of the updated backpack hardware...
    Attached Images Attached Images  

  6. #6
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Default Re: How do you drive a Serial LCD?

    Hi Mike,

    Mind if I ask what program you are using to illustrate your drawings?

    Thanks,

    BobK

  7. #7
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: How do you drive a Serial LCD?

    Greetings BobK.

    The drawings were made using the drawing tools in Excel...

    The paper silkscreen on the Radio Shack prototyping board was a printout of the silkscreen layer from DipTrace. The paper silkscreen is laminated with plastic tape and glued onto the board.

    Cheerful regards, Mike
    Last edited by Mike, K8LH; - 14th December 2011 at 12:07.

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