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

Moving from PIC16F1517 to PIC16F15275

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



Joined: 17 Mar 2022
Posts: 6

View user's profile Send private message

Moving from PIC16F1517 to PIC16F15275
PostPosted: Thu Mar 17, 2022 11:18 am     Reply with quote

Like most of us out there sourcing MCU's has been a challenge.

We have a couple of older products in production based on the PIC16F1517. These of course have completely dried up out there so we found the PIC16F15275 as a drop in replacement.

The PIC16F15275 has a subtle difference in timers but mostly looks like an identical upgrade. So what I need to do is to recompile my project for the new target.

However, I am not finding a .h file or the ability to target the PIC16F15275 in the CCS library. Does anyone know where or how I can get the libraries for this newer PIC?

PCM Ver: 5.025
PCH Ver: 5.025

Thanks for any help
Ttelmah



Joined: 11 Mar 2010
Posts: 19551

View user's profile Send private message

PostPosted: Thu Mar 17, 2022 11:29 am     Reply with quote

Upgrade.
The chip was added in the early 5.10x compilers near the start of 2021.
Not surprising when this chip was released about 7 years after your
compiler version, that it isn't supported.
newguy



Joined: 24 Jun 2004
Posts: 1909

View user's profile Send private message

PostPosted: Thu Mar 17, 2022 4:15 pm     Reply with quote

Beware a potential issue with compiled code size. IIRC sometime around your compiler's vintage or shortly after, CCS changed some things and one of the outcomes was that compiled size seemed to grow.

That said, if you play with the optimization you should be able to make things easily fit if your original compiled size was close to the limit.
Ttelmah



Joined: 11 Mar 2010
Posts: 19551

View user's profile Send private message

PostPosted: Fri Mar 18, 2022 3:15 am     Reply with quote

If you look, the 15275 has 14K of ROM, while the 1517 only has 8K.
So any increase should be easily handled. Very Happy
There will be slight increases simply because it takes more code to
handle bigger memory sizes, and a you say there was a slight 'growth'
with some of the compiler fixes, but I'd only expect a few hundred bytes.
dmilrtime



Joined: 17 Mar 2022
Posts: 6

View user's profile Send private message

PostPosted: Fri Mar 18, 2022 4:58 pm     Reply with quote

Thanks, for the info. I will look to upgrade and hopefully that fixes my issue.
dmilrtime



Joined: 17 Mar 2022
Posts: 6

View user's profile Send private message

PostPosted: Wed Mar 30, 2022 11:17 am     Reply with quote

Solved - I purchased the update and now have a new compiler version that supports the newer generation of PIC's.

Thanks, everyone for the help
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