Author Topic: PIC24HJ128GP506 How to program Blinkey?  (Read 408 times)

0 Members and 1 Guest are viewing this topic.

Offline tru3533Topic starter

  • Regular Contributor
  • *
  • Posts: 130
  • Country: no
PIC24HJ128GP506 How to program Blinkey?
« on: July 24, 2023, 04:45:43 am »
Got hold of a tray with PIC24HJ128GP506, and got very optimistic about this grate opportunity to learn some C code and programming a PIC MCU.
Installed MPLAB X IDE v6.05 (latest support for Pickit 3, that I have)

First bummer MCU is to old for MCC support, so no automatic pin configuration.
Then I started to look for getting started documentation, example code, etc, but I can't seem to find any.

Do you have any idea where to find?
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12436
  • Country: ch
Re: PIC24HJ128GP506 How to program Blinkey?
« Reply #1 on: July 25, 2023, 02:50:38 pm »
I mean... did you even bother to look on the product page?

Right on https://www.microchip.com/en-us/product/PIC24HJ128GP506#document-table (admittedly, under "documentation" which is a bit wrong), they have code examples to download. They're projects for the old MPLAB, which in theory you should be able to import into MPLAB X, but you may consider just installing the old MPLAB to verify that it can be set up correctly for your chip.

With that said, I certainly wouldn't use that chip if you're quite new to C programming. Configuring MCUs by hand is a pain in the butt, so a fully-supported dev board (like Arduino, ESP32, STM Nucleo, etc.) is probably a better place to start. Or at least a PIC that's supported by MCC. My very first exposure to anything PIC was on a board I designed (boss told me to use an 8-bit PIC so I chose one with peripherals that matched my application well) using the PIC16F18857. It worked perfectly, and with MCC getting it up and running was not hard at all. All the same, without some prior microcontroller experience (mostly Arduino and ESP32 under Arduino, plus some STM32), it would have been harder, since you still need to understand what it is you're configuring, even if it is done visually!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf