CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Can I add a PIC16F648A to device list for 3.147 compiler?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kaprocki



Joined: 13 Oct 2003
Posts: 1

View user's profile Send private message

Can I add a PIC16F648A to device list for 3.147 compiler?
PostPosted: Mon Oct 13, 2003 8:33 am     Reply with quote

I'm using the CCS 3.147 compiler and want to switch from the PIC16F628A to the PIC16F648A which is basically the same chip with more memory. The F648A isn't in the device list to choose from. How can I add it? How do I create a header file?
Thanks.
Ed
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 13, 2003 12:22 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group