PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Oct 13, 2003 12:22 pm |
|
|
The problem is not in the header (.h) file. The 16F628.h and 16F648a.h
files are very similar. The #device statements at the start of the files
are different. Also, the comments which describe the #fuses are
different. Here are the differences:
Code: | Comparing files 16F628.h and 16f648a.h
****** 16F628.h
//////// Standard Header file for the PIC16F628 device ////////////////
#device PIC16F628
#nolist
//////// Program memory: 2048x14 Data RAM: 223 Stack: 8
//////// I/O: 16 Analog Pins: 0
//////// Data EEPROM: 112
//////// C Scratch area: 77 ID Location: 2000
//////// Fuses: LP,XT,HS,EC,NOWDT,WDT,NOPUT,PUT,PROTECT,PROTECT_50%
//////// Fuses: PROTECT_75%,NOPROTECT,NOBROWNOUT,BROWNOUT,MCLR,NOMCLR,LVP
//////// Fuses: NOLVP,ER_IO,INTRC_IO,ER,INTRC,CPD,NOCPD
////////
****** 16f648a.h
//////// Standard Header file for the PIC16F648A device ////////////////
#device PIC16F648A
#nolist
//////// Program memory: 4096x14 Data RAM: 255 Stack: 8
//////// I/O: 16 Analog Pins: 0
//////// Data EEPROM: 256
//////// C Scratch area: 77 ID Location: 2000
//////// Fuses: LP,XT,HS,EC,NOWDT,WDT,NOPUT,PUT,PROTECT,NOPROTECT,BROWNOUT
//////// Fuses: NOBROWNOUT,NOMCLR,MCLR,NOLVP,LVP,INTRC,EC_IO,INTRC_IO,EC
//////// Fuses: NOCPD,CPD
////////
****** |
To add support for the 16F648A, you will need to change the Device.dat
file. If you have PCW, then you get a device editor, which allows you
to make these changes. |
|