Questions tagged [mplab-x]
26 questions
0
votes
1 answer
MPLAB X IDE Redefinition Error after MPLAB 8 Import Project
Redefinition error due to typdef enum and pic header file. Defining AN1 to AN12 in two different header files - wont build
HI All,
I have a MPLAB 8 project which I have imported over to MPLAB X IDE. I've managed to change some of the C Standard…

Georgem
- 3
- 2
0
votes
0 answers
error: (1098) conflicting declarations for variable "I2C1_Initialize()" in XC8
void sensorConfig(void)
{
float buffer[SIZE];
char index = 0;
I2C1_Initialize();
I2C1_Open();
I2C1_MasterWrite(0xC7);
while(1)
{
for(index=0;index
0
votes
0 answers
I've been trying to run a code in MPLAB for interfacing a finger print scanner with PIC16F877A and LCD but the code is giving errors
Here is the code
#define _XTAL_FREQ 18432000
#include
#include
#include
#include
// BEGIN CONFIG
#pragma config FOSC = HS // Oscillator Selection bits (HS oscillator)
#pragma config WDTE = OFF // Watchdog…
0
votes
1 answer
What do I need to correct in the creation of delay routine using TMR0 on the PIC16F877A, using MPLAB X IDE v6.00?
I am migrating an old program developed in mplab with mpsam, however I can't find a way to solve two lines of code that are generating errors in the new MPLAB X IDE v4.0 with pic-as.
Attached is the migrated code pointing out where it is generating…
0
votes
1 answer
ceedling with MPLABx and XC8
I am starting unit testing using ceedling from Windows Powershell. I have made a lot of progress getting Unity to work with the XC8 compiler. But I have a problem I can't seem to solve. Here is a bit of the build dump.
'xc8-cc -mcpu=PIC16F18325…

Tim Trudeau
- 31
- 3
0
votes
1 answer
Compiler does not support 64-bit integers on target Architechture
I am new to MPLAB XC8 compiler and don't know why this error is happening as I did not use any number that is of 64 bit in my code.
Code is as follow
#include
#pragma config FOSC = EXTRC
#pragma config WDTE = ON
#pragma config PWRTE…

Zerox
- 15
- 5
0
votes
1 answer
Unable to resolve identifier
Being a beginner i have written this code in xc8 compiler but its showing warning on include file and error on port and tris register(Unable to resolve Identifier).Also When i execute this code in Proteus it only blink led on RB0 except on whole…

Zerox
- 15
- 5
0
votes
1 answer
how to combine ADRESH and ADRESL on 12 bit ADC
MICRO: PIC18LF47K42
compiler: XC8
application: MPLABX
I am trying to combine the values in of 12 bit ADC. They go into ADRESH and ADRESL. My ADC is set up for right-justify which does formating as so:
ADRESH:(----MSB,x,x,x) ADRESL:…

TJL6012
- 23
- 3
0
votes
0 answers
What is wrong with this PIC16F877A HCSR04 example?
I am working on distance sensor with PIC16F877A.
I am using MPLAB IDE AND XC8 compiler.
My goal is to gradually turn on the right leds at certain distance levels, but the leds are blinking unstable. What am I doing wrong? distance/5
When it…

Electronx
- 103
- 4
0
votes
1 answer
How to develop for PIC32MM without either MPLABX or XC32
While working for just one month with the MPLABX5.5 + XC32 3.01 I've already had 3 separate instances where code compiled incorrectly, causing my program to fail after either the stack or frame pointer began using an incorrect address. I would like…

Christopher Theriault
- 113
- 2
- 9
-2
votes
1 answer
Any clue as to why my code has errors in it?
I used MPLAB X IDE (a software for microcontrollers) to compile my code, but for some reason it keeps saying that there are at least two errors (specifically in the area that is bolded). I tried looking, but I'm still not sure why that is, so any…