Questions tagged [mplab]

mplab is the IDE used to compile, program and debug PIC chips.

138 questions
13
votes
2 answers

Compiling code to run from external RAM

I am considering designs for a minimalist game system based on a PIC18F85J5. Part of my design is that games can be loaded from an SD card without reprogramming the chip or flashing the program memory. I chose that chip because it has an external…
captncraig
  • 2,054
  • 3
  • 24
  • 45
12
votes
5 answers

PIC32 vs dsPIC vs ARM vs AVR, does the architecture matter when we are programming in C-language anyways?

We are currently using 32-bit PIC32 Microcontroller. It is working fine for our needs, but we are also exploring other microcontollers that can suite us better + we have other projects for which we are selecting MCU. For that purpose we have…
TheTechGuy
  • 611
  • 1
  • 7
  • 13
9
votes
1 answer

dsPIC chips running at a fraction of normal speed

I have two PCBs. One has a dsPIC30F6012a, the other a dsPIC30F6015. Both are being programmed from separate standalone HEX projects in MPLAB X, using a PICkit 3. Both firmwares have been applied to dozens of units prior to this point without…
Stephen Collings
  • 17,373
  • 17
  • 92
  • 180
9
votes
2 answers

Need some help understanding PIC memory map

Some background. I use MPLABx with a PicKit2 to program different types of pics. At the moment its the 16F887. I try to stick to the Hi-Tech PICC Lite tool chain but I'm growing increasingly unhappy with how some things are assembled. Operations…
Michael
  • 948
  • 1
  • 7
  • 23
8
votes
3 answers

L3G4200D random spikes

I've searched this forum a bit in regards to the L3G4200D gyroscope, and haven't seen this problem mentioned, but I have seen others talk about it on other forums. I am seeing a strange large value in my output when the gyroscope is stationary.…
ritchie888
  • 490
  • 2
  • 13
7
votes
6 answers

Failed to get Device ID - PICkit 3 & PIC16F684-ICD & AC16205

Like it is already mentioned in the title I have question regarding this dev stack: MPLAB X IDE v1.80 PICkit 3 PIC16F684-ICD (datasheet) AC16205 There is image of how things are connected (I don't think there is a problem): Powering…
PrimosK
  • 296
  • 1
  • 4
  • 20
7
votes
2 answers

Large array in C18 causes device reset

I am using the PIC18F13K22 and Microchip's C18 compiler in MPLABX. The PIC kept resetting, when it was about to jump into the interrupt service routine (ISR). I was able to trace the problem down to the declaration of an array: UINT16 rom periods[]…
PetPaulsen
  • 2,335
  • 4
  • 22
  • 34
6
votes
1 answer

Interrupt Service Routine in C - function at specific address

I need to add an Interrupt Service Routine (ISR) to existing code in C for a PIC18F4620 and a PIC18F46K22. As you can see in section 9 (of both datasheets), these devices have multiple interrupt vectors: 0x0008 for high priority interrupts, 0x0018…
user17592
6
votes
3 answers

how to make the eclipse IDE to be compatible for PIC devices?

I am looking for a PIC development environment that is better than MPLab. Is it possible to to install and configure Eclipse to work with PIC microcontrollers?
Rafael
  • 61
  • 1
  • 2
5
votes
3 answers

PIC measuring PWM pulse length

I'm just getting started with PIC processors, driven mainly by a shortage of the simpler PICAXE from my local retailer. My question is, how do I read the length of a PWM pulse on a certain input pin (analogous to the PULSIN command on PICAXEs). I'm…
Chris
  • 617
  • 9
  • 15
5
votes
2 answers

Interfacing PIC18F4550 with I²C EEPROM (24AA1025)

I am working on a university project in which I need to interface a PIC18F4550 with an I²C EEPROM. I read many codes and saw many projects on this topic. And I wrote a sample code from MPLAB C18 (and I tried many codes also), but no one worked with…
m_engineer
  • 51
  • 1
  • 4
4
votes
1 answer

How do I detect / retrieve the silicon revision of a dsPIC?

Before starting on my project, I need to familiarize myself with any possible silicon errors in my dspic. I saw this for PIC micros, but it doesn't apply to the dsPIC33F that I'm using. I found a post somewhere (that I can no longer find for some…
Dave
  • 3,800
  • 24
  • 41
4
votes
1 answer

Can't read written data out of 24AA1025

I've got a PIC18F with MSSP that I'm interfacing with a 24AA1025. I'm using MPLAB 8 and the functions from C18 to make my life easier. The only problem is that I've (supposedly) written a byte to the 24AA1025, but when I read it back, I get 0xFF…
Dave
  • 3,800
  • 24
  • 41
4
votes
1 answer

PIC18F4520 ADC Conversion in MC18

I have a dilemma. I need to read ADC values from PIC18F4520. My configuration, and code, is as follows: #define OSC INTIO67 int adc_result = 0; void main(void) { OSSCON = 0x70; //Set it as 8Mhz. OSCTUNEbits.PLLEN = 1; //Enable PLL 4x…
Buhake Sindi
  • 241
  • 3
  • 14
4
votes
3 answers

MPLAB 8: Hotkey for "Program Target Device"

I am looking for a hotkey that will have the same effect as "Program Target Device" from the toolbar or menu. Programming Target (4/7/2012 7:55:43 AM) PIC24F16KA101 found (Rev 0x8) Erasing Target Programming Program Memory (0x0 - 0x143F) Verifying…
BrianV
  • 550
  • 6
  • 13
1
2 3
9 10