CHIP Data

Saša
2013-10-16
2013-10-16
  • Saša
    Saša
    2013-10-16

    Hello,

    Compiler reports a-d.h error when using PIC 16F628a.
    I look in chip data and inside is:
    Prog=2048
    EEPROM=128
    RAM=224
    I/O=16
    ADC=0
    MaxMHz=20
    IntOsc=4
    Pins=18
    Family=14
    ConfigWords=1
    PSP=0
    MaxAddress=511

    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?

    Many thanks.

     
  • Hugh Considine
    Hugh Considine
    2013-10-16

    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.