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

PIC32MX dma not triggered by adc

I’m trying to make a little application on the pic32mx795f512l but I can’t get it to work. What I want to achieve is that adc continuously gets the current analog value from channel 0 with the highest possible rate. If the 16 Word buffer is filled,…
peet
  • 11
  • 3
1
vote
2 answers

PIC32 WDT reset not working on some PIC32

I have a PIC32 reset function: void reset_cpu(void) { WDTCON=0x8000; EnableWDT(); // enable the WDT ClearWDT(); while(1){}; } It works on a PIC32MX360F512L but not on a PIC32MX695F512L. It just spins forever.…
Dennis Kerrisk
  • 2,715
  • 2
  • 17
  • 22
1
vote
1 answer

Bluetooth binary communication losed bytes

I work on a bluetooth communication between samsung Galaxy tab and a custom device. On the custom device there is a PIC32 (Microchip) and a bluetooth RN-42. The communication between the PIC and RN-42 is serial (UART). When I use text protocol all…
Franck M
  • 21
  • 3
1
vote
1 answer

Reading and Writing from IO pins in C on MPLab X IDE

I recently started work with a PIC32MX764F128H microcontroller, I'm used to doing things on PIC18 and PIC24.. . AKA using CCS C compiler, So I am curious if anyone knows how to do some really basic C code for a 32bit chip in MPLab X. I just want the…
Medic3000
  • 786
  • 4
  • 20
  • 44
1
vote
1 answer

SQL Server entry using URL querystring

I am getting a URL from PIC 32 controller using it's post function. which is like, www.example.com/Default.aspx?x=12&y=23 What I want to do is that when I get the URL, I want to store the values of x and y into SQL Server. I have launched a .aspx…
SPandya
  • 1,161
  • 4
  • 26
  • 63
0
votes
0 answers

Using a microchip Pic32 and LAN8740 series PHY, How so I read the values in the PHY status registers?

Using the Harmony 3 framework, I can get information on the MAC layer using: TCPIP_STACK_NetMACRegisterStatisticsGet() I am having trouble with the PHY not starting up though and want to read the 'control and status' registers listed in the…
0
votes
1 answer

Does a GCC compiler exist for the PIC32MZ series?

There is a GCC compiler for the PIC32MX series: http://ww1.microchip.com/downloads/en/DeviceDoc/README_c32_2_02.html However, I can't find one for the PIC32MZ series. Does it exist?
K.Mulier
  • 8,069
  • 15
  • 79
  • 141
0
votes
1 answer

PIC32CX register names not in header?

I'm trying to hack away using a PIC32CX BZ2. Since there's no code completion for some weird reason in MPLAB, I'm kinda forced to know the register names, or whatever is set declared in the header files. If they matched with the documentation and I…
0
votes
0 answers

FLash erase hang the other process in PIC32

I am using pIC32 mz series and trying to implement non blocking mode with interrupt and callback using flag. static volatile bool xfer_done = false; static void NVM_EventHandler(uintptr_t context) { xfer_done = true; } firmware_write()…
Piu
  • 19
  • 5
0
votes
0 answers

How to calculate the number of instructions that a microcontroller can execute before a specified event

I am trying to understand this exercise about PIC32 microcontroller. I have a SPI peripheral module which can operate with a peripheral clock as fast as 50 MHz and it is connected to Serial EEPROMs which operates with a maximum clock rate of 5…
0
votes
1 answer

Microchip Harmony I2C library writeread

I'm using MPLAB Harmony to program a PIC32. We have a accelerometer connected via I2C. Both lines are pulled up and the open drain is enabled. The Pins are set correct. Now, I'm trying to use Harmony to read out the "who am i" register from the…
Oscar K
  • 185
  • 1
  • 11
0
votes
0 answers

Why am I not getting the ACK bit in I2C communication?

I am developing a project that involves PIC32MK1024MCM064 communication with ESP32S3 and PCF8574 IO expander (for 16x2 LCD screen) via I2C. I have absolutely no problems with the PCF8574, I am getting my data packets, LCD screen works…
0
votes
1 answer

Program compiles but doesn't do anything

I've recently started exploring and reading about Microchip's PIC32 MCUs, most specifically for motor control. I had some job done over the years but was a long while and haven't used the IDE with evaluation board since university years. Been using…
0
votes
1 answer

PIC32MK1024MCM064 gets stuck in timer2 ISR

I am beginner exploring PIC32MK1024MCM064 timers. Just want to write simple code with self triggering timer and some main program in the background. So I achieved my code to get into the ISR part, but the code gets stuck in the ISR after first time…
0
votes
1 answer

Pointer illegal access to array on PIC32

I'm working on a project and I need to access an array of unsigned char that represent fonts for LCD. Some fonts need two to three bytes to represent each row. So I was trying to implement code like this const unsigned char font[]={...};//array of n…