Questions tagged [mplabx]

MPLAB® X IDE is an IDE to develop applications for Microchip microcontrollers and digital signal controllers.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

Mplab X IDE insists I'm trying to change protected boot memory even though all CodeGuard options are disabled

I'm new to this whole thing, so forgive me if I'm missing something obvious, but the only relevant thing I could find is over 9 years old, using a different programmer and different PIC. I'm using ...
0
votes
0answers
15 views

Setting up pre-made MPLAB project with include errors

I am attempting to get an open-source potentiostat board up and running but an having issues when it comes to compiling the project. The firmware MPLAB project was provided, but it is not recognized ...
0
votes
1answer
37 views

PIC32MX270F256 Project Build Error: pic32m-gcc.exe: error: build/default/production/main.o: No such file or directory

I am trying to build a simple project for PIC32MX270F256. The code is just this: ...
0
votes
1answer
38 views

XC8 compiler: Same variable names across different C source files causes issues

I am currently working with a PIC18F25k80 device using the XC8 compiler and MPLABX. I spent the whole of yesterday trying to debug some code I ported from a PIC32 micro project. This code did not ...
0
votes
2answers
157 views

PIC - How to program them in assembly?

For years I programmed PIC controllers in assembler, but let it drop. Now I want to get back to where I was, and - so help me - I can't find out where to start. Downloaded MPLAB-X-IDE and it says I ...
1
vote
1answer
35 views

Are there any functional differences between xc16 and C30? [closed]

I've recently istalled MPLAB X (free version) and tried to build an existing project which uses C30. C30 seems to have been replaced with xc16 which does indeed build the project but the resulting ....
0
votes
0answers
25 views

How to create an scl file for MPLABX?

I am using MPLABX simulator to simulate some code. I want to create some signal for an external pin of the MCU using the stimulus. To do this I need to attach an ...
0
votes
1answer
65 views

Failed to display on LCD when interfacing with PIC18F4520 using ASM language

The LCD constantly shows nothing even though I built program sucessfully and found no error. I tried for many times in the past days but it doesn't work. I tried appling this code on PIC16F877 by ...
0
votes
1answer
64 views

MPLAB X XC8 error expression is not assignable and invalid digit 'F' in octal constant

I am programming a PIC16F887 with MPLAB X, the compiler is XC8 v2.10 and the hardware tool is PICkit3. When compiling the program I get these errors in the following constants of the program. ...
0
votes
0answers
21 views

USB-host on PIC32: enumeration not working

I've been struggling with this problem for about half a year and I'm on the verge giving up completely. This post on this forum is my last resort, and I hope anyone can throw some light on what I'm ...
0
votes
0answers
66 views

