Questions tagged [pic32]

PIC32 is a family of 32-bit microcontrollers made by Microchip Technology. They contain a MIPS32 core, developed by MIPS Technologies.

PIC32 is a family of 32-bit microcontrollers made by Microchip Technology. They contain a MIPS32 core, developed by MIPS Technologies.

PIC32 microcontrollers have been announced in November 2007

Features include

  • Execution speed up to 80 MHz
  • Flash size up to 512 kByte
  • Programs can be executed from RAM
  • Available in different packages, including Dual in-line (DIP)

A PICkit3 is required to program these microcontrollers. Microchip offers an IDE (MPLAB X) which includes a modified GCC compiler (xc32). It is possible to compile programs for PIC32 using the free mips-elf-gcc compiler as well.

172 questions
2
votes
1 answer

PIC32 UART: U1RXREG Register Never Contains Any Values Other Than 0

I've attached an image showing my oscilloscope readout which is from the code below. Context: I have a Pi and a PIC which need to communicate through UART connection. I've implemented my own flow control which can be seen in the image attached [RTS…
james
  • 21
  • 2
2
votes
1 answer

MY SPI receive buffer always returns 0xFF

I am trying to interface SST26 with Pic32MX470F using Microchip Harmonyv 2.02b SPI drivers. I am able to write/ read correctly according to what I see on my logic analyzer as both MISO and MOSI lines show me the correct data. The problem I am facing…
abdullah
  • 65
  • 10
2
votes
2 answers

programming PIC32MX250F128B with Pickit3

I am successfully programming PIC32MX250F128B using Pickit3. I have written a code where, when I press a I am getting 100 data from vibration sensor. Now if I want to get another 100 data, either I have to disconnect and then reconnect the 10k ohm…
2
votes
2 answers

Embedded C, Bootloader configuration for PIC32MX795F512L

In MPLAB, I need to use bootloader for PIC32MX795F512L. I am able to program boot section into kseg boot memory till 0x8fc00000 and application code into kseg0_program_mem at 0x9d000000. I can jump from bootloader to application using jump to addr…
2
votes
2 answers

Program a pic32mx250f128b with pic32prog on an arduino uno

I'm currently trying to burn the pinguino bootloader in a pic32mx250f128b which is 5V tolerant with an arduino uno. I'd want to try pic32 chips, but I haven't a pickit3 now, I can only access to pickit2. So to burn the bootloader I'm using an…
Elominp
  • 59
  • 5
2
votes
2 answers

Could I use preprocessor to make this one clearer?

I was writing a little source file function for my Pic32 and I got stucked on one thing. It's basically an utility that should store incomming char data into buffer and then, if '\r' is recieved, it compares the buffer against list of commands (in…
L. Zeda
  • 123
  • 1
  • 1
  • 10
2
votes
1 answer

Bitwise operation error with long long pic32

I am working wiht pic32mx controller and using the C32 toolsuite v2.02 compiler amd MPLAB-X IDE v 3.05. I am using the bit wise operation with the long long variable but getting erroneous result. int main() { long long data0, data1=0; …
2
votes
2 answers

When including headers in a C program, how does the linker/compiler find the corresponding code?

I understand how linking and compiling works when creating .c and .h files and adding them to my project. But what happens when I add headers like stdio.h to my project? I understand that the linker searches for the .h file in some standard…
Drew
  • 219
  • 3
  • 15
2
votes
0 answers

Sending wrong data by TX/ UART

I'm actually working with a PIC32MX795F512L and MPLABX V2.10 and XC32 on a little project et I need to send data (for now, just 0 or 1) via RX/TX to "something" that convert it to USB. The problem is that i'm receiving strange things #define…
DesireM
  • 23
  • 5
2
votes
1 answer

Use libpic30.h with PIC32

Now I'm developing my own port to PIC32 and I need to use libpic30.h library. I have been reading about it and looking for the same library to PIC32 (starter kit III PIC32MX450/470 MCU) and I think it doesn't exist. That's right? If it exist…
2
votes
1 answer

XC32 migrating from 1.32 to 1.34

I'm using XC32 and MPLABX for work. After a year of projects I've decided to try to upgrade to new XC32 version. I've seen that legacy libraries like plib are no longer supported and I'd like to know if someone have tried to migrate old projects to…
2
votes
1 answer

Include problems with FreeRTOS Simple Demo on PIC32MX

I've been trying to get my hands on freeRTOS at work for a few days now. Since I'm done reading the documentation on the website, I'm now trying to work a simple demo on a PIC32 starter kit (with MPLABX. So far it works, the led blinks and the…
2
votes
1 answer

no definition of "mainSW1_INT_BIT" in using freeRTOS real time kernel PIC32

I am following "Using the FreeRTOS real time kernel a practical guide - PIC32 edition". On listing 52 of the page, there is no definition of mainSW1_INT_BIT. I am confused as I don't have any source zip of the book. The code snippet is: void…
Main
  • 1,804
  • 3
  • 20
  • 28
2
votes
4 answers

PIC32 dereferencing pointers possible compiler bug

I am working on some code for the PIC32MX795F512L using the XC32 compiler. I need to read data out of a buffer passed to a function as a void*. I need to read the data as an array of unsigned 32 bit integers. the problem is when I cast the void* to…
user545199
2
votes
1 answer

MPLAB X sample project for Ethernet connection running on PIC32MZ

I have downloaded and installed the MPLAB X IDE v2.05 and the latest Harmony v0.8. However I don't find any sample project that would demo an Ethernet connection using the PIC32MZ EC starter kit ? My goal is to try an SSL connection, but I'd like…
1
2
3
11 12