Help with the conversion math


Results 1 to 31 of 31

Threaded View

  1. #21
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,159


    Did you find this post helpful? Yes | No

    Default Re: Help with the conversion math

    You mean that at page 156 of the datasheet you saw ADCON1 and at page 157 ADCON2 and concluded that are the same at bit 7 ? They are not and must be setup accordingly to your needs ALL of them. DO NOT rely on power up defaults.

    You have to set if not all, the most registers for the PIC to work as expected.

    ADCON0, ADCON1, ADCON2 should ALL be set as YOU desire, NOT the PIC's default state. Each register has its own bits for different setting. Otherwise why have dozens of registers if they were all the same?

    Ioannis
    Last edited by Ioannis; - 26th November 2014 at 06:15.

Similar Threads

  1. AD conversion
    By CipiCips in forum mel PIC BASIC
    Replies: 8
    Last Post: - 19th May 2011, 01:09
  2. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  3. PBPL Math...new math takes more cycles...Always?
    By skimask in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2008, 10:22
  4. conversion
    By pramodsinha in forum Forum Requests
    Replies: 2
    Last Post: - 19th January 2006, 15:58
  5. ºC -> ºF Conversion
    By CocaColaKid in forum General
    Replies: 6
    Last Post: - 15th March 2005, 09:42

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