Hi I am beginner with embedded. I have an sd card/ usb datalogger project with PIC32mx250f (It might be changed). My advisor said to me don't use CCS C.
Which program language should i use to compile PIC32mx or 24 series on MPLABX ?

Thanks a lot.

temtronic

Joined: 01 Jul 2010Posts: 5878Location: Greensville,Ontario

Posted: Wed Feb 28, 2018 4:13 pm

What does your 'advisor' recommend as far as a language ?
Ask WHY he doesn't recommend CCS C !!
For me a 'beginner' should be taught the basics of assembler THEN go to a 'higher' level language. Knowing a chip at machine code level gives you a LOT of knowledge on how it works, why it works and how to get it to do compliated tasks with greater speed and less memory.
Jay

PCM programmer

Joined: 06 Sep 2003Posts: 20172

Posted: Wed Feb 28, 2018 4:41 pm

CCS doesn't support PIC32.

carllw

Joined: 22 Feb 2018Posts: 5

24-32 Bit Microcontroller

Posted: Thu Mar 01, 2018 5:54 am

Yes today he said i should write code with C32 language.

I have one question more.

For PIC32MX250f, which pin(s) can i use for SPI protocol ? (Save data to SD Card with sd card module)
When i look at datasheet I didn't see SPI pins directly, maybe it is my mistake but if anyone help me i will be grateful.

Ttelmah

Joined: 11 Mar 2010Posts: 12736

Posted: Thu Mar 01, 2018 9:46 am

This is a group for questions about CCS C....

You need to be talking on the Microchip group not here.

However you need to read the data sheet. Not just look at pinouts and expect peripherals to be shown. Most of the bigger PIC's support PPS, so you can map peripherals to many pins. There should be several pages of tables after the pin diagram telling you which peripherals can be connected where. If I remember these chips correctly, the SPI clock pins are fixed, but both the input and output data pins can be moved using PPS.

asmallri

Joined: 12 Aug 2004Posts: 1544Location: Perth, Australia

Re: 24-32 Bit Microcontroller

Posted: Fri Mar 02, 2018 1:40 pm

carllw wrote:

Yes today he said i should write code with C32 language.

I have one question more.

For PIC32MX250f, which pin(s) can i use for SPI protocol ? (Save data to SD Card with sd card module)
When i look at datasheet I didn't see SPI pins directly, maybe it is my mistake but if anyone help me i will be grateful.

A couple of things are obvious. You really are a beginner - your adviser does not like you. Picking a complex processor where you have to master so much of the internals such as pin mapping of peripherals on a non user friendly processor family with weak "Harmony" library, poorly implemented user forum and a weak MPLAB-X IDE, is not something I would wish on a beginner.

C32 is not a language, it is a (old) version of Microchip's C compiler. It was been replaced by XC32 a few years back. Microchip offer the XC32 C and separately a XC32 C++ version of compilers for the PIC32 family.

You mentioned you had the option of changing the processor. If it is your option to be able to change processors then a much easier solution, assuming you want to stay with Microchip processors, is to use a PIC24 or, if your need DSP capabilities, a dsPIC33. This would then enable you to use the CCS PCD compiler, provide you access to CCS extensive library of functions and third party drivers, and you could use this awesome user forum.

You can use the CCS compilers with the Microchip IDE if you want to. I use the older MPLAB IDE (not the MPLAB-X IDE) with CCS compilers as my preferred development environment and, based on my personal experience, I can go from idea to product with this combination is half the time I can with the same processor using Microchip compilers for all the reasons already mentioned._________________Regards, Andrew