Compiler reports a-d.h error when using PIC 16F628a.
I look in chip data and inside is:
I think this is wrong, it should be 4 AD channels,
also there is no ad interupts.
When I switch to 16F688 program compiles with no errors, so mine conclusion there is no error in a-d.h file but instead in .dat file!
Please can someone make good dat file for that PIC?
The 16F628A doesn't actually have an A/D converter, so the error messages are normal. It does have a comparator, which has analog input pins labelled AN0 to AN3, but these aren't connected to an A/D. This has confused quite a few people before! I think it is possible to set up the comparator to act as a basic A/D by using the internal voltage reference, but I haven't tried this.
If you need to measure a resistance, try using the Pot command instead.