HPWM and A to D interaction question 18F252


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Have you tried changing the sampling frequency?

    Hi,

    According to you when your CCP pin is floating (there is no load connected) you are experiencing the same problem. This perhaps indicates that your HPWM is not playing anything with the VDD line as this is Vref as well (I assume). A schematic post (with layout if possible) would be appreciated. By that time try playing with the sampling frequency (use the RC clock) and a bit more time for the sampling.
    Regards

    Sougata

  2. #2
    Join Date
    Dec 2003
    Location
    San Diego
    Posts
    35


    Did you find this post helpful? Yes | No

    Smile Got it working.... with ADCIN

    I did not find the problem but did get the code working.
    I was setting up the A to D with the direct registers and had the setup wrong.
    I just changed the code to use the ADCIN command and all is now working.

    Something was messed up where I was reading the A to D justified register into a variable word using. .highbyte and. .Lowbyte

    Yes this is on a breadboard but the results are now very stable as expected.
    Thanks all…
    tcbcats

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