Questions tagged [mplab]

IDE for the Microchip PIC series of microcontrollers.

Integrated Development Environment for the Microchip PIC series of microcontrollers.

614 questions
0
votes
1 answer

Migrating code from a PIC18F2480 to a PIC18F2680 Microcontroller

I have bootloader code written in MPLAB for an 18F2480 processor. My current project requires me to upgrade the microcontroller to an 18F2680. (The main difference between the two chips is that the 2480 has 16K of program memory/768B RAM/ 256B…
faul
  • 227
  • 2
  • 4
  • 13
0
votes
1 answer

Microchip: How to load more then one HEX file in MPLAB X

I use MPLAB X (sometime MPLAB 8) and i get some project to finish. I have these HEX files: bootloader.hex magic_flag.hex Bootloader is loaded from address 0x0 to 0x7FF. The magic flag has position in address 0x40 (so in bootloader area). And now I…
Lodhart
  • 635
  • 2
  • 9
  • 13
0
votes
2 answers

How to make global variable in library project using MPLAB X IDE

I want to create a library in C using MPLAB X IDE(ide for PIC developing). My library ABCLib has one simple source file like this: file abc.c void abcTest(int n){ // I want store n as global variable } To using this library in MyProject i…
blow
  • 12,811
  • 24
  • 75
  • 112
0
votes
3 answers

MPLab / C prg / Variables

I have MPLab V8.43 installed and just installed the C18 complier for programming. Whenever I try and build a small test code it halts at the first variable declaration. It says there is a syntax. unsigned char counter; doesn't look wrong to…
Chef Flambe
  • 885
  • 2
  • 15
  • 35
-1
votes
2 answers

How to latch a button in C?

When I press a button, this button performs a tast once it was pressed and even I release button, it should keep performing the task. But when I release the button, it does not perform the task. I assign a task to a button. And when I press this…
-1
votes
1 answer

connect more input to micro from pc817

How to connect more input to a microcontroller? I have 14 optocupler pc817 (1,2,3......,14): connect all pins 4 together from 1st set of 7th pc817 to mc(E1) connect pin 3 from pc817 no.1 to mc(A0) connect pin 3 from pc817 no.2 to mc(A1) connect…
-1
votes
1 answer

Fumbling through and failing at CODE writing. Working code, not working for me

I have installed MPLAB X IDE, XC8 and MPLAB IPE to write the code. Also, I have bought 2 Dev boards for testing the code out on with a PIC16F88. A small chip to get my feet wet. As I looked over many website, I see they offered CODE for testing.…
-1
votes
2 answers

PIC microcontroller automatically pressed

I'm trying to turn on a LED on a pic24FV16KA301 microcontroller, through a button press. The problem is the LED automatically goes on. After some altering it looks like the PIC is automatically pressed. The button is connected with a pull up…
user15669844
-1
votes
1 answer

programing sensors on PIC16F15323 two ADC input working good individually but together the input swap the output

i'm programing sensors on PIC16F15323-I/P so far i added two sensors ( water level sensor, voltage sensor) the problem is when i add the second sensor it swapped between the inputs the water level sensor takes the output for the voltage sensor and…
loolysh
  • 9
  • 2
-1
votes
1 answer

Header file inclusion doesn't work in MPLAB X IDE

screenshot of my code and error data This is my main.c file #include "services_initialisations_prototype.h" #include "services_functions_prototype.h" void main(void) { initSfr(); while(1){ updateMatrix(404, 1); } …
jauhar_k
  • 73
  • 2
  • 6
-1
votes
2 answers

[Microchip][Mplab X IDE v5.35] Makefile-default.mk has some problem when build source

【Environment】 OS: Windows 64bit Software: Mplab X IDE v5.35 Compiler: XC8 (v2.10) 【Step】 Menu -> Production -> Build Main Project 【phenomenon】 Build failed. make1: *** [nbproject/Makefile-default.mk:107: build/default/production/main.p1] Error…
anthony
  • 3
  • 1
  • 1
  • 2
-1
votes
1 answer

Pic16f88 and Sim900 module no response

I'm writing code to make a module that turn on a microcontroller port via a sms. I'm using a Pic16F88 and a Sim900 module, i'm programming in mplab X and XC8. It works in Proteus but no in the circuit i've resolved the power consumption problems…
-1
votes
1 answer

MPLAB XC8 compiler error:" no identifier in declaration "

I wrote a program that is using a Timer0 Interruption. I can't seem to compile my code, I have an error on line 14 which is no identifier in declaration. Here is the whole code: #include #define _XTAL_FREQ 4000000 #define…
maximus383
  • 584
  • 8
  • 25
-1
votes
1 answer

mplabx ide v5.10 version configuration failed... How can I regulate?

I take these errors when making clean and build or debug **`list P=18F45K22, r=dec, n=0 #include ; /* setup to use the 4xPLL with a 16MHz internal oscillator for a 64MHz system clock */ config FOSC = INTIO67 ;/* Internal…
-1
votes
3 answers

PicKit3 and PIC16F1829 programming, MCLR voltage

I just started with microchip world. I'm about to buy a PicKit3 and i've seen it can outputs from 1.8V to 14V MCLR. The pic i will use is the PIC16F1829 and it should work with MCLR @ 5V. In the datasheet it seems i would need a zener/shunt to limit…
user217354
  • 145
  • 1
  • 14