Migration Issue with ANSEL bit
Posted: Tue Jul 10, 2018 6:51 pm
I am currently migrating from a 16f876a to a 16f886 and having some issues. The biggest seems to be a difference in the ANSEL bits. I thought it would be just be configuring the new chip and be done.
To start my program has been running great on the 876a but does not on the 886. The migration documents said that the ANSEL bits have to be set on the 886. I guess on the 876a they were automatically set? I am only using AN0 and AN1. Any idea how to do this in Flowcode? Currently I am reading two potentiometer values and using them to adjust a PWM output. Any help would be much appreciated.
To start my program has been running great on the 876a but does not on the 886. The migration documents said that the ANSEL bits have to be set on the 886. I guess on the 876a they were automatically set? I am only using AN0 and AN1. Any idea how to do this in Flowcode? Currently I am reading two potentiometer values and using them to adjust a PWM output. Any help would be much appreciated.