Questions tagged [mplab]

IDE for the Microchip PIC series of microcontrollers.

Integrated Development Environment for the Microchip PIC series of microcontrollers.

614 questions
1
vote
2 answers

How to use PIC12F675 timer1 interrupt?

What is wrong with this code? The interrupt at 0004 never executes! MPLAB X IDE simulator I tried changing all the bits of T1CON, but no results ; TODO INSERT CONFIG CODE HERE USING CONFIG BITS GENERATOR #include "p12f675.inc" ; CONFIG ; __config…
gikam
  • 15
  • 4
1
vote
1 answer

Two dimensional array initilization in Mplab XC16

I have defined the two-dimensional array inside the typedef struct as, #define MAX_STAGES_IIR 20 typedef struct { float A[MAX_STAGES_IIR]; // Input Gain float a[MAX_STAGES_IIR][2]; // input stage coff float…
1
vote
0 answers

Question about Peripheral Timing Generator (PTG) Module on dsPIC33CK256MP508

I am a newbie to programming in the Microchip PIC environment, so please excuse my naivete! I recently began experimenting with the dsPIC33CK Curiosity dev board (which contains the dsPIC33CK256MP508 dsp/mcu at its core), and have been exploring…
1
vote
1 answer

How do you run a SCL file in MPLAB without a "Run SCL" button

I have an assembly code for PIC18F458 that gets data from channel 0 (RA0) of ADC and displays the result on PORTC and PORTD. Therefore, I am trying to stimulate the RA0 pin on a PIC18F458 using a SCL file in the MPLAB X V5.05 Stimulus…
aLoHa
  • 165
  • 7
1
vote
2 answers

MPLABX math.h error . (1510) non-reentrant function "___fleq" appears in multiple call graphs and has been duplicated by the compiler

Im working on a project about active power and reactive power measurement kit with using PIC16F877A MCU. In the code, I use pow, sqrt and cos functions which are included in math.h library. when I execute the code I get these errors. CLEAN…
El_Canario
  • 41
  • 3
1
vote
2 answers

Stack underflow problem using PIC assembly on a PIC16F84A

I have a small project for a course I am doing that requires us to produce a PWM signal using PIC assembly language. To try and simplify things I have set the high time to 5ms and the low time to 15ms so I can call the same delay sub routine…
iwasjohn
  • 11
  • 2
1
vote
1 answer

XC8 Compiler setup on CLion for PIC Development

I am new to the embedded systems development space. My problem is I can't find a way to setup my CLion for development with the XC8 compiler on the PIC16f1779. I have limited knowledge on compilers and CMake also its my first time using C/C++. The…
khalilkm01
  • 25
  • 4
1
vote
1 answer

Having trouble with delay function in MPLAB XC8 compiler

I'm working with a PIC16F628A but the IDE won't accept the _delay_ms command and doesn't build/compile, I don't know what to do... here is my code: #include // STANDARD INCLUDE FILE FOR MICROCHIP PRODUCTS // uc CONFIG (START) #pragma config…
1
vote
1 answer

More than 256 operations in an 8 bit pic16F assembler

I am a rookie in assembly programming and I am currently doing a project using a temperature sensor on MPLAB and it's values to be displayed on a LCD. In order to convert the raw values (0 to 255 based on the output voltage) from the sensor to the…
Auster
  • 11
  • 2
1
vote
0 answers

How to integrate CPPCheck in MPLABX 6.0 or netbeans?

Microchip added a MISRA check function in MPLABX 5.45 which is just plugin for the free CPPCheck and for me it works pretty well. In the further versions of MPLAPX the MISRA check was gone. In MPLABX 6.0 it was reintroduced, but requires a 499…
Mike
  • 4,041
  • 6
  • 20
  • 37
1
vote
1 answer

build error "make: *** [.build-impl] Error 2"

I have this simple code for an initial project that my microcontrollersteacher asked. Im using MPLAB IDE V6.00, the xc8 compiler. But when i try to clean and build it this error in red collor code appears (the last 5 lines): CLEAN SUCCESSFUL (total…
1
vote
1 answer

C struct member not storing the value assigned

I'm working with a microprocessor (PIC32MX250) and I created a struct that stores various members: typedef struct { char element1[20]; unsigned char element2; unsigned char element3[2]; unsigned char element4[2]; unsigned char…
Filippo
  • 126
  • 1
  • 12
1
vote
1 answer

How do I turn a Fitec FS90R servo motor 90 degrees clockwise and anti-clockwise using a PIC18F4550

I have tried varying the duty cycle of the servo motor but it only turns 180 degrees clockwise and anti-clockwise.
user17862830
1
vote
0 answers

How GET process works in http server of MHC(MPLAB® Harmony Configurator)

I've tried to make http server with FatFS file system referring to web_server_sdcard_fatfs(https://github.com/GravitasCapstone/pic32-ethernet-sd/tree/master/web_server_sdcard_fatfs/firmware/src). The problem is that i can't understand the process…
TRI
  • 33
  • 2
1
vote
0 answers

Display control PIC24FJ128GC010

I work with the PIC24FJ128GC010 on the MPLAB® Starter Kit for Intelligent.Integrated.Analog with the compiler XC16. I will read the 16-bit-Sigma-Delta ADC and show the result on the LCD-Display. I found some example codes in C for the board but it…
VGDS
  • 11
  • 2