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
1 answer
81 views

How to get MPLAB X v6.00 to instantiate an 'S' type file

Since I have written dozens of PIC assembly language programs, I'm trying to write another one for the new pic-as assembler. When I indicate that I'm developing a new assembly program, using the pic-...
user avatar
0 votes
0 answers
36 views

PIC16F15244 - Transfer error when code's changed

I am currently working on a PIC16F5244. I am currently trying to correct a problem that despite my multiple searches and tests is still present. When I mount a new PIC16 on my PCB, I can program it, ...
user avatar
  • 1
0 votes
0 answers
32 views

Arduino Due Reset with MPLAB IDE (no reset-en trace of other boards)

The following links cut the reset-en when preparing an Ardunio Uno (and also otherboards) for use with MPLAB X IDE: https://www.yorku.ca/professor/drsmith/2021/06/17/modifying-an-arduino-for-mplab-x/ ...
user avatar
  • 103
0 votes
0 answers
51 views

Using UART to USB on a PIC24f

Disclaimer: New to PICs, need things dumbed down to an extent until I start to figure things out. I'm trying to set up a UART connection on the PIC24fJ32GA002 to an FTDI which will then go to my ...
user avatar
  • 163
2 votes
1 answer
230 views

How debug atmega2560 with pickit 4? (Arduino mega board)

I owned a brand new pickit 4, and I'm trying to get a debug session working. This is what I did: 1. Cut reset pin from the USB-UART programmer. There is a Reset EN pad that can be cutted off to ...
user avatar
1 vote
1 answer
151 views

Correct design for Pickit 3 ICSP

I am a software engineer messing with some electronics I can't figure out why I can't program with my PicKit 3. I need some help understanding why I can't program my microcontroller. I am able to ...
user avatar
1 vote
0 answers
70 views

MPLAB-X new Assembler

I am trying to assemble a old project from old MPASM on this new MPLAB-X Assembler only to end up with many errors and I have searched for usage or help and this seems to be lacking. Anyone know what ...
user avatar
1 vote
1 answer
62 views

How to set time for an RTC 5 Click in MPLAB X?

I am currently working as a design engineer intern. I am using an RTC 5 Click as part of my design to provide real solar time. It is nice that MPLAB X is able to generate sample code, but I have no ...
user avatar
  • 11
1 vote
2 answers
72 views

PIC18F4520 reading voltage from analog input

I'm trying to do a homework where is needed to read the voltage from an analog input and to print to a serial monitor a message when the voltage is lower than 2V or higher than 4V. I don't have any ...
user avatar
1 vote
0 answers
84 views

Could a PIC18 running two functions simultaneously?

I am building a robotic car with stepper motors (for wheels) and infrared sensors(avoiding obstracles) using PIC18F4550 microcontroller. So, I have created a function to drive the stepper motor steps ...
user avatar
1 vote
1 answer
158 views

External interrupt debugging with PIC16F877A

I am working with a PIC16F877A on a simulator on MPLABX 5.35 with XC8 compiler ver 2.32. I am trying to understand and work with the external interrupt, I am facing a few issues while debugging. ...
user avatar
1 vote
1 answer
74 views

PIC10F200 OPTION Register constants not present in header files

I'm brand new to any microcontroller programming and am playing around with the PIC10F200. I'm using MPLAB X 5.45 with XC8 2.32 pic-as compiler and I saw that most of the registers have constants ...
user avatar
1 vote
1 answer
98 views

Unable to Generate PWM Signal Using CCP of PIC16F15325

I am using: Curiosity LPC dev kit, PIC16F15325, MPLABX v5.35 on Mac, XC8 compiler. I am able to blink each LED on the Curiosity. My goal is to generate a PWM signal on RC5 to drive an LED on the ...
user avatar
0 votes
3 answers
82 views

How to make sure my motor will not start spinning on power up in case the throttle (POT) was not at a 0 position?

I am trying to make sure my motor which is connected to my controller circuit would not just start spinning when you first apply power to it as if the Potentiometer is left high before the battery is ...
user avatar
1 vote
1 answer
82 views

