Skip to main content

Questions tagged [mplab]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
84 views

A strange issue that appears to be an obvious fix at first, but I have tried the usual suspects... My goal is to build a simple UART bridge on a PIC16F18456 (without XTAL). RX data on USART1 and TX ...
GeoReb's user avatar
  • 33
0 votes
1 answer
102 views

I have limited experience with microcontrollers and I am currently working on implementing a simple bootloader using the code provided in the following repository: AVR128DA48 Curiosity Nano Bootloader ...
Spiros Andreopoulos's user avatar
2 votes
1 answer
183 views

Are there common causes for sprintf to suddenly stop functioning as expected in an embedded environment? Microcontroller: PIC24FJ128GB204 ...
Shadow's user avatar
  • 493
1 vote
1 answer
532 views

As in title. I'm trying to program a PIC12F1840 microchip to blink a LED with the following code: ...
Gianfrancieschio Bolza's user avatar
0 votes
1 answer
94 views

I have a board with PIC32MX795F512L. The board icsp connector is connected to PGEC1 (pin 24) and PGED1 (pin 25). I accidentaly flashed a hex bootloader (i don't have the source code) used for another ...
Isacco's user avatar
  • 315
-1 votes
3 answers
313 views

I'm using a PIC16F1832X to communicate with a MAX6675 thermocouple-to-digital converter. As I read the values of the temperature and the SSPBUF register, they are way too high; SSPBUF is 223. I assume ...
wqeeekendwrrar's user avatar
0 votes
1 answer
279 views

I want to use sprintf function to convert a float to string, here is part of the main.c code : (PIC24JF64GA004) ...
Issam H's user avatar
  • 21
1 vote
1 answer
151 views

I wrote a code for pic16f18855 analog voltage to digital value reading. but I noticed that analog voltage connected to pin RA0 read with RA1 and analog voltage connected to pin RA1 read with RA2 and ...
Alina Khan's user avatar
0 votes
1 answer
100 views

I am using MPLAB IDE v8 (not IDE X) to write some PIC programs (PIC18F4321) in assembly. I am using the debugging tool MPLAB SIM to debug the programs, however I am not able to force port bits from ...
bardulia's user avatar
  • 405
0 votes
2 answers
348 views

I'm working with a PIC24F04KA200 in MPLAB X IDE v6.05 and debugging using a MPLab Snap debugger. Programming in C. I can program the device perfectly fine. When I want to debug the program I need to ...
Royginald's user avatar
0 votes
0 answers
90 views

I have tried to program a 30f2010 and its got code protected. Showing 0×00000 error. I have a PicKit2 but didn't know how to use it to reset ic. I've found something like this in the datasheet. How ...
Muhammad Asraful Emon's user avatar
1 vote
2 answers
307 views

I am getting results I don't understand in a small application (I am still a learner) using PIC16F627A MCU. Schematic of the circuit: simulate this circuit – Schematic created using CircuitLab ...
RickyBoy's user avatar
  • 445
2 votes
0 answers
97 views

I am working on a project on a Microchip PIC32CM LS00, trying to run a code found on GitHub (https://github.com/Microchip-MPLAB-Harmony/csp_apps_pic32cm_le_ls, specifically the "TrustZone basic ...
Skelkinver's user avatar
0 votes
1 answer
187 views

I apologize for the (probably) trivial question -- I'm just starting to get back into coding for MCUs after a long hiatus, so please be patient with me. I'll preface this by acknowledging that there ...
uWaveMan's user avatar
0 votes
0 answers
595 views

I use Microchip MPLAB X MCC to generate the base application using TCP/IP lite stack for system with pic16f18346 and enc28j60 chipsets. I get the following errors. Scanning thru this error log you ...
Shamsul TehAhmad's user avatar
1 vote
1 answer
556 views

I am using PIC16F628A, MPLAB IDE to coding and Pickit3 to write the code into MCU. The code works on Proteus but does not in real world. I setted A0 pin as input. It should count up normally and count ...
akiftokel's user avatar
2 votes
1 answer
101 views

I already used it with a PIC18 and the RC3 pin is working for me, but for the PIC16F886 the 14th pin is described as "RC3/SCK/SCL", however, in picture 18 it is described as only "RC3&...
12vi12's user avatar
  • 21
1 vote
2 answers
2k views

I have a problem that cannot exist. I keep building programs in MPLab that are close or just over my allotted RAM. I really want to see by how much over my RAM ("data memory" - why do they ...
Mr Man's user avatar
  • 65
0 votes
1 answer
111 views

I tried to compile an MLA file without success. The IDE keep telling me that "No such file or directory." Any idea how I can solve this problem? How can I change the directory of these ...
adrengineer's user avatar
-1 votes
1 answer
470 views

Convert 12 bits adc to 10 bit adc. We know that the resolution of the step size for a 12 bit is 1.22, different than the step size of 4.88 of the 10 bit. We need to take into account the extra 2 bits. ...
Citi's user avatar
  • 429
2 votes
1 answer
447 views

hi, i am trying to debugging a ethernet PHY chip using MPLAB harmony v3. (My controller board is SAM E54 curiosity ultra.) However, I got a SYS_TIME pink circle in MHC like above picture. How can i ...
journey's user avatar
  • 119
1 vote
1 answer
192 views

I have just started using MPLAB for microchip Atmega128. I had a few questions regarding the following code segment for USART initialization which I found in the product documentation. Do I need to ...
Paavani Khanna's user avatar
2 votes
1 answer
3k views

Need to program and debug PIC and AVR MCU's so MPLAB Snap looks to be a very attractive option however: "it supports many of Microchip’s newer MCU offerings but not some legacy products" - ...
Canute S's user avatar
  • 165
2 votes
3 answers
336 views

Microchip PIC16F15323 topic: I have source code that compiles fine under Microchip's mpasmx. Somewhere in there I may have a bug, as unlikely as that may seem. I would like to debug my code. I have ...
Ken Smith's user avatar
  • 284
1 vote
1 answer
234 views

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 ...
Dan Twining's user avatar
0 votes
1 answer
275 views

I am having a bit of a problem with RPi-PIC18 I2C communication. The raspberry is the master, the problem is with the PIC18F25K80 slave device. Here is my code regarding the I2C parts: ...
Marcell Juhász's user avatar
0 votes
0 answers
147 views

I am trying to communicate with LCD2041 using pic32MM using I2C I wrote the following code on MPLAB code configurator but so far the status for the I2c communication seems to get stuck on pending . I ...
g ghimire's user avatar
1 vote
1 answer
1k views

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 ....
Kev's user avatar
  • 13
0 votes
2 answers
173 views

I am using MPLABX simulator to simulate some code. I want to create a signal for an external pin of the MCU using the stimulus. To do this I need to attach an .scl ...
Samwel Portelli's user avatar
0 votes
0 answers
565 views

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 address ...
Geo's user avatar
  • 223
0 votes
1 answer
2k views

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 ...
Geo's user avatar
  • 223
0 votes
1 answer
472 views

I'm using MPLAB X IDE v4.20 to compile the following code: ...
Luis Toledo's user avatar
0 votes
1 answer
155 views

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: ...
Ish Montalvo's user avatar
1 vote
1 answer
1k views

I am using PIC18F67K40 and PICKIT3 with MPLAB 8.92V for programming. But I am getting error: Failed to get device ID I have attached schematic snap of MCLR circuitry. I am able to program other ...
MightyBeard007's user avatar
0 votes
1 answer
214 views

I'm new to embedded systems. I have MPLAB Xpress Evaluation Board. I see that the board has MikroBUS connectors. Going through the internet, I couldn't understand what is the purpose of the MikroBUS? ...
macro_controller's user avatar
0 votes
1 answer
341 views

When i'm doing code using MCC for example i will put my code the following way: ...
Nmaster88's user avatar
  • 391
0 votes
1 answer
676 views

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 ...
Nmaster88's user avatar
  • 391
1 vote
1 answer
85 views

When configuring a Timer Driver implementation the option for Dynamic and Static appears. Anyone knows, what does these 2 types mean?
Nmaster88's user avatar
  • 391
0 votes
2 answers
2k views

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 ...
Nmaster88's user avatar
  • 391
0 votes
1 answer
1k views

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 anything ...
Nmaster88's user avatar
  • 391
0 votes
1 answer
130 views

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! ...
Nmaster88's user avatar
  • 391
0 votes
1 answer
296 views

I just bought a PIC16F884 and put a simple C program on it using MPLAB: ...
David Lichmann's user avatar
2 votes
1 answer
171 views

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 ...
Jose Luis Montalvo Ferreiro's user avatar
1 vote
0 answers
954 views

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 ...
karka Slapta's user avatar
1 vote
1 answer
222 views

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. ...
Jalo's user avatar
  • 113
0 votes
1 answer
867 views

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 ...
nerdsley's user avatar
  • 105
2 votes
2 answers
137 views

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 ...
TomS's user avatar
  • 202
-1 votes
1 answer
129 views

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 ...
user66377's user avatar
  • 586
1 vote
2 answers
387 views

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 ...
A.F.'s user avatar
  • 33
1 vote
2 answers
2k views

What is the difference between the different types of pic compilers such XC, Hi Tech etc?
DavidEnds's user avatar