Questions tagged [mplab]

IDE for the Microchip PIC series of microcontrollers.

Integrated Development Environment for the Microchip PIC series of microcontrollers.

614 questions
2
votes
1 answer

subwfb in PIC 18F8722 Assembly

I have a variable temp2 which is assigned 00001101(13) and I had moved 00001010(10) to wreg. (By the way all these registers are checked in MPLAB x Debugger session step by step.) Then, I execute subwfb temp2 instruction. temp2 should be…
mualloc
  • 495
  • 9
  • 24
2
votes
1 answer

XC32 migrating from 1.32 to 1.34

I'm using XC32 and MPLABX for work. After a year of projects I've decided to try to upgrade to new XC32 version. I've seen that legacy libraries like plib are no longer supported and I'd like to know if someone have tried to migrate old projects to…
2
votes
1 answer

Include problems with FreeRTOS Simple Demo on PIC32MX

I've been trying to get my hands on freeRTOS at work for a few days now. Since I'm done reading the documentation on the website, I'm now trying to work a simple demo on a PIC32 starter kit (with MPLABX. So far it works, the led blinks and the…
2
votes
0 answers

PWM on 16f error

My code will not compile because of this error in this function can anyone help void SetDCPWM(unsigned int dutycycle) { unsigned int local_dutycycle; local_dutycycle = dutycycle; CCPR1L = (dutycycle >>2); CCP1CONbits.DC1B = local_dutycycle &…
Gooner1990
  • 35
  • 5
2
votes
1 answer

MPLAB PIC18 legacy project link no chipname specified

I'm trying to rebuild an old project using MPLAB IDE v7.60 with the XC8 compiler in C18 compatibility mode as documented in the MPLAB C18 to XC8 C Compiler Migration Guide. I've managed to get all of the source compiled but the linker step…
James Allman
  • 40,573
  • 11
  • 57
  • 70
2
votes
1 answer

how to integrate git on mplab.x

I'm currently using MPLABX IDE v2.10 and GIT is missing. I tried to implement git plugin available on this link: http://plugins.netbeans.org/PluginPortal/ But there is not a GIT plugin for the MPLABX IDE that is based on NetBeans 7.x Anyone have any…
mik3fly-4steri5k
  • 712
  • 3
  • 15
  • 32
2
votes
4 answers

Return statement in an infinite loop

Where does this return statement return to if it is inside this infinite while(1) loop? More importantly, I had no idea that a while(1) loop could be broken??? void __attribute__((interrupt, no_auto_psv)) _T3Interrupt(void) { int count; …
Stumpyhuck29
  • 63
  • 4
  • 10
2
votes
1 answer

Simulator Hello World in MPLAB IDE: Put stimulus on pins using Pin/Register Actions

I've written a hello-world program for an 8-bit PIC microcontroller and want to run it on the MPLAB X IDE simulator. I want to create a stimulus on its pins, and have the result appear in the microcontroller's register which corresponds to the…
Jodes
  • 14,118
  • 26
  • 97
  • 156
2
votes
0 answers

C Static Analysers: setting up to automatically include all files that the IDE/compiler knows about

Do I have to manually tell the static analyser which files to include in the analysis? I'm using a NetBeans-based IDE (MPLAB X) to program an embedded system in C (with the XC8 compiler). It is very easy to build the project, and when I add .c or .h…
Jodes
  • 14,118
  • 26
  • 97
  • 156
2
votes
1 answer

Send converted DS1820 temperature over PIC16 uart

I'm trying to send a converted temperature reading from my DS1820 to my PC using a PIC16F877 uart. I am using MPLABX and the XC8 compiler, which has a build in usart.h, though it's only useful for the PIC18 series, so I'm using usart_pic16.h which…
Markus
  • 665
  • 2
  • 9
  • 22
2
votes
1 answer

Mercurial from MPLAB: what are the very first steps?

I have never used a version control system before, and am rather confused about the very first steps. In a personal PIC/MPLAB programming project, under Linux, (no one else involved), with a single source code file that will go through several…
Harry Weston
  • 696
  • 8
  • 22
2
votes
1 answer

Mercurial post-build commit in MPLAB (Eclipse)

I have a question about using Mercurial with MPLAB (which is basically just a wrapper around Eclipse). I am wondering if it is possible to add a post-build step to commit a project to the repo. Right now, we're just doing it the brute force way;…
Adam Head
  • 133
  • 3
2
votes
2 answers

Setting up a C project with multiple source files in MPLAB

I'm using the MPLAB IDE and the XC8 compiler for a C project for PIC18 devices. I'm building a project with multiple source files and don't know how to make the structure. In the project, I have the following things: A file main.c where the main…
user1544337
2
votes
1 answer

i2c of multiple registers/devices

I've just finished implementing a successful read from an ADXL345 accelerometer from a PIC microcontroller (dsPIC33) using i2c. All I've achieved so far is reading the device ID correctly, which is a single byte. Anyone that has used the ADXL345…
ritchie888
  • 583
  • 3
  • 12
  • 27
2
votes
2 answers

Conflicting declarations in XC8 when using extern struct

I have a variable that is a struct, defined in a .c file: struct { int write_cursor; int read_cursor; message messages[10]; } out_messages = {0, 0}; To make it available in other files I have an .h file with: extern struct { int…
AndreKR
  • 32,613
  • 18
  • 106
  • 168