A/D IO pins changing function while running?


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Re: A/D IO pins changing function while running?

    In addition if I comment out the line that turns on PWM I get no voltage drop across the input resistor and the A/D reads the voltage correctly. It almost appears as if the PWM is affecting the A/D.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: A/D IO pins changing function while running?

    If you connect your PWM output to a scope or even an LED, does it behave correctly?

  3. #3
    Join Date
    Feb 2009
    Posts
    41


    Did you find this post helpful? Yes | No

    Cool Re: A/D IO pins changing function while running?

    Thanks to everyone for their help! I found the actual problem yesterday. As it turns out there was a transient coming in on an A/D pin other than the one I was using to measure the high voltage. I removed that input and the product regulates precisely. Lesson learned: transient voltages on any A/D input can effect the operation of other inputs of the A/D input multiplexer.

    TR

  4. #4
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: A/D IO pins changing function while running?

    It's hair pulling stuff when your programming problem was really an electronics problem,
    or vice versa.

Similar Threads

  1. 18F4550 not running
    By comwarrior in forum General
    Replies: 6
    Last Post: - 1st January 2011, 01:07
  2. Cant get my PIC running
    By Viberer in forum Off Topic
    Replies: 13
    Last Post: - 29th August 2008, 20:07
  3. Changing several o/p pins at the same time
    By AndrewC in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 1st August 2008, 21:14
  4. PIC - 8 Pins - 6 Output Pins ?
    By DanPBP in forum Off Topic
    Replies: 0
    Last Post: - 22nd October 2007, 00:23

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts