Without seeing or knowing anything about the code it's not easy to say but here are two general things to try:
* Obviously, pretty much anything that you're doing more than once thru out the code...
This may be obvious but since you didn't post your code I'll say it anyway.
The variable you're putting the result in is declared as a WORD, right?
i need to find more code space as a result this requires some " clean up " of existing working code
i have recovered 10k in space so far , by changing any thing with an " and " to 2...
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),...