Pic18F67K40 unable to read 7940 RTCC over I2C

I'm trying to integrate the MCP7940N RTCC into my design. The MCU is the PIC18F67K40 and I'm using I2C to communicate. I created a new starter project to make sure that it works there before I add to ...
user avatar
  • 143
1 vote
1 answer
104 views

PIC Curiosity HPC with multiple UARTs

I've got a Curiously HPC with two mikroBUS UART modules fitted (1x FTDI232R and 1x RS485 5V), however MCC in MPLAB X isn't letting me map the EUSART2 of the target (PIC18F46K40) to module 2, even ...
user avatar
0 votes
2 answers
2k views

How do I resolve the following error "Verify failed. [ Pgm ] at 0x0, expected 0x00002805, got 0x00002807" in MPLAB X IDE

I recently decided to get into learning how to develop embedded systems, using MPLAB X IDE and literature available on microcontrollers. The vast majority of which referenced the PIC16F84 and as such ...
user avatar
  • 511
0 votes
0 answers
3k views

Makefile error with my MPLAB X

I am working on a PIC24 project, and I went to the project folder and moved a file to another directory inside the project folder, however, I got a makefile error. I created a new project and copied ...
user avatar
  • 569
1 vote
1 answer
85 views

Pic18F14K22 doesn't want to work with bluetooth

I'm currently working on a project that allows you control LEDs with bluetooth. I'm using an HC-05 bluetooth module. I got some code from the DeepBlue.com site where they explained the use of ...
user avatar
2 votes
2 answers
318 views

PIC MCU: XC8 Not treating TMR0 as a 16 Bit Register

I recently finished a project programming a PIC18F2620. All was good, but I decided to explore the new stuff Microchip has to offer, and am now trying out the PIC18F47Q43. I'm getting a strange ...
user avatar
  • 542
2 votes
3 answers
5k views

How to build the simplest assembly file in MPLabX IDE 5.4

I just started learning assembly coding in MPLabX IDE 5.4. Without connecting any hardware, simulator or debugger, I simply want to build an object code file and generate a listing file from an ...
user avatar
  • 1,188
3 votes
0 answers
299 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 ...
user avatar
0 votes
1 answer
263 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: ...
user avatar
  • 151
0 votes
1 answer
100 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 ...
user avatar
  • 304
0 votes
2 answers
1k 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 ...
user avatar
1 vote
1 answer
352 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 ....
user avatar
  • 13
0 votes
0 answers
40 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 ...
user avatar
0 votes
1 answer
106 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 ...
user avatar
0 votes
1 answer
273 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. ...
user avatar
  • 93
0 votes
0 answers
170 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 ...
user avatar
  • 900
0 votes
1 answer
3k 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 ...
user avatar
0 votes
1 answer
286 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 ...
user avatar
0 votes
1 answer
647 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. ...
user avatar
  • 93
0 votes
0 answers
194 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 ...
user avatar
  • 93
1 vote
0 answers
110 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 ...
user avatar
  • 875
0 votes
1 answer
548 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 ...
user avatar
  • 93
1 vote
1 answer
2k 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 ...
user avatar
  • 71
0 votes
1 answer
69 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: ...
user avatar
0 votes
1 answer
121 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'...
user avatar
1 vote
1 answer
165 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 ...
user avatar
  • 153
3 votes
3 answers
2k 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 ...
user avatar
  • 33
0 votes
3 answers
2k views

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

I configured the ADC for 3 instances/3 analog inputs: ...
user avatar
  • 371
0 votes
1 answer
201 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. ...
user avatar
  • 835
-2 votes
1 answer
436 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 ...
user avatar
  • 371
0 votes
2 answers
214 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 ...
user avatar
  • 371
0 votes
1 answer
47 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: <...
user avatar
  • 371
1 vote
1 answer
274 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 ...
user avatar
  • 371
0 votes
1 answer
730 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 ...
user avatar
  • 835
11 votes
3 answers
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 ...
user avatar
  • 377
1 vote
1 answer
324 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 ...
user avatar
  • 835