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

learn more… | top users | synonyms

0
votes
0answers
41 views

pickit3 connected to pic18f4550

I am using pickit3 to program pic18f4550 I build the circuit but still there are some problems outcomes from the output window from both mplab ide v8.60 and mplab ipev2.20 the window outputs : 1- ...
0
votes
0answers
39 views

dspic33 ADC alternative MUX problem

I'm trying to sample from 8 channels using my dspic33fj128gp802 chip. I've had four channels working fine up until now, but trying to use the alternative MUX switch isn't going to plan. I've tried ...
0
votes
1answer
56 views

PIC16f EEPROM Write Errors

Developing on PIC16f1936 and using MPLAB X IDE with the XC8 complier. I have been stuck on this for a while and no one in the office can figure it out either. I've been given this project where I ...
1
vote
1answer
92 views

7 segment count jump from 00 to 05

I'm new at coding and need some answers, I doing some mini project and I got caught in some errors I'm not sure, I'm doing a ''photocopy'' machine and I have to code it in C under the Microchip MPLAB ...
1
vote
2answers
226 views

Porting MikroC code to MPLAB for PIC16F1508 adding extra noise to ADC

I decided to start using MPLAB with XC8 after I started reaching the 2k code size limit in MikroC. The problem is that since all the Mikroc libraries are proprietary and there are no libraries ...
0
votes
0answers
43 views

USB Communication between PIC and PC always transfers zero irrespective of input

I have been trying to develop USB communication between a PIC micro controller (PIC18F4550) and PC. I have established the connection and my Development Board (EasyPIC6) terminal is successfully ...
1
vote
0answers
148 views

How can I stop MPLAB X from hanging between build and program?

I've been using MPLAB X and XC16 to build and program projects for a dsPIC 33EP128MC506 for about a year now. For the last two months, I've seen some new and unusual behavior on two separate machines. ...
0
votes
1answer
82 views

MPLAB giving problems when Windows OS changed from 32 bit to 64 bit

I was able to build my programs successfully on MPLAB v8.56 (using C18 v3.47 compiler) a few days ago. But my system failed due to some reason and I had to format the C drive and re-install the OS. ...
1
vote
1answer
421 views

Rx UART interrupt triggering on PIC24F

I'm trying to receive data to a PIC24FJ256DA210 from another device using UART communication. I set up the UART as described below: ...
3
votes
1answer
1k views

Pre-Defining EEPROM Values in XC8 Compiler

I'm working with a PIC16F690, using Microchip's XC8 compiler. I want to embed EEPROM values into the hex file, so that the EEPROM gets programmed at the same time as the program memory. I've done ...
1
vote
1answer
178 views

Practical issue with PIC PWM

I have written the following code to generate PWM and to change the duty cycle when a button is pressed. In simulations it works fine. However when actually implemented the circuit, the PWM starts ...
1
vote
1answer
86 views

dsPIC33EP DMA configuration issue

I am trying to buffer 8192 words of data from an IO Port to RAM using DMA hardware of dsPIC33EP512GM710. I have configured the interrupt source INT0 as the source for the DMA hardware. I am using ...
0
votes
1answer
237 views

PIC16F628A 16x4 LCD problem while using MPLABX

I'm trying to connect a 16x4 LCD with a PIC16F628A, but I cannot get any response on the display, the display is blank. I put on a LED for indicating whether the time was right, and apparently ...
0
votes
0answers
276 views

Connect Pickit 3 to PIC12F675

I try to connect the Pickit 3 to the PIC12F675. What I have tried is basically this: connect the pins VDD, VPP, VSS, ICSPDAT and ICSPCLK with each other. But when I try to program it with MPLAB X, it ...
0
votes
2answers
997 views

PIC XC8 compiler array of structs?

I'm having trouble assigning variables to structs, particularly making an array of structs, with the XC8 compiler. Example code below: ...
0
votes
0answers
156 views

Oscillator initialization with dsPIC33F

I am trying to initialize my dsPIC33F to work with external 24 MHz clock. I am getting a strange problem when I am trying to update CLKDIV register. The Mplab says that the parameter is incorrect ...
0
votes
1answer
393 views

Setting external CLK for a PIC

Using pic16f690 with xc8, I can't figure out how to set external osc with quartz crystal. I have set : #define FOSC_XT Is ...
3
votes
3answers
183 views

PIC warning 364 related to initialization of const

There are no answers to this on the internet that I could find, and I've looked twice over the last 4 months. In MPLab v8.88 using the Hi-Tech ANSI C Compiler, I have this line of code: ...
1
vote
1answer
200 views

Chipkit Uno32 Debug with mplabx

Hello guys I bought a good night chipKIT uno32 to use it with projects but with the language of c32 with IDE MPLABX and pickit 3, everything went well but when I want to debug a project says disposito ...
6
votes
1answer
279 views

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 ...
1
vote
1answer
2k views

MPLAB X - Read and Export Hex File

I'm a bit stumped as to what's going on here. I was previsouvly able to read (upload) the memory from the dspic33F and store it as a hex file. This is the only way I can test the boot loader I'm ...
3
votes
1answer
322 views

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 ...
1
vote
2answers
539 views

How to program PIC 12F629 internal oscilator in C?

