help setting up 16F886 for ADC


Closed Thread
Results 1 to 17 of 17

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: help setting up 16F886 for ADC

    mvolt = (tc * 5//1024)
    really

    try

    mvolt = (tc * 5/1024)
    Warning I'm not a teacher

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

    Default Re: help setting up 16F886 for ADC

    also 100 iterations of this has every chance of overflowing a word var
    z = tc + z
    ie 100*921 = 92100 , word max val 65535



    every count of tc = 5000/1024 mv


    40 deg = 4500 mv would be a 921 count


    the most accurate calc for pbp

    would be mvolt = tc */ 1249

    result for 921 = 4493



    ps I assume ADFM set correctly
    Warning I'm not a teacher

Similar Threads

  1. 16f886
    By Larry in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th November 2008, 16:57
  2. 16f886
    By hvacrtech in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 27th May 2008, 05:06
  3. Setting Address via ADC
    By breesy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th October 2007, 14:33
  4. Setting up ADC....
    By robertmark68 in forum General
    Replies: 1
    Last Post: - 11th August 2006, 18:08
  5. Setting Up Adc Ports
    By GEEZER in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 22nd August 2005, 03:04

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