New user frustration (16F688 + LCD)


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: New user frustration (16F688 + LCD)

    Here is my schematic....

    Name:  LCD schematic.JPG
Views: 3486
Size:  69.2 KB

    Thanks again,

    Bill

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: New user frustration (16F688 + LCD)

    Hi,
    Yeah, sorry about that, it should of course be CMCON0 = 7 and ANSEL = 0.

    You have D7 on the LCD connected to RA3 which is also the MCLR pin on the 16F688. There are two issues with that.
    1) The MCLR functionallity would have to be disabled via the CONFIG bits in order for that pin to work as anything but MCLR.
    2) On the 16F688, even with MCLR disabled, RA3 can only work as an inputs as it lacks output driver circuitry.

    You'll be better off moving the datalines to PortC.0-3, put the Enable signal on PortC.4 and RS on PortC.5. Use the DEFINE directive to change the pin-mapping, just as you did for the Enable signal.

    /Henrik.

  3. #3
    Join Date
    Feb 2013
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: New user frustration (16F688 + LCD)

    Hi Henrik,

    Yes, in the period of time since I posted my schematic, I learned that RA3 is input-only. I was in the process of re-mapping all of my PortA connections to PortC, which is also what you suggested. Now I have high hopes that this may work! I will post an update after testing......

    Thanks again,

    Bill

  4. #4
    Join Date
    Dec 2011
    Location
    IO93ok
    Posts
    190


    Did you find this post helpful? Yes | No

    Default Re: New user frustration (16F688 + LCD)

    If you get LCD working.

    I'm not on PBP3 but shouldn't it be:

    LCDOUT $FE,$C0,"Hello."

    and

    LCDOUT $FE,$C0,"World."

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: New user frustration (16F688 + LCD)

    Depends on what you want to do. $FE, $1 clears the display while $FE, $C0 moves the cursor to the second line. Neither is wrong...
    Either way it has nothing to do with the version of PBP, it's the way the HD44780 controller on the LCD works.

Similar Threads

  1. Interfacing with Arduino I2C LCD
    By norohs in forum Documentation
    Replies: 47
    Last Post: - 30th May 2017, 19:53
  2. PICbasic and 40X4 lines LCD
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th January 2013, 23:42
  3. LCD using 4 data lines, Lab X1
    By queenidog in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st January 2013, 00:10
  4. LCD Low Power
    By kduck63 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th December 2012, 01:05
  5. forum posting frustration
    By Heckler in forum Forum Requests
    Replies: 8
    Last Post: - 16th March 2012, 12:31

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