there's a simple answer to this. There's no analog to digital converter in the PIC16F628. You have only analog comparator. Wich is a big difference. This is also why you have those error message. If you want some PIC with analog to digital converter you may use the following
PIC16F877,876...
PIC12F675,683
PIC16F819
and many others.
BTW if you want to have a POT reading, there's a function called POT or RCTIME that allow to do something like this in addition of one capacitor. Inputs must be set to digital to perform those statements. CMCON=7
See PBP manual or Melabs website for some code examples.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks