PIC16F690 LCDOUT problem


Closed Thread
Results 1 to 4 of 4
  1. #1

    Default PIC16F690 LCDOUT problem

    Have no problems displaying text with the following

    DEFINE LCD_DREG PORTC
    DEFINE LCD_DBIT 4
    DEFINE LCD_RSREG PORTB
    DEFINE LCD_REBIT 6
    DEFINE LCD_EREG PORTB
    DEFINE LCD_EBIT 7
    DEFINE LCD_LINES 2
    DEFINE LCD_COMMANDUS 1640
    DEFINE LCD_DATAUS 44

    But this won't work

    DEFINE LCD_DREG PORTC
    DEFINE LCD_DBIT 4
    DEFINE LCD_RSREG PORTC
    DEFINE LCD_REBIT 1
    DEFINE LCD_EREG PORTC
    DEFINE LCD_EBIT 0
    DEFINE LCD_LINES 2
    DEFINE LCD_COMMANDUS 1640
    DEFINE LCD_DATAUS 44

    Any ideas?

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: PIC16F690 LCDOUT problem

    Port C has analog features, try setting them to digital.

    http://www.picbasic.co.uk/forum/showthread.php?t=561

    Robert
    Last edited by Demon; - 25th April 2012 at 03:02. Reason: found reference thread

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: PIC16F690 LCDOUT problem

    I don't understand why I can send out data on RC4-RC7 without setting to digital, but not E and RS on RC0 and RC1? I thought setting to digital was only needed for input on pin that was also A/D input.

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: PIC16F690 LCDOUT problem

    Robert, you were right. Setting ANSEL and ANSELH fixed it. Thanks.

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