MPLAB Program won`t recognize xc.h header

I am trying to learn how to program my PIC microcontoller (specifically a PIC24FJ128gc010 MCU), but having some trouble with what should be a very simple program. I can't declare any pins as outputs ...
0
votes
1answer
39 views

How to use UART interrupts for PIC24 with MCC?

I'm using UART6 to interrupt my program whenever it receives an incoming string. I'm using the MCC to generate functions that I can use but I'm not sure how to call my interrupt function. Here is my ...
0
votes
1answer
55 views

Error interrupt funcition with MPLAB X v5.30 XC8

I am programming a pic18f4550. When I try to compile the project I get two errors. According to what the console indicates, they are caused by the following function. ...
0
votes
0answers
14 views

Unable to connect Wi-Fi module to local AP using Microchip Harmony framework

I am using PIC32MZ Curiosity development board with MRF24WN Wi-Fi module. I want to be able to set-up Wi-Fi in infrastructure mode and connect to my home router (existing local AP). I am unable to do ...
0
votes
0answers
22 views

Setting Configuration Bits via command line arguments when calling MPLAB IPE to program a PIC16F877

I am writing software in Labview that uses a command line to program a PIC on a PWA with a .HEX file that I have no control over. I just want to program the PIC without having to require a person to ...
0
votes
0answers
52 views

Proteus program address is not within code memory

I am trying to simulate the following circuit with Proteus. Both the crystal and PIC18F4550 frequency is 20MHz. When I start the simulation, I get more than 100 messages: [PIC18 LOAD] Program ...
1
vote
0answers
31 views

Relocation in MPLAB IDE X

I'm writing a bootloader for ATXMEGA256A3U. At page 14, Table 7.1 of the datasheet I know the bootloader address start at 0x20000. Using AtmelStudio I set in the linker option the following ...
0
votes
1answer
67 views

PIC18F2550 [PIC18] PC=0x0000 MCLR is low. Processor is in reset

I am learning to program microcontrollers. I'm trying to simulate the result in Proteus but when I run the simulation I get the error. [PIC18] PC=0x0000 MCLR is low. Processor is in reset. What is ...
1
vote
1answer
457 views

I2C Master: How to read with repeated start condition?

I have a PIC16F18875, on a board where it is configured as I2C master. 7 bit addressing, 100 kHz clock Several different I2C slave devices are on the bus. am using MPLAB X IDE with MCC plugin using ...
0
votes
1answer
43 views

How to connect a PIC32MK 100-pin Motor Control Plug-In Module (PIM) for programming

I recently got a PIC32MK 100-pin Motor Control Plug-In Module (PIM) I have been trying to prgram it but I have been running into the following error: ...
0
votes
1answer
83 views

PIC16F57 timer how to trigger an interrupt

I'm trying to make a simple delay turn-on function using Timer0 inside the PIC16F57 itself.All the example I can find on internet mostly come with build-in interrupt function which the PIC16F57 doesn'...
0
votes
1answer
62 views

PIC MCU PIC16F887 not working with external power

I am a newbie with PIC doing my first project to understand how PICs work. I have some experience with Arduino and trying to learn PIC now. I have chosen PIC16F887 (40 pin DIP package) as my first ...
3
votes
3answers
507 views

Where can I find a list of PIC microcontrollers programmable and debuggable with a PICkit 2? [closed]

Where can I find a list of PIC microcontrollers that I can program and debug using a PICkit 2 in MPLAB X? I am a hobbyist who would like to breadboard prototype a new project based on a PIC ...
0
votes
3answers
776 views

How to read a specific port with ADC in Mplab Harmony?

I configured the ADC for 3 instances/3 analog inputs: ...
0
votes
1answer
124 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. ...
-2
votes
1answer
167 views

How can a watchdog timer be cleared in Mplab Harmony?

Using Mplab Code Configurator (MCC) it's easy to clear watchdog timer, for example i created a project for a PIC 16F15324T and in my code i only have to call the ...
0
votes
2answers
112 views

How to read a port by a label in Mplab Harmony?

I'm more familiarized with MCC and with that framework is really easy to read a port we just need to give a custom name in ...
0
votes
1answer
36 views

How to do a counting of a timer configured in Mplab Harmony framework?

I'm new to harmony framework, and am trying to find how i can count timer iterations, so i'm doing a simple test. I configured the timer like this: Now i want to know if this is the correct way: <...
1
vote
1answer
119 views

How to use SYSTEMConfigPerformance on a MPLAB X project

I started a new project for a pic 32 (pic32mx470f512l) with MCC. And now i want to use the function SYSTEMConfigPerformance to optimize the performance of the pic. It happens that i'm not able to ...
0
votes
1answer
253 views

MPLABX with PIC18F4550 Debug and programming are not working

First I used MikroC for PIC to modify a firmware to a PIC18F4550. I was programming the device using MPLAB IPE and the PICKit3 programmer, everything was ok. Now, I need to change to MPLABX XC8 ...
11
votes
3answers
1k views

Variable declaration with @ in C

I am reading some C code and came across this declaration in the program: unsigned char serv_ctr @0x0002; Can someone point me to documentation, or explain what ...
1
vote
1answer
151 views

Configuration in MPLABX compared to MikroC Pro

I need to modify a C code of an PIC18F4550. I want to use the MPLAB X IDE to do the job because I'm more familiar with it. However, the code that I need to modify is accompanied by an introduction ...
1
vote
0answers
78 views

Not able to view my code in MPLAB X IDE..!

I am trying to open my project (.C file) in MPLAB X ide (v5.15), but i cannot see my code, instead it opens up a rather weird window. It shows some history tab (of which i have no idea). I have ...
1
vote
1answer
596 views

PIC18F47K42 I2C Slave MCC code incrementing register by accident

Disclaimer: I have submitted a forum post on Microchip as well as the forum appears to have issues with me and to increase the pool of possible answers I thought of posting here with as much detail ...
2
votes
1answer
162 views

Using pickit 3 with DSPIC30F2010

I'm just learning to use the PIC microcontrollers and am totally confused having no knowledge prior. I am using a pickit 3 and the DSPIC30F2010. I have used to connect them via the circuit as shown ...
0
votes
1answer
90 views

PIC18F26K20 PWM Configuration

I am working with PIC18F26K20 and MPLABX IDE. I wrote some code for configuring and running the PWM. However, The output I get is at 50 percent duty Cycle no matter what duty cycle I provide the ...
2
votes
1answer
77 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 ...
0
votes
1answer
303 views

MPLAB X __delay_ms() hangs on PIC16F77A

I'm trying to use the __delay_ms() function to make an LED blink on the PIC16F77A. The reason I think it stalls on the __delay_ms() function is because whatever I set RB0 to before the delay ...
1
vote
1answer
124 views

RETLW 0 and RETURN command on PIC10F222 microcontroller

When I am building a code in MPLAB X IDE v5.15 I get an Warning "Substituting RETLW 0 for RETURN pseudo-op". As I have researched the PIC10 series don't have return command so it changes to RETLW 0. ...
1
vote
0answers
200 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 ...
0
votes
1answer
65 views

Weird behavior of pwm controlled servo motor?

Hello there I have experienced some really weird behavior from servo motor wheni try to control it with pwm. I am using dspic30f4013 and servo motor sg90 tower mini. I configured my pic with 10Mhz ...
0
votes
1answer
492 views

Serial port framing error

I'm new to pic and uart. Just trying out simple uart transmission. I'm using mplab IDE and coolterm for serial monitoring. I'm getting serial framing error. I also used PuTTY and it was printing junk ...
0
votes
1answer
619 views

Understanding PWM period and frequency calculation on dsPIC30F4013?

i am working on a project of my own, making a RC CAR. I want to my motor to be controlled with PWM. I understand the basics of basics for PWM but still I get confused with calculation. What is the ...
1
vote
1answer
229 views

dsPIC system configuration bits in MPLAB X project vs the same config bits in the code

I can setup system configuration bits (fuses) in the MPLAB X project and/or in the code directly: I understand that the ones on the Configutaion Bits tab are ...
0
votes
1answer
94 views

GP4 on a PIC12F683 microcontroller not functioning correctly

I am attempting to make a project wherein I have some LED's on pins GP2 and GP4 of a Microchip PIC12F683 microcontroller flashing in a simple pattern. The problem is that I cannot write to GP4 ...
1
vote
0answers
585 views

FIR filter in dsPIC with DSP Library

I have to make a digital filter with a dsPIC30F, but I don't know much about it. I've read part of the documentation about the dsPIC30F and the DSP Library, and I found a page on Microchip website ...
1
vote
1answer
369 views

DSP Library not working in MPLAB X

I have to make a digital filter with a dsPIC30F4011 (I'm completely new to microcontrollers). I was reading the documentation about the DSP Library to figure out how to use it. I created a simple C ...
2
votes
2answers
135 views

Why are different names given to the same bit in MPLAB XC8?

I am using PIC18F45K22 and MPLAB XC8. Recently I stumbled upon something while reading ADCON0 register. A particular bit in the register, GO/DONE has many representations while I try bit addressing it ...
0
votes
1answer
461 views

My MPLAB X IDE debugger gives me an error whenever I try to debug my PIC24 Explorer 16/32 Development Board

I am doing a simple program for my PIC24FJ1024GB610 Microcontroller from Microchip, using the Explorer 16/32 Development Board, it has it's own PKOB (Pikit On Board circuitry). My IDE is: MPLAB X IDE ...
1
vote
1answer
139 views

Glitchless output on PIC10F

I'm learning how to program a PIC10F220. I'm using a PICkit 3 programmer and running physical experiments, as well as running the simulator in MPLABX. One thing I want to do is set the proper level ...