LCD problems when EBIT is changed


Results 1 to 16 of 16

Threaded View

  1. #1
    Join Date
    May 2007
    Posts
    66

    Default LCD problems when EBIT is changed

    I am using a 28pin PIC16F73 (compatible with 16F877).

    If I connect my pic to a LCD using PORTB pin 3 as the EBIT, my LCD works perfectly.

    DEFINE LCD_DREG PORTA
    DEFINE LCD_DBIT 0
    DEFINE LCD_RSREG PORTA
    DEFINE LCD_RSBIT 4
    DEFINE LCD_EREG PORTB
    DEFINE LCD_EBIT 3
    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 2
    DEFINE LCD_COMMANDUS 2000
    DEFINE LCD_DATAUS 50


    TRISB=0 ' PORTB is output
    TRISA=0 ' PORTA is output

    ADCON1 =7 ' PORTA is digital


    However, I need PORTB to connect a keypad and if I now change the EBIT definition to PORTA pin5:

    DEFINE LCD_EREG PORTA
    DEFINE LCD_EBIT 5

    and move the connection to RA5, then my LCD suddenly won't work?

    I have tried anything but cannot understand why this is happening.
    Last edited by passion1; - 9th June 2007 at 14:24.

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. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  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. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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