I have some troubles understanding the datasheets when comes to use the internal oscilator in a PIC 12F629, using C (MPLAB X IDE + XC8 compiler). Also I don't have any PICKIT or anything, I use a DIY ...
2
votes
1answer
1k views

Unable to compile (build) code with MPLAB for PIC with CCS C compiler

I'm a newbie trying to lean PIC, i downloaded MPLAB and MPLAB X ide . Ihave done this around 100 times and looked over web enough before asking this question, but my code is not compiled and it is ...
1
vote
1answer
362 views

How to use FreeRTOS with MPLAB X that runs on a MAC OS

I'm programming my PIC microcontroller on a MAC OS. Can you use FreeRTOS with MPLAB X running on a MAC OS? I've noticed directions that include downloading a .exe file, but does that mean it's only ...
5
votes
5answers
4k views

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 ...
2
votes
2answers
390 views

Char array at an int in C18

In Jal, it's possible to do something like this: var word the_var = 0x1234 var byte the_array[2] at the_var; Now you can easily access the bytes of the word ...
0
votes
1answer
401 views

How to use the PIC16F628A's PORTA,4-7 as inputs?

I'm working on a countdown timer and I want to use the MSN of PortA for my switches. I'm using MPLAB. I can't use C to program the PIC because the collage taught us to program in decimal, and they ...
3
votes
1answer
355 views

PIC18F4580 - PORTD not being read correctly

I am experiencing a strange problem with reading back the value of PORTD while it is configured as an output. I am writing to ...
0
votes
0answers
488 views

How to solve Error writing CONFIG_MEMORY when connect MPLAB X to Proteus 7?

I use MPLAB X 1.70 and Proteus 7.8 sp2. I have already to set Proteus DSN file as the sample code of dsPIC33F chip. I also set port to 8000. Here is the process: ...
6
votes
1answer
2k views

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 ...
0
votes
0answers
159 views

Data loss between parsing and displaying on an 8 by 2 LCD

I'm trying to display strings that are larger than eight characters on the top row of am 8 by 2 LCD by making them scroll across the screen. I'm using a PIC16f1936 microcontroller and MPlab x IDE. ...
9
votes
1answer
301 views

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 ...
1
vote
1answer
561 views

Programming/Debugging with ICD3 and PIC16F819-I/P

ICD3 passes internal test with MPLAB IDE using the Test Interface Module PIC16F819-I/P supports ICSP and In-Circuit debugging source. ICD3 pinout is as follows (source): ...
8
votes
2answers
329 views

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 ...
3
votes
1answer
126 views

PICKIT 3 resets PIC16 three times upon reprogramming

I am using the PICKIT 3 with MPLAB X with the default setings. When I press F6 to build and run my code, I notice that the PIC16 resets three times: twice with ...
2
votes
1answer
2k views

after programming PIC, can no longer run debug or reprogram

OK, I have written a few basic programs in MPLABX C18 for both 18f4550 and 18f46k20. Eventually got them to compile and test/debug correctly and run on the PIC. After I choose, "make and program ...
2
votes
1answer
248 views

Problem with MPLAB's toolsuite

I'm taking a module at University that involves MPLab. I'm trying to get it setup at home and so far its been a little tricky. I've got my files from University which I've attached below - if there ...
0
votes
2answers
374 views

How to find macro “usage position” in microchip MPLab

I'm having troubles when MPLab shows me error within a macros (with assembly language). It gives the line number of where macros is defined. That's not very helpful if the macros is working fine, but ...
2
votes
3answers
946 views

c18 coding advice / braces error / function declaration help

I have almost NO experience coding so please excuse the crude style and verbose commenting. I am trying to sample from 4 sensors (1 every 15 minutes). I thought it would be more efficient to have the ...
4
votes
1answer
273 views

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 ...
3
votes
2answers
977 views

How to create a pointer to code memory in microchip C30

i'm having a bit of a problem with this code. The code is intended to create an LCD MAP, with LCD routines to interface a 7 segment based LCD with the PIC24FJ128GA310 MCU with internal LCD driver. ...
1
vote
2answers
2k views

Unable to use compiler built-in functions to write to dsPIC EEPROM

As I mentioned here, I've been having issues with EEPROM on dsPIC30F6012A. Since my old EEPROM library was difficult to analyze and support, I went back to square one and rewrote it using the new ...
3
votes
3answers
3k views

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 ...
7
votes
2answers
635 views

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 ...
1
vote
2answers
700 views

Array manipulation in MCC18

Suppose I have an array: #define ARRAY_SIZE 576 #pragma udata DATA float I_1[ARRAY_SIZE]; //My huge array #pragma udata And that I access my array like so: ...
0
votes
1answer
2k views

ADC Stimulus file with MPLAB SIM (Simulation with MPLAB SIM)

I'm trying to simulate my project using MPLAB SIM but I get the following message: ADC-W0008: No stimulus file attached to ADRESL for A/D. How do I create an ADC Stimulus file? Info that might ...
0
votes
2answers
299 views

Data output issue on PIC18F4520

I have programmed the PIC18F4520 with MPLAB, MCC18 and Pickit2. My code is pasted below: ...
3
votes
1answer
999 views

PIC18F4520 ADC Conversion in MC18

I have a dilemma. I need to read ADC values from PIC18F4520. My configuration, and code, is as follows: ...
4
votes
3answers
341 views

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. ...