Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mplab]

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

0
votes
1answer
36 views

Application and bootloader written in different tools can not be compatible?

I have a bootloader to PIC18F4550 that was written using Mikro C for PIC and I have two firmware applications, one was written using Mikro C for PIC and the other using MPLAB X with XC8 compiler. ...
0
votes
1answer
21 views

Where to put main code in Mplab Harmony Framework?

When i'm doing code using MCC for example i will put my code the following way: ...
0
votes
0answers
12 views

How to configure the period of a timer in Harmony?

I'm new to the harmony framework of MPLAB and i'm trying to find how to do simple things like configuring the period of a timer. So i configured the pic32mx470f512l to use FRC with pll oscillator at ...
0
votes
1answer
38 views

How to toggle a pin in Harmony framework for a pic?

I'm new to pic's and the harmony framework, and i'm trying to toggle a pin from high to low and vice versa in the interrupt callback of the Timer. I configured my oscillator to operate at 32 MHz or ...
1
vote
1answer
34 views

Anyone knows what is a driver implementation in Harmony?

When configuring a Timer Driver implementation the option for Dynamic and Static appears. Anyone knows, what does these 2 types mean?
0
votes
1answer
39 views

With harmony how to implement printf to uart?

I setup a project using harmony v2 for a pic32mx470f512l. In drivers -> USART i configured the UART (strange its called USART in harmony in datasheet says its a UART): Now i want to use the function ...
0
votes
1answer
25 views

MPLAB Harmony Configurator not working

After installing MPLAB Harmony Configurator from the available plugins in MPLAB (v5.05) i tried to create a new project but it seems that harmony location is not valid? I doesn't seem to have ...
0
votes
1answer
21 views

PIC32MX470F512L not appearing on harmony setup?

I installed Harmony plugin in MPLAB X IDE because i can't put this pic working with MCC. I was going to do a new project for this pic and when i was going to select it, it doesn't appear on the list! ...
1
vote
1answer
68 views

PIC16F884 keeps resetting even though WDT should be off

I just bought a PIC16F884 and put a simple C program on it using MPLAB: ...
2
votes
1answer
67 views

PIC32 having multiple PORTB's “high” at the same time

I am trying to set a couple of PORTBbits to "high" (1) at the same time for that I am using the following code: I am using thePIC32MX695F512H ...
1
vote
0answers
98 views

PIC10F222 Failed to program device

Every time I try to program my hex file I get an error: The following memory area(s) will be programmed: program memory: start address = 0x0, end address = 0x3b configuration memory program memory ...
1
vote
1answer
41 views

can't read push button value in dsPIC33

This is the first time I work with a PIC microcontroller. I am using the Clicker 2 for dsPIC33 board (dsPIC33EP512MU810), and so far I am trying to implement a basic programme for testing the board. ...
0
votes
1answer
92 views

Timer0 not interrupting on PIC18f4321

I'm trying to run some basic code from my textbook onto a PIC18F4321, using the latest XC8 compiler. It's supposed to turn on an LED after 10 seconds, but the LED never turns on. I've checked my ...
1
vote
2answers
79 views

PIC microcontroller: actual behaviour differs from simulator

I was encountering some quite strange differences in the behaviours of my PIC16F628a microcontroller compared to the MPLAP built-in simulator. After a long search, it turned out to be different due ...
0
votes
1answer
60 views

Does MPLAB IDE v8.92 show Page Breaks anywhere in programmer

In the MPLAB assembly code window is their anyway to show or indicate where page breaks are I am using 50 PClath Calls. If I add or remove code it changes the position of page breaks. I would like to ...
1
vote
2answers
100 views

FTD232RL displays gibberish

Hello there i am using dsPIC30F4013 and i have been trying to interface uart with pic. I want to send some data to PC via uart and display it on terminal, but what i get is far from what i expect, to ...
1
vote
2answers
140 views

What is the difference between the different types of PIC compilers?

What is the difference between the different types of pic compilers such XC, Hi Tech etc?
0
votes
2answers
73 views

Learning MPLAB XC [closed]

