View previous topic :: View next topic |
Author |
Message |
dmilrtime
Joined: 17 Mar 2022 Posts: 6
|
Moving from PIC16F1517 to PIC16F15275 |
Posted: Thu Mar 17, 2022 11:18 am |
|
|
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: 19496
|
|
Posted: Thu Mar 17, 2022 11:29 am |
|
|
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: 1907
|
|
Posted: Thu Mar 17, 2022 4:15 pm |
|
|
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: 19496
|
|
Posted: Fri Mar 18, 2022 3:15 am |
|
|
If you look, the 15275 has 14K of ROM, while the 1517 only has 8K.
So any increase should be easily handled.
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
|
|
Posted: Fri Mar 18, 2022 4:58 pm |
|
|
Thanks, for the info. I will look to upgrade and hopefully that fixes my issue. |
|
|
dmilrtime
Joined: 17 Mar 2022 Posts: 6
|
|
Posted: Wed Mar 30, 2022 11:17 am |
|
|
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 |
|
|
|