Add the lines:
Near the top of your program. This should set your analog ports as digital. Then the TRIS register will have an effect.Code:ADCON1=7 CMCON=7
Best Regards,
Paul
Add the lines:
Near the top of your program. This should set your analog ports as digital. Then the TRIS register will have an effect.Code:ADCON1=7 CMCON=7
Best Regards,
Paul
Bookmarks