I am trying to learn mplab xc8. I am familiar with c and c++. I have written some code using these languages. But While I am trying to learn mplab, I couldn't find any good source or book. For example ...
0
votes
1answer
163 views

Interfacing microcontroller ,LCD and two push buttons

Problem : I'm using PIC16F84A as microcontroller , wh1602a (LCD) [16x2] , and two push buttons. I want to give the user two options say option 1 and option 2 on the display and the user presses one ...
0
votes
2answers
109 views

will For loop in MikroC for dspic block the interrupt service routine?

I am using MikroC for dspic30f4011. I am using a Timer3 interrupt for ADC reading. In this Interrupt services routine, I am reading ADC values. In Void main, where I need some delay in the instruction ...
7
votes
5answers
4k views

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

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

PIC16F676 communication using infrared

So I've been working on this project for some time now and I've hit a wall since I'm new to using pickit3 and using C language is not my strong. Basically what I'm trying to do is use two micro-...
0
votes
0answers
450 views

Simple number counter - PIC16F877A microController problem

I am trying to make a simple counter using pic16f877a. i want to count each time a push button is pressed, that is taking one press as one count, regardless of how long the button is pressed. ...
1
vote
1answer
2k views

Programming PIC16F877a using PICKIT3

I'm trying to program a pic16f877a using PICKIT3 and MPLAB without success. I'm powering the pic with the pickit. I verified the connections almost 20 times, everythings plugged at the right place , ...
0
votes
0answers
260 views

Serial Flash always returning 0x00 while reading after writing

Could someone look into the code and tell me the mistake in the code I am trying to Interface PIC16F877a and AT25SF041 serial flash. I have pulled up CS pin to 5V using 1K resistor The flash is ...
1
vote
1answer
150 views

scrambled uart output

I am new to pic uart communicatioon with PC using RS232. I have tried the below code and used Hyperterminal to view the output. But the output gets scrambled here and there each time when I reset pic. ...
0
votes
1answer
111 views

PIC18 problem with flash programming [closed]

Firstly, I have to say that I'm new to PIC family. I am trying to build USB-CAN converter from USB-TIN page using PIC18f14k50 microcontroller, PICkit3 programmer and MPLAB IDE. After writing hex file ...
0
votes
1answer
132 views

PIC12F629 memory overflow

I am new to PIC microcontroller programming. I am trying to programming PIC12F629. I have a hex file (size 518bytes). When I am trying to write using PICkit2, it shows memory overflow. Here is my code:...
2
votes
2answers
1k views

Deciding which compiler for PIC18F26K22 in MPLAB X, C18 or XC8?

I'm trying to program a microprocessor for the first time, and having lots and lots of doubts. I have installed both the C18 and the XC8 compilers, plus a few others. When I create a new project and ...
-2
votes
1answer
566 views

C project for PIC won't build when I call user defined functions

So I am trying to set up a UART serial connection, and I have a function called UART_INIT to initialise my UART, however when I try to call it my project won't build and I can't see why. If I just ...
0
votes
1answer
392 views

How to solve overflow stack problem problem in proteus?

I'm currently working on a countdown timer project.I used PIC18F452 microcontroller for my project. I compiled the code in mplab and it has succesfully been builtHowever in proteus, the countdown ...
0
votes
1answer
612 views

PIC18F2550 and DS1307 i2c RTC MPLAB assembly code. Have to loop for seconds,mins,hrs

PIC18F2550 and DS1307 i2c RTC MPLAB assembly code. I am using a PIC18f2550 to get time,date,etc from DS1307. I am able to get the seconds,minutes, hours, etc by repeatly CALLing GET_TIME with a ...
3
votes
1answer
167 views

What a green P stands for in MPLAB IDE watch list?

Hello I'm debugging a C program in MPLAB IDE 8.92 and I have a green P at left o a variable in the watch list. Does somebody knows what it means?
0
votes
1answer
303 views

sleep mode in pic16f1618/19

I am trying to reduce the power consumed by microcontroller pic16f1618, and hence I thought of using SLEEP(). All interrupts such as timer, and pin are disabled. The code is generated with the help of ...
1
vote
1answer
420 views

