I changed out the ANSELA line... not quite sure what is wrong with it.
(and removed the DEFINE ADC_BITS 10 line as well)
seemed correct looking at the datasheet.
I am using AN3 as my analog input which is RA4, the readings I am getting
with the debug output are correct (phototransistor reading light levels)
also tried to enable/disable MIBAM within the loop, now the led doesn't trigger at all, with the enable/disable just around the debug statment, it did work once or twice before stopping... very strange.
wondering if there is some other peripheral that needs to be disabled perhaps?
these new pics have pretty much everything multiplexed except the kitchen sink it seems.
![]()
Bookmarks