DT_Analog Module Works Great,But Why?


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005
    Posts
    57

    Default DT_Analog Module Works Great,But Why?

    I suppose this is a question for Darrel.The DT_Analog module is working great converting the 10 bit analog input on chan 0 of a 18F2550 to 16 bit.To get it to work I had to replace the ADvalue with the hardware register bytes adresh and adresl.Changing ADbits or the defines has no effect,the conversion js always 16 bit.Commenting out either has no effect,it keeps working.If I comment out the gosub GetADC,it stops.If I switch back to using the typical way of reading an analog input,its back to 10 bit.I am using PBP3 and Microcode Studio Plus 5.0.
    http://www.darreltaylor.com/DT_Analog/

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: DT_Analog Module Works Great,But Why?

    It sounds like you may not have the ADFM bit set for Right Justification.
    You do not need to use the ADRESH:L registers.

    But I'm just guessing, because what you say you had to do, is not something you need to do.

    Post your code and I'll take a closer look.
    DT

Similar Threads

  1. Acquisition time in DT_Analog when oversampling?
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th April 2015, 21:52
  2. DT_Analog.pbp
    By malc-c in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th January 2015, 04:42
  3. HSERIN w/ the Great DT-INT
    By cc1984 in forum Serial
    Replies: 1
    Last Post: - 17th February 2012, 23:45
  4. Replies: 8
    Last Post: - 11th July 2011, 20:20
  5. You are great!
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th April 2008, 11:03

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