Hello Norm,
I tried your example code, but maybe i did something wrong because it did not work
First i understood that you use an array , size 100 to store the readings. Is this array of words or bytes ?
Reading the pic18f87j90 data sheet the ADRESH it is a byte, but the whole analog reading it is a word.
Do you store just the high byte of the conversion ?
Do you also have a schematics to look at it ?
I do not know if i have to leave PortA.2 floating or i have to connect it to something aka VDD or vss
What is the clock frequency of your CPU ? Do you run internal or from a crystal ?
I love to try it and make it work on my PIC18F87J90.
Thank you
Ion
Bookmarks