Temp sensor problem


Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Minimum Tad is 1.6uS.

    If you're using a 20MHz osc, then you'll want to change the A/D conversion
    clock setting. Change DEFINE ADC_CLOCK 1 to DEFINE ADC_CLOCK 2.

    My example uses a 4MHz osc, so DEFINE ADC_CLOCK 1 works. This selects
    8Tosc which is fine up to 5MHz. 8/5MHz = 1.6uS which is right at the cut
    off point of 1.6uS min Tad.

    Above 5MHz you want 32Tosc. Anything below this, and your A/D clock is
    too fast. For example: 8/20MHz = 400nS = 4 times too fast for min Tad.

    Also make sure you're never applying > Vref to any A/D input. If you have
    +Vref set to 2.55V, you should never exceed 2.55V input on any A/D pin.
    Last edited by Bruce; - 14th June 2006 at 04:38.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Graphic LCD with PICbasic pro
    By amindzo in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 25th November 2012, 11:45
  2. Stuck with 85C temp on ds18b20
    By revelator in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd April 2009, 19:50
  3. Random Numbers
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 18th December 2008, 08:47
  4. help with write command
    By cphillips82 in forum General
    Replies: 9
    Last Post: - 20th April 2008, 23:49
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07

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