Questions tagged [pic]

PIC is a family of Harvard architecture microcontrollers made by Microchip Technology.

PIC is a family of modified Harvard architecture microcontrollers made by Microchip Technology, derived from the PIC1650 originally developed by General Instrument's Microelectronics Division. The name PIC initially referred to "Peripheral Interface Controller". wikipedia


For questions regarding Position-Independent Code, use instead.

1624 questions
3
votes
2 answers

How to determine malloc heap statistics in a PIC32

I'm using malloc()/free() and friends on a pic32 processor, so no virtual memory and all that, just a fixed size heap that I declare at link time. Is there any way to determine at runtime, how much I've currently malloc'd? How much is available…
Travis Griggs
  • 21,522
  • 19
  • 91
  • 167
3
votes
3 answers

decompiling assembler to c

I'm faced with finding a bug in a 10,000+ lines assembly program, and maintaining it in the future. It concerns assembler code for a PIC18 microchip microcontroller. The code was written by a former colleague who is no longer available, and he left…
valki
  • 73
  • 2
  • 7
3
votes
1 answer

MRF24WB0MA WiFi with 32MX4 Beginners Tutorial

I'm a beginner at Microchip Programming and I want to design a robot that can connect to WiFi. I have the Cerebot 32MX4 Microcontroller (PIC32MX460F512L) and the PmodWiFi card (MRF24WB0MA). I have absolutely no idea where to start. I have tried…
Gavy
  • 1,939
  • 1
  • 19
  • 20
3
votes
1 answer

Wake PIC16F1825 from sleep with RS232

Is it possible to wake a Microchip PIC16F1825 from sleep using RS232 without looking characters? Because one of the permissible RX pins supports interrupt on change, I thought this might be possible. Has anybody implemented this successfully?
ARF
  • 7,420
  • 8
  • 45
  • 72
3
votes
7 answers

Are any MP3 encoder libraries PIC microcontroller compatible?

I know that are many MP3 encoder libraries, but any of them could work on a PIC microcontroller?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
3
votes
2 answers

Adding a 1 second delay on a 20 MHz(?) clock

Edit: PIC 16F684 Okay, I have a simple 3 LED binary clock that counts from 0-7, and want to add a delay of approx 1 second between each light turning on. I've worked out that each light needs to be in a sort of loop, and I have to use a count to…
Jake Lee
  • 7,549
  • 8
  • 45
  • 86
3
votes
3 answers

Iphone to control PIC microcontroller

I'm interested in writing an app that send messages over IP (using 3g, not neccesarily on the same WiFi network as the receiving end) to a PIC microcontroller connected to a router (via ethernet or wifi) I saw some descriptions and examples on how…
La bla bla
  • 8,558
  • 13
  • 60
  • 109
2
votes
1 answer

pic24 debugger mode does not work

I got a PICkit3, that I use for programming a PIC24FJ64GA004 with MPLAB IDE 8.83 and the C30 compiler. The debugger works with the following config bits: FNOSC set to primary oscillator (XT HS EC) & POSCMOD set to HS osc But I can't seem to get the…
Jon V
  • 506
  • 1
  • 3
  • 21
2
votes
3 answers

Regarding CAN bus

I am using a 16-bit MCU PIC24HJ64GP504 to write a CAN based application. Basically it is communication between my board and one another node which continuously keeps on sending data to my board using CAN at 1 Mbit/s. I am configuring the ECAN module…
2
votes
3 answers

How can I estimate the entropy content of this input?

I have a 1KHZ triangle wave generator that I am measuring from a PIC micro controller using the analog input. The frequency source for the triangle wave and the analog capture are separate frequency sources. The ADC captures at 100ksps with 12…
2
votes
2 answers

Program pic32 without a pickit

Is there a way to program (flash) bare (not already flashed with a bootloader) pic32 chips without using a pickit-type programmer? Are there any ongoing projects for JTAG, for example?
XTL
  • 851
  • 1
  • 8
  • 23
2
votes
2 answers

How to interpret the following C (includes bit fields and a struct)

The following code is from a PIC microcontroller header file, but I assume it's plain old C. I understand that the code is to be used for accessing individual bits at an address in memory, but as a C novice, I'd like some help in understanding what…
Greg Woods
  • 2,697
  • 2
  • 26
  • 18
2
votes
0 answers

How to configure a PIC24 I/O Expansion board

I was wondering how to configure a PIC I/O Expansion board to work with a PIC microcontroller I am using? I am using a PIC24EP512GU810 on a PIC24E USB Starter Kit [DM240012]. Because it doesn't have many I/O ports built onto it, I bought a Starter…
user1207381
  • 581
  • 2
  • 8
  • 19
2
votes
2 answers

PIC I2C slave ack on data

I am looking into the I2C protocol for PIC16F88X. What I would like to do, is to enable an I2C slave to either ACK or NACK depending on the data received on the I2C. The PIC can ACK or NACK on the I2C address sent on the line, but from what I've…
Gauthier
  • 40,309
  • 11
  • 63
  • 97
2
votes
1 answer

Starting with accelerometers, which to choose?

So I am trying to buy a low cost accelerometer to use with my Arduino and PIC projects. I don't know much about them, and would appreciate some advice. I have come across two which interest me: the ADXL345, and the MMA7361. Those seem to be the…