ADC -how it works?, pic -


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Posts
    4

    Default ADC -how it works?, pic -

    Hi mi name is Matias and this is my first post in a forum, a friend told me that they were very usefull and I had realise that they certainly are. I need to learn how to use the adc of the pic, I read the manual and I am ready to start tests, but first I need to define what pic to use, any sugestments.
    If posible any ruting..

  2. #2
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    We can't tell you what pic to use as it will vary depending on your requirements, 8pin, 14, 20 etc. Have a look at the Microchip Website, it is possible to select various features such as A to D, etc.

    A to D works by taking a voltage range and converting this into a digital number. Depending on the resolution (8 bit, 10 bit etc) this number range can be three digits to four digits (decimal), for example 8 bit gives 0 to 254 for a zero and maximum reading. Souinds complicated, let's say you had a 10K potentiometer (variable resistor) between 0v and +5v, with the wiper connected to the PIC. Turning the shaft will give between 0 and +5v, and if we was careful enough in the middle it would read +2.5v, and as the 8 bit range is 0 for no volts and 255 for +5, the value at 2.5v would be .... 128, thus each 0.02v (approx) increments the convertion by 1.

    You can set the voltage range and use internal or external voltage references to in case you only wanted to convert different voltages that are not to the extreams of the supply.

    Hope that helps

Similar Threads

  1. Automatic VB6 to pic serial connection
    By arniepj in forum Code Examples
    Replies: 13
    Last Post: - 10th January 2008, 07:57
  2. 12 bit or higher ADC on a PIC that works with PBP?
    By Brandon in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 11th November 2007, 17:19
  3. Flash PIC with 12 bit ADC
    By Steve_88 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th October 2007, 20:35
  4. PIC powered by capacitor for 0,5 second
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 25th August 2007, 09:23
  5. Multiple PIC programming
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th May 2007, 23:47

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