Problem with 10-bit A/D conversion - PIC18F2455 - LCD


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680


    Did you find this post helpful? Yes | No

    Default Re: Problem with 10-bit A/D conversion - PIC18F2455 - LCD

    ADCON2 = %10000000 ' ...and right justify result
    and set the conversion clock to fosc/2
    way out of specs


    ADCON2 = %10000011 ' ...and right justify result and use frc

  2. #2
    Join Date
    Apr 2008
    Posts
    25


    Did you find this post helpful? Yes | No

    Default Re: Problem with 10-bit A/D conversion - PIC18F2455 - LCD

    I changed
    ADCON2 = %10000000

    to

    ADCON2 = %10000011

    it is still the same

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Problem with 10-bit A/D conversion - PIC18F2455 - LCD

    What is your ADC source and how is it connected?
    What are the current readings and what are the expected readings?
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Apr 2008
    Posts
    25


    Did you find this post helpful? Yes | No

    Default Re: Problem with 10-bit A/D conversion - PIC18F2455 - LCD

    Source is pressure sensor (output 0 - 1V), wchich is normaly working with 10-bit A/D - PIC16F877 conection.
    I built conection with PIC18F2455, but not working properly.

  5. #5
    Join Date
    Apr 2008
    Posts
    25


    Did you find this post helpful? Yes | No

    Default Re: Problem with 10-bit A/D conversion - PIC18F2455 - LCD

    Problem is solved, I changed LCD display, it is OK.

    Thanks for your help.

  6. #6
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: Problem with 10-bit A/D conversion - PIC18F2455 - LCD

    kuba230,
    If I may jump in here now that your problem is solved...
    but not working properly, value on LCD display is not correct.
    So just curious... Was the 'bad' LCD displaying garbage characters or was it displaying a somewhat valid number??
    Please be more specific as to what the 'bad' LCD was displaying.

    Being more specific on describing the problem is more likely to help solve future problems

    dwight
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  7. #7
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: Problem with 10-bit A/D conversion - PIC18F2455 - LCD

    To clarify... the reason I asked the above question(s) is because it seems to me that if the LCD was displaying any reasonable characters then the LCD was working.
    Was it an LCD contrast issue or were the characters complete garbage??

    Is it possible that you also fixed something else in your code that was suggested by the other reply's to your questions and that was the real problem??

    That is why I asked about what exactly you were seeing on the LCD.

    dwight
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

Similar Threads

  1. 16 bit conversion - AM2302
    By Scampy in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 12th April 2015, 01:34
  2. Replies: 1
    Last Post: - 13th March 2012, 00:34
  3. Conversion Problem
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th March 2007, 13:09
  4. Bit conversion
    By lerameur in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 5th November 2006, 12:11
  5. Conversion of 10-bit word into ASCII
    By Barry Johnson in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th January 2005, 15:26

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