Just to complete the information, I was using a 18F2620.I'm not sure what chip you were using here, but I dont think it was the 1220, I cant find any refference to CMCON in the data sheet.
You should ignore the CMCON register since 18F1220 has no comparators.
Al.




Bookmarks