Using ADCIN or POT/RCTIME?


Results 1 to 12 of 12

Threaded View

  1. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    RCTIME and POT command are just 'usefull' when your PIC don't have any AD converter. While it's just a pain and real waste of time to do some intelligent calibration, forget them. Choose a PIC with internal AD or use an external one. If you use an external one you'll discover really fast that it just don't worth the investement while a PIC with internal AD are not really much expensive than others without.

    Your POT is connect between VCC and GND, the wiper can go directly or through a low value resistor to your PIC AD input.

    If your software don't provide any noise cancelation, i suggest to add a ~0.1uF between PIC input and GND to filter the signal a little bit.

    If you use the above method, your POT impedance must meet the maximum PIC AD impedance too. Look into your PIC datasheet under the AD section, you'll fiond it there.

    BUT if you don't have any POT that meet it, you can even place a buffer between your POT and the PIC. almost any decent op-amp will do the job.

    ADCIN is easy to use and work really fine even if you can do it simply by writing/reading directly to the internal registers. That will also provide tighter code.
    Last edited by mister_e; - 16th April 2006 at 09:37.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. ADCIN and PIC18F4331 Arghhhhh !
    By GrandPa in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th December 2010, 20:27
  2. How to make adcin stable?
    By Pic2008 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 20th January 2009, 07:41
  3. ADCIN problems with PIC16F73
    By passion1 in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 26th July 2007, 11:38
  4. Adcin or Pot
    By lerameur in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 11th January 2007, 16:46
  5. help using adcin
    By harryweb in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 31st January 2006, 07:46

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