Microcontroller Tutorials

Arduino, Raspberry Pi, PIC, Beaglebone Resources

First Use of Microchip's Curiosity HPC

As a lifelong PIC fan, I was super thrilled when Microchip sent me a free unit of their Curiosity HPC development board. I’ve been working on PICs for years by just mounting them on breadboards and using PICKit to flash programs. This takes time and so when I’m faced with urgent projects, I had to switch to an ATMega/Arduino. Will the Curiosity help reduce development time? Let’s find out.

Close Look

I found out that Microchip offers 8-bit, 16-bit and 32-bit curiosity boards. Mine is the 8-bit High Pin Count (HPC) version featuring the PIC16F18875. This microcontroller is a modern midrange device from Microchip with features that make the 877A look primitive. I’ll be writing a series of tutorial for the 16F18875 in the nearest future.

The two user buttons at the bottom part are wired to pins RB4 and RC5 in a normally-high setting (according to the datasheet). Above the buttons are four LEDs, wired to RA4, RA5, RA6 and RA7. There’s also a potentiometer wired to RA0 as shown.

 

Curiosity HPC Buttons

The 40-pin PICs seem to have the same pin mapping so this could mean other 40-pins (say, 16F877A) can replace the included 16F18875.

Curiosity HPC 16F18875

The two row female headers could be very helpful during development stages. One gripe I had with the Arduino is that its almost impossible to connect two wires to a single pin. Looks like Microchip had that in mind when designing the Curiosity.

On the left side is the microUSB port, 5V to 3.3V jumper and a PIC24J256 to handle USB communication.

Curiosity HPC PIC24

There are also two mikroBUS ports on the right side of the board:

Curiosity HPC MikroBUS

I can’t tell you more about mikroBUS right now because it’s the first time I’ve encountered it. But, it looks like it works similar to Arduino shields. In fact, my Curiosity package came with a Weather Click:

I’ll be writing another tutorial for using the Weather Click with the Curiosity board.

Setting Up the Curiosity HPC with MPLABX

There is reason to believe that the Curiosity board is designed to be seamless with Microchip’s MPLABX environment. If you are following this article as a guide, you must download MPLABX first.

First, I connected the Curiosity on my PC using a microUSB cable. The green power LED now turns on. Then, I opened MPLAB X and created a new standalone project:

Then I selected the PIC on the board, PIC16F18875:

The Curiosity should show up in the Tools pane:

I chose XC8 as my compiler for this example:

Then I named the project:

Once I’m on the editor, I wrote a code to flash one of the LEDs on the Curiosity board:

Here’s that code in case you want to try it:

Finally, I compiled and uploaded the code by just pressing the circled button:

If everything is successful, the LED on the board should now be flashing. It may take a longer time for the program to run for first-time-used Curiosity boards as it needs to download the bootloader and other configuration software.

That's it for my initial use of the Curiosity HPC. On my next article, I’ll be exploring the other parts of the board.

2 thoughts on “First Use of Microchip's Curiosity HPC

  1. How do you get from the window naming the project..........to a new window called blink? What new thing......are you calling blink? How do I make the window and where does that window go or belong.

    1. Hi,

      Sorry, I skipped how to add a new source file to the project. On the Projects tab on the left window, expand the project's folder (if not yet expanded) and you should see the "Source Files" folder. Right click on that and select New > main.c. That should allow you to create a new C file.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.