It's very little different to the 16F876, if you look at https://www.electro-tech-online.com/custompdfs/2004/06/39591a.pdf it lists the differences. Basically the 876A has added comparators, but according to the migration datasheet above these are disabled on power up, so the code required is identical to the standard 876.
Yes, I know that 876 and 876a is the same in coding. However, we have to configure the chip in programming. Therefore, I would like to ask if you can use the same coding and using programmer for 876a? May we do this?
The problem is that my CCS C is old version. I use MPASM but trying using CCS C
Yes, I know that 876 and 876a is the same in coding. However, we have to configure the chip in programming. Therefore, I would like to ask if you can use the same coding and using programmer for 876a? May we do this?
The problem is that my CCS C is old version. I use MPASM but trying using CCS C
I'm not sure what you are asking?, do you mean the setting of the config fuses?.
The config fuses are slightly different, but simply setting it with a line like "__config 0x3BFF" rather than using the longer method would overcome that. Assuming the fuse settings are contained in the header file you mentioned, you could simply edit the existing header to make a new one, with the fuse settigns modified.
Also, you could simply set the fuses in your programmer software.
The device selection doesn't matter, Like Nigel said before, there is almost no diffirence between 16f876 and 16f876a as far as code is concerned. Just use the 16F876 settings and compile it for that processor, the generated code will work on a 16f876a...
I don't know the config settings are the same for both processors, but you could always change them manually in the programmer software
There's no device information in a HEX file, simply compile your code for an 876, it's no different code wise to an 876A - the only difference is a slight change in the config fuses - and you can either alter this in the programmer, or in your C source code. Presumably C allows you to set config fuses?.