Side note... there's no real need to redefine ANCON1, ANCON0 as i did if you use ANCON1_ALT, ANCON0_ALT within your code. Those two are defined in PIC18EXT.BAS.
Having _ALT written at the right of the register name, may remember you to set/clear WDTCON.4 bit? Maybe![]()




Bookmarks