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
0
votes
1 answer

Read from a certain part of a file PIC32MX

I am using PIC32MX in a design made by myself and everything is working perfectly. Now I am trying to implement a feature which is basically read from a file sequentially until I found a certain frame of characters, so I am doing: while(…
scuba
  • 121
  • 4
0
votes
1 answer

Can't access timer 4 pic32 with TMR4, T4CON etc

I've looked in the pic32ms.h file and it seems there are no definitions for timer 4. For timer 2 it has the following: /* * Timer2 registers */ #define T2CON PIC32_R (0x0800) #define T2CONSET PIC32_R (0x0808) #define TMR2 PIC32_R…
ChrisA
  • 15
  • 1
  • 4
0
votes
0 answers

How to communicate to a SQL Server database using cellular data services from a SIM5215E chip?

I am working on a project where I am trying to use cellular data services on the 3G WCDMA network in order to send data to a SQL Server database. On the client side, I am using a SIM5215E chip to connect the cellular network. This chip is being…
eegonzales
  • 33
  • 1
  • 7
0
votes
1 answer

PIC32 speed : Optimizing c code

I want some suggestions to optimize my code which is a simple one but it need to be fast and by fast I mean something less than 250 ns. my first code was slow , about 1000 ns but after some works its about 550 ns but I believe it can be done faster…
0
votes
1 answer

How to find which I/O register in PIC32 my input is connected to

I have a PIC32MX795F512L on a chipkit max32. I need to use assembly to read when a button I have connected has been pushed. In looking at the documentation (http://ww1.microchip.com/downloads/en/DeviceDoc/61120D.pdf) it says that the TRISx, PORTx,…
Daniel H
  • 389
  • 4
  • 19
0
votes
1 answer

How to find a file using MDD Library for PIC32

I have a PIC32 microcontroller with a SD Card attached to my design and I'm using the MDD library to implement an algorithm in order to find a specific file in the SD CARD. Is there someone, who can guide/tell me, which function should I use?
scuba
  • 121
  • 4
0
votes
1 answer

Linker file unselected

I am dealing with a problem in my application with the linker file. What's happening is in the explorer tab it seems the linker file it's not "selected" I have to refer that I also have a bootloader. I'm getting an error of "(944) data conflict at…
scuba
  • 121
  • 4
0
votes
0 answers

Multicast DNS problems

Feeling a bit lost after many days of relentless digging and looking for inspiration... The story so far:- I have a Microchip PIC32-based wifi-dev board running TCP/IP stack v5.36. After boot-up, the app works fine when requesting the default…
quixote
  • 23
  • 6
0
votes
1 answer

pic32 only receives 1 byte in spi

I'm struggling with, probably, a very simple problem. I have a Cypress CY8 controller acting as SPI master, which should communicate with a PIC32mx in slave mode to exchange data packets. However i cannot even fix simple transmission of multiple…
tim kers
  • 1
  • 3
0
votes
1 answer

Interrupting and using UART

I'm struggling on a project so, here I am. My problem is sending data via UART. In fact, it's not that the problem because I succeed in sending data thanks to : int x=1; #define var 00000001 void InitUART() { …
DesireM
  • 23
  • 5
0
votes
0 answers

PIC32 crashing (bad pointer) on malloc call after usage of free()

I'm working on a project involving a PIC32MX220f032b in which i have to use dynamic memory allocation to declare an unknown number of structs in a linked list. The malloc calls and everything worked fine, until i went on implementing the removal of…
tim kers
  • 1
  • 3
0
votes
2 answers

PIC 32 TTL communication

I've been given a PIC32mx795f512L in order to build a spy for I2C, I will connect 3 wires on SDA, SCL and GND and then I have to detect the sent data. This part is ok. Now, once I have the data, I have to send it via RX, TX to a computer (in fact, I…
DesireM
  • 23
  • 5
0
votes
1 answer

MPLAB vs MPLABX loader file

MPLAB uses procdefs.ld as a loader configuration file: /************************************************************************* * Processor-specific object file. Contains SFR definitions. …
Dennis Kerrisk
  • 2,715
  • 2
  • 17
  • 22
0
votes
1 answer

GPS ublox-6 neo6 communication with Microcontroller using SPI

I'm working with a GPS module, ublox-6 neo6 and trying to pull data off of it from a pic32 microcontroller using SPI. I'm using GPIO pins to do this so the SPI library is off the table. Apparently, all I need to do is send it 0xFF and read what…
Kyle
  • 15
  • 4
0
votes
1 answer

On a PIC32, how are arrays of INT16's allocated in memory?

Basically I have a bunch of 2 byte ints written sequentially in 32bit flash memory. How do I access these as an array of int16's? I wrote the array irrespective of word boundaries. But I could add padding so that the array starts on a word boundary…
Drew
  • 219
  • 3
  • 15