simple LCD DEFINES question


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96

    Question simple LCD DEFINES question

    Just second guessing myself, so I before I modify my PCB....
    If I want to use all default LCDOUT defines EXCEPT the standard PORTA data port....(I want to switch my 4 data lines from PORTA.0, A.1, A.2, A.3 over to PORTB.7,.6,.5,.4....?
    Can i get away with this with the following code?

    DEFINE LCD_BITS 4 'self explanitory
    DEFINT LCD_DREG PORTB 'self explanitory
    DEFINE LCD_DBIT 7 'working my way down B.7, B.6, B.5, B.4

    'or will this hardware arrangment just not work as I am starting with bit 7 on portb with only 4 bit of data?

    'should I be going the other direction....starting with bit 4 and going up to bit 7?

    'second guessing stinks....

    thanks for any help
    Padawan-78

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96


    Did you find this post helpful? Yes | No

    Smile

    sweet!!!!!!!!!
    thanks
    Padawan-78

Similar Threads

  1. Simple LCD code not working!...WHY?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th November 2009, 19:48
  2. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  3. Simple LCD code not working..
    By davewanna in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2008, 13:55
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  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