LCDOUT with custom PINS


Results 1 to 12 of 12

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Josuetas View Post
    Hi.

    I have a very small project on 16f628 that uses a classic LCD,

    Now, due to PCB and PINOUT restrains i need to use the PINs (A6,A7,A0,A1) as data bus for this LCD, that is impossible with the LCDOUT defines, any help on how i cand do this?

    Hopefully
    PortA.6->D7
    PortA.7->D6
    PortA.0->D5
    PortA.1->D4

    Thanks on any help

    DJC
    Hi Josuetas,
    If I get what you are asking, No !
    The 4 data lines of the LCD must use either the 4 lower or the 4 upper lines of the given port, example:
    Code:
    Define  LCD_DREG        PORTB   ' Uses port B on Ports B 4,5,6,7
    Define  LCD_DBIT        4
    
    OR:
    
    Define  LCD_DREG        PORTB   ' uses Port B on Ports B 0,1,2,3
    Define  LCD_DBIT        0
    
    OR:
     
    Define  LCD_DREG        PORTA   ' same comments as above except Port A
    Define  LCD_DBIT        4
    
    OR:
    
    Define  LCD_DREG        PORTA
    Define  LCD_DBIT        0
    The E bit and the RS bit can go pretty much wherever you want
    Last edited by Archangel; - 27th August 2007 at 01:33.
    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.

Similar Threads

  1. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 07:56
  2. need help in coding..
    By daphne8888 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 19th March 2008, 07:31
  3. Help GPS read with serin
    By leinske in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2007, 02:33
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 15:04
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

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