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
1
vote
1 answer

No C32 compiler option for PIC32MX270F256B

I am trying to compile a code written for PIC32MX270F256B. For this I want to use C32 compiler in MPLAB X IDE V4.15. I am using C32 compiler successfully in all other projects but weirdly enough there is no option for C32 compiler for my…
Tabish Saifullah
  • 570
  • 1
  • 5
  • 25
1
vote
1 answer

No rule to make target mbascii.c required by mbascii.o?

I opened a project from a colleague in mplab X, it was in an archive(.zip) I added to the original path where are all my projects and I added the correct path to Harmony, but this is the error when I build. I configured it for the correct target…
1
vote
1 answer

PIC32MZ UART RX Interrupt

Porting from PIC32MX to MZ (PIC32MZ2048EFG100) and am banging head against wall trying to generate a simple RX interrupt on UART3. Please see code below. void main(void} { __builtin_disable_interrupts(); //Ensuring all pins config as…
1
vote
1 answer

Microchip Harmony timing issues on PIC32MZ

I am using MPLABX + Harmony framework to write code for a PIC32MZ1024EFK064. My goal is, to trigger the ISR every microsecond. In order to test this, I toggle a LED after 1000000 cycles of the ISR: uint32_t xxx = 0; void __ISR(_TIMER_2_VECTOR,…
Oliver
  • 31
  • 7
1
vote
1 answer

MIPS and PIC32 LED blink delay

LA $t1, TRISE LI $t2, 0x0000 SW $t2, 0($t1) LA $t1, TRISD LI $t2, 0xFFFF SW $t2, 0($t1) LI $t8, 0b0000000001 LA $t1, PORTE LA $t2, PORTD LI $t7, 0x2000 Loop: SW $t8, 0($t1) SLL $t8,$t8,1 JAL determinedelay NOP SW $t8, 0($t1) SLL $t8,$t8,1 JAL…
rjmitty1000
  • 101
  • 1
  • 6
1
vote
1 answer

My first PIC32MX ISR not firing, code is hanging

I'm just getting started with a PIC32MX340F12, and MPLABX. My first attempt was to write a timer interrupt, so I worked with the datasheet, compiler manual, and examples and came up with the below. But it doesn't work... the interrupt never fires,…
Chris
  • 629
  • 1
  • 10
  • 28
1
vote
1 answer

How to include custom C library

I'm trying to implement a custom library that I found oline. Here is the link: http://rinkydinkelectronics.com/library.php?id=80 I wanna use some of the functions to help me display the game snake with the chipKIT basic I/O shield for the UNO32…
Jojo
  • 61
  • 7
1
vote
1 answer

PIC32 - PWM and Sin-wave

I am trying to make a program that generates sin-waves that i will output through a passive summer and thus make the microcontroller play sounds when i press buttons. I have got the PWM to work, and can play notes using constant values, but I would…
1
vote
0 answers

PIC32 USB CDC is slow to write and raises erroneous flag

I am currently attempting to write code for a pic32MZ2048EFH100 which receives and responds to messages from a custom program on a PC through the USB CDC drivers in harmony. Currently, the pic is able to both send and receive messages. However,…
CharlieH
  • 11
  • 2
1
vote
1 answer

PIC32MZ2048ECH144 USART- Junk characters transmitted

I am new to MPLAB X Harmony framework and also in working with microcontrollers. I am working on PIC32MZ2048ECH144. I wanted to transmit a simple string using USART and see it displayed in RealTerm terminal.(I have tried HyperTerminal also.) …
1
vote
2 answers

PIC32MX795F512H UART communication to RS232

I am currently working for the first time with a PIC microcontroller. In the code I specified exactly which PIC, compiler, etc I am using. Maybe this is of help. I am trying to set up UART communication on the PIC32 and send a hex code like 0x41 for…
1
vote
1 answer

How to calculate negative number in MIPS assembly?

I am trying to compile following assembly source code, First here is code : #include .global main .text .set noreorder .ent main main: nop /* "no operation"... replace this. */ nop /* "no operation"... replace this. */ nop /* "no…
online.0227
  • 640
  • 4
  • 15
  • 29
1
vote
2 answers

If statement is skipped

I have a very interesting problem come up while programming in MPLAB IDE v8.92. This is just a snipit of the code but this is where the problem is occuring: struct data { INT32 value; }; struct data array[8] = {{0},{0},{0},{0},{0},{0},{0},{0}};…
R. Johnson
  • 102
  • 12
1
vote
1 answer

I2C communication between pic32 and MPL3115A2 Altitude/Pressure Sensor

I'm trying to do something really simple and I'm having a bit of trouble getting it to work. I'm working with the MPL3115A2 Altitude/Pressure Sensor and a pic32 uC32 board, and I'm trying to communicate between the two using I2C. (uC32 board is…
Kyle
  • 15
  • 4
1
vote
2 answers

PIC32 wrong SPI MOSI

I'm trying to develop a interface SPI and I have started with a simple configuration. The question is that SCK seems to work fine but MOSI doesnt works. Here is my code and my test logical tester. #include #include //…