How to use multiple input ports for internal ADC of PIC18F4550?

Is it possible to use the setChannel() command to switch between the inputs for the internal ADC of PIC18F4550 at the end of each conversion, e.g. from AN0 to AN1 ...
0
votes
2answers
534 views

Bit shifting and PORT value on PIC18F4520

I am working on a PIC18f4520. To do my test, I have connected a led to the pic. The following items are the steps I would like to do : Save the value of the port set for the LED (which blinks ...
3
votes
1answer
941 views

MPLAB 8.9 won't launch

I am running windows 7 professional 64-bit and up until this week was running MPLAB 8.92 IDE. Now I get a brief look at the splash screen and the IDE refuses to launch. I downloaded and ran the ...
1
vote
1answer
2k views

How to add header file for PIC24F08KL401 in MPLAB on MAC

How can I add header file for PIC24F08KL401 in MPLAB X IDE on MAC? I have found few tutorials how \ where to find these files ('PIC24F08KL401.h') for example on windows, but none on how to do it on ...
0
votes
1answer
290 views

Programming USB OTG PIC32 through USB in MPLAB

I have a PIC32 that has USB OTG. How would I program it through a USB cable in MPLAB? Does it work out of the box of does it need additional software.
0
votes
1answer
88 views

PIC24 Reset Issue

I am working with the PIC24FV16KM202. I am encountering resets while implementing Dispatch, which is a serial protocol that I'm working on that grew out of a project. The example that I'm working on ...
0
votes
1answer
91 views

pic32 debug char pointer declaration

I'm working with a PIC32MX564F128H in MPLABX 2.35 with pickit3. I'm trying to parse a message from UART. The character is received properly, but I'm stalling when I attempt to copy a character to a ...
0
votes
2answers
1k views

Setting up Internal Oscillator with PIC16F1829

I just started working with PIC microcontrollers and I am currently using MPLAB X IDE with a PIC KIT 3. I've been trying to get a simple LED blink code to run on a PIC16F1829 using the internal ...
0
votes
1answer
315 views

MCP3221 ADC always returns zero in Proteus

I am interfacing PIC18F2320 with MCP3221 ADC over I2C. When I try to read the converted value from ADC, only zeros are returned. I'm using MPLAB libraries. ADC is in A5 address mode. The AIN voltage ...
2
votes
3answers
5k views

Which MPLAB-X version supports Pickit 2?

I got myself a Microchip Pickit-2 Programmer from a local store. I installed MPLAB release v2.26 from Microchip's website. However, in this version of MPLAB, it is not detecting my Pickit-2. ...
0
votes
2answers
4k views

PIC32MX Harmony i2c Driver

I have a bit of a problem figuring out how harmony i2c driver works. Trying to establish connection between PIC32 and a barometric sensor MS5637 have been a bit of a nightmare for me. From sensor's ...
0
votes
1answer
643 views

Is it possible to program PIC18F device with .hex and .bin files

I have .bin and .hex files that I want to load into my PIC18F2480 device. I also have a .doc file explaining how to configure PIC18F2480 before programming. I've been told that it is possible to use ...
1
vote
1answer
2k views

Is there a way to Divide two 8 bit number in PIC 18fXXX assembly language not C?

I Can easily do the division in C of PIC micro controller. But is there a way to divide two number stored in two 8 bit registers. For example look at this code. I have to do it in PIC assembly for 8 ...
1
vote
1answer
341 views

Check content of EEPROM during run-time like Visual Studio

In Visual Studio, when we try to read memory location, we add breakpoints and run step by step to see what is getting read or written to a memory location. Is there a similar way, we can do it in ...
1
vote
1answer
535 views

PIC16 only runs on debugger

I'm running a Hello World that toggles RB7: ...
1
vote
1answer
418 views

Pic 18F452 / push button

I want to write program with " MPLAB IDE v8.50>>Pic18f452 " by 1) low level pulse & 2)Rising edge . but, how?(without interupt & micro C,maybe!) I wrote this program with falling edge. Thanks ...