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
24 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 ...
0
votes
1answer
63 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 ...
0
votes
0answers
63 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 ...
0
votes
1answer
27 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 ...
0
votes
2answers
61 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 ...
0
votes
0answers
70 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 ...
0
votes
1answer
76 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. ...
0
votes
1answer
54 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 ...
0
votes
1answer
70 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 ...
0
votes
3answers
72 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 ...
0
votes
1answer
49 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 ...
1
vote
1answer
63 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 ...
0
votes
2answers
893 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 ...
0
votes
0answers
1k 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 ...
1
vote
1answer
76 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 ...
2
votes
2answers
239 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 ...
1
vote
3answers
4k 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 ...
3
votes
0answers
198 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
1answer
149 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
85 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
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 ...
1
vote
1answer
192 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
37 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
90 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
197 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
121 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
1answer
2k 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
177 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
383 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
131 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
74 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
380 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
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 ...
0
votes
1answer
61 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
104 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
126 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
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 ...
0
votes
3answers
1k 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
166 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
364 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
191 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
45 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
220 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
578 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
282 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
102 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
1k 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
317 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
155 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 ...