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...
Bookmarks