4 Bit Lcd Hookup


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    GEEZER's Avatar
    GEEZER Guest


    Did you find this post helpful? Yes | No

    Default 4 Bit Ldc Hookup

    The DAC is an adXXXXX, can't rember the exact number. It's a quad with 255 steps per channel. 8 data bits and 2 bits to select channel. It requires an SPI output, an sdo, a clock pin and a ground, I believe. These are available on portC.

    I think I can work that all out, but I need to move the LCD from portc, where it is working fine, to leave those aformentioned portc pins for the DAC.

    I am not asking someone to write my code, I am willing to do the work. To make my question more clear:

    I understand that pins 7,6,5, & 4, on portb will transfer the data or commands in two 4 bit parts. I understand that the RS signal will tell the LCD chip whether the transfered data is a command such as clear-screen, or data to be displayed such as "Hello".

    I am ASSUMING that the E_BIT is a timing pin which drives the whole shbang much like an oscillatior.

    I am ASSUMING that the LCDOUT command is not just a word, but a binary routine, ( when compiled) that controls these involved pins, and in a timed sequence send commands followed by data to control the Hitachi chip and make it do what my basic program code tells it.

    I can use a clko pin from portc and make all this work. But I need another pin for this function, because I need the portc hardware to run my SPI DAC.

    Does this make sense? I am confident there is some quite simple way to do it. My novice status (read ignorance), is my drawback. If you can help me with an understanding of theory, I know I can work it out.

    You will notice In the above paragraphs I use the word "understand", (read "think I understand"), and "ASSUMING" which best describes the user of the word with the first 3 letters of the word.

    Any assistance is greatly appreciated.

    The Geezer

  2. #2
    GEEZER's Avatar
    GEEZER Guest


    Did you find this post helpful? Yes | No

    Default 4 Bit Lcd Hookup

    Thanks everyone. I am running on portb now, with EBIT and RS on portc. Have pins left on C for my serial hookup DAC.

    Thanks much,

    The Geezer

    P.S. And as Arnold says, "I'll be back".

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 20:54
  2. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 17:56
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 18:27
  4. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 13:22
  5. encoder wowes
    By wallaby in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 6th December 2005, 22:56

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