LCD setup


Closed Thread
Results 1 to 12 of 12

Thread: LCD setup

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    You need the TRISA line. each bit determines input or output. so if you want ra4 as an output you need to change trisa to %11101111 also need cmcon=7 to disable the comparators. I dont have a data sheet to see what you need for adcon1 but the analog is for input only, and doesn't apply to a pin set to output. (as far as i understand) i think the cmcon and trisa lines should do the trick.

  2. #2


    Did you find this post helpful? Yes | No

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    you may have some problem with 16F628 and ADCON1... as it don't have any a/d converter.

    While it's always a good programming practice to set TRIS register, LCDOUT do it for you.

    Faulty i/o
    No contrast pot on LCD Vo line
    R/W pin not tied to GND
    no pull-up (~10K) on OpenCollector output
    floating MCLR input if used, or not disabled in code
    same thing for LVP mode,
    faulty/missing connections
    unsufficient LCD startup time

    are some things to check.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Didn't know that about lcdout. Learn something new each day lol. That explains why i couldn't remember the settings for adcon1. Thanks MisterE.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Thank you all for the help.

    I started again from scratch and did some experiments moving the RS and E lines arround and all worked fine.
    Now i have to sucessfully move the data bus to Portb.

    I did not have the time yet to do so, but i will keep this thread updated.

    In other hand, i've just realised that i will not able to finish this project because the 16F628 does not have the A/D converter i need to measure temp. - seen the analog input and assumed that it also had A/D :s ( Thanks Mister_E ).

    Have to go and buy some 16F88s.

    .

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. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  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 : 1

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