Display the value of a resistance to LCD


Closed Thread
Results 1 to 5 of 5

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Hi Joe,
    I'm not sure but try changing the left/right justified setting on the ADC. Your not saying which PIC you're using but on the 16F688 for example, you set that with bit0 of ADCON0 though it may be different on other PIC's - see the datasheet for your PIC.

    Let me know how it goes.

    /Henrik.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hi Henrik,
    I'm using 16F876A, I did some trial and error and finally got it. But I use this formula..
    Adval=Adval*100/255 'gives the range 0-100
    But I used Define ADC_BITS 8.

    Thanks for your guidance.
    joe

Similar Threads

  1. LCD Display
    By lambert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th January 2010, 23:18
  2. LCD display not working properly
    By dilpkan in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 2nd February 2008, 08:43
  3. Replies: 14
    Last Post: - 26th September 2007, 06:41
  4. LCD Display not working - PIC heating...
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 24th September 2006, 08:35
  5. A/D display result on LCD
    By winsthon in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th January 2004, 11:09

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