A/D sampling time and ...


Closed Thread
Results 1 to 2 of 2
  1. #1

    Question A/D sampling time and ...

    Hi anyone

    1-I want to know how I can determine sampling time for pic16f877’s onchip A/D with picbasic pro?

    2-How I can read data from on chip A/D in pic16f877 and save them to micro’s RAM with pic basic pro compiler?
    Any suggestions would be helpful.

    3-I want to use 8 bits A/D instead of 10 bits in pic16f877.
    I use from pic basic pro as compiler.
    Thank you very much.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    The average sampling time is 50uS although this will depend on the capacitance of the external circuitry you are sampling. I refer you to the ADC chapter in your PIC's Datasheet.

    Also please do a search on this forum - there are plenty of examples already posted (including a complete program to read six ADC's and Datalogging the results, that I posted less than two weeks ago). Reading about the ADCIN command in your PBP manual is also a good place to start...

Similar Threads

  1. 12F675 A/D and GPIO sleep interrupt
    By macinug in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th September 2008, 14:39
  2. ADC sampling time
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 23rd March 2008, 04:26
  3. Need advice on A/D
    By james in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 24th August 2007, 19:30
  4. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  5. A/D converter fails?
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th February 2006, 18:57

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