ADCON0.0=1 serves no purpose the ADCIN code will do that for you
I am doing the same register setups as you show, except that I'm using AN2 (ANSELA=%0100, TRISA=%01100). In addition I have ADCON0.0=1 (enable ADC). I'll try removing this. I'll work on...
PBP doesn't have a string type variable per se but it does have array type variable which is pretty much the same thing.
If all your commands are two character command then declare a 2 byte...
works for me
cfg1 = _FOSC_INTOSC
Has anyone been successful on getting data from the ADC on a 12F1822? While I can get 8-bit conversions, I cannot get 10-bit results. I have puzzled through the related registers from...
Admittedly the price may be a worry, but as far as I am concerned, $80 for the programmer is much better than $hundreds of pulling your hair out.
All mine went years ago, so I figure I am in front.
In preparation for providing a drawing, I stripped off the board the battery holder, socket, and crystal from the standalone 1307 I tried earlier (they were not wired, but were cluttering the board),...
It is not a bug. Computer systems of all types are, at their core, logic devices - incapable of random or chaotic operation. More complex systems simulate randomness by "seeding" their random...
from the manual
what some do is seed the random with a adcin reading on a unconnected analog pin
worth trying ?
Hi all thank you for reading..
Using the above basis I have created what I thought to be a "Dice" type program to give me a "random" number between 1 and 6… however I have just found the...