Author Topic: PIC18F252/2320 tool support?  (Read 725 times)

0 Members and 1 Guest are viewing this topic.

Offline dobsonr741Topic starter

  • Frequent Contributor
  • **
  • Posts: 674
  • Country: us
PIC18F252/2320 tool support?
« on: February 15, 2024, 05:34:26 pm »
Are these MCUs still considered supported? I found an old stash about 50 pieces. Installed MPLAB and it says “no MCC content” for them. My interest is to use them them as  I2C GPIO extender.
 

Offline woofy

  • Frequent Contributor
  • **
  • Posts: 334
  • Country: gb
    • Woofys Place
Re: PIC18F252/2320 tool support?
« Reply #1 on: February 15, 2024, 08:58:33 pm »
They predate mcc and have never been supported by it.
You can still use assembler or c with them, you just have to initialize the registers yourself.

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14481
  • Country: fr
Re: PIC18F252/2320 tool support?
« Reply #2 on: February 15, 2024, 09:32:55 pm »
The PIC18F2320 is still in active production and supported by Microchip XC8 and MPLAB X.
https://www.microchip.com/en-us/product/PIC18F2320

I don't know what the deal is with MPLAB, I don't currently use it. But for the compiler, I'd be looking for XC8, not "mcc".
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2550
  • Country: us
Re: PIC18F252/2320 tool support?
« Reply #3 on: February 15, 2024, 11:43:41 pm »
Here is the xc8 compiler ver2.45 supported devices list.
 

Offline dobsonr741Topic starter

  • Frequent Contributor
  • **
  • Posts: 674
  • Country: us
Re: PIC18F252/2320 tool support?
« Reply #4 on: February 16, 2024, 02:56:57 pm »
So far so good, XC8 supports. Have anyone experienced using (and locating) the legacy peripheral libraries? In 2020 it was offered, now I can not find it on the downloads anymore.

https://microchip.my.site.com/s/article/Legacy-Peripheral-Libraries
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5912
  • Country: es
Re: PIC18F252/2320 tool support?
« Reply #5 on: February 16, 2024, 03:09:55 pm »
In the archived section. Search "Peripheral Libraries" there.
https://www.microchip.com/en-us/tools-resources/archives/mplab-ecosystem
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline dobsonr741Topic starter

  • Frequent Contributor
  • **
  • Posts: 674
  • Country: us
Re: PIC18F252/2320 tool support?
« Reply #6 on: February 16, 2024, 03:43:46 pm »
Thanks! Legacy libs installed sided by side to the latest XC8. The only caveat it can not be done on a Mac. The legacy library installer way past their expiration date, they are 32 bit. So planted both the libs and XC8 as Windows app in a Crossover bottle.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14481
  • Country: fr
Re: PIC18F252/2320 tool support?
« Reply #7 on: February 16, 2024, 09:32:56 pm »
Never used their peripheral libraries back when I was using the PIC18. I really suggest doing without it - the datasheets are pretty good overall and peripherals are decently documented. Using registers directly will save you significant code size and a lot of frustration IMO. But just a thought.
 

Offline woofy

  • Frequent Contributor
  • **
  • Posts: 334
  • Country: gb
    • Woofys Place
Re: PIC18F252/2320 tool support?
« Reply #8 on: February 16, 2024, 10:26:36 pm »
I agree, I wouldn't bother with the peripheral libs for this. As I said above, you are better to configure the registers yourself, the datasheets are clear and descriptive. MPLABX will generate the config table too. Go to Window->Target Memory View-> Configuration bits. Click generate code when done and paste into your project.

Offline dobsonr741Topic starter

  • Frequent Contributor
  • **
  • Posts: 674
  • Country: us
Re: PIC18F252/2320 tool support?
« Reply #9 on: February 18, 2024, 01:32:21 am »
Thanks all. Got the blinky going. To my biggest surprise, the Wisp648 I built 15 years ago, along with the programmer app in .NET worked like a charm.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf