Found another curiosity. There are two ways of setting PORTA.0 as ADC input on 887.
ANSEL=%00000001
ANSELH=%00000001
Both work equally. However, if ANSELH=%00000001 and ADCin statement is used (if not used, no problems), PORTB.2 becomes high
Figured it out by trial and error![]()
Bookmarks