Sorry, :-) you are right. Basically, its not doing anything currently. I have however checked the Data sheet and you are right, so I have changed the ADCON0 as follows: ADCON0 = %10001101, this should give me
Bit - Setting
0 - 1 = A/D Operating
1 - A/D conversion Bit (I assume ADCIN would set this to 1 when running)
2-3 - 11 = Channel 3 (AN3 / GPIO4)
4-5 - Not Used
6 - Vref, 0 = Vdd
7 - 1= Right Justify
However, even after this change and running it in the simulator (I don't have my breadboard etc here at work) it still does not even light up the <20 LED, :-(
Kind Regards
Rob
Bookmarks