Analog to Digital on 16F648A


Results 1 to 22 of 22

Threaded View

  1. #5
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Ghoot!

    Ghoot>>Yes it gives an error saying something like "unrecognized command". I'll have to check for sure when I get home from work this evening, but it acts like that command is no good, but it is in the data sheet. I'm wondering if the ADCIN command can be used with this chip since ADCON isn't anywhere in the data sheet?<<

    A couple of things....

    1. Make sure your chip supports and has a AD.
    2. Make sure your compiler is set to the correct chip!!!!<g>
    I have been caught on this a few times...<g>


    Dwayne


    PS just took a look at your Chip.. the 648a does NOT have a A/D on it. It has comparitors, thus you could use those, and possibly use the 5 volts off the chip as a reference. But I do not know the Voltage output of a photocell. (I am thinking 1.2 to 1.5 volts)...But don't take me on this!... Thus you would have to do a "Test" on how much light you will allow as being "Daylight".
    Last edited by Dwayne; - 5th May 2004 at 20:06.
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. pic18f analog comparator problem
    By david.silaghi in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th May 2009, 09:38
  2. analog and digital
    By lerameur in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th June 2008, 02:40
  3. PortA analog and digital IO
    By krohtech in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th November 2007, 02:25
  4. Replies: 2
    Last Post: - 14th April 2006, 09:42
  5. Analog pins for digital input
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th September 2005, 00:32

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