Quantcast
Channel: MPLAB XC16
Browsing all 1508 articles
Browse latest View live
↧

16x2 LCD second line not visible for dsPIC33F processor using XLCD library...

Hi, Iam using XLCD library for LCD display (8-bit interface). Iam using dsPIC33FJ64GS606 processor for programming. I written the code using XC16 compiler. i can able to see the output in first line of...

View Article


XC16 C90 option? (ian_3k)

Is there an option to use C90 in the XC 16 compiler as there is in XC8?I am struggling to get things that I have used before in XC8 to work in my program using XC 16. One thing I usually do is select...

View Article


dspic33ep256mc506 and XC16 V2.00 problem (seyyah)

The same code on XC16 V1.70 and V2.00 compiles different. I mean there is no problem with V1.70 but with V2.00 generated code is larger and somewhat slower. What is the reason of this?..

View Article

dsPIC33CH slave core not work with PLL via bootloader (denos)

Hi I am using: dsPIC33CH512MP508, MPLAB X v5.50, MCC v5.0.3, XC16 v1.70. Created three projects using MCC: Master, Slave, boot (bootloader). Each of them uses Primary Oscilator (8 MHz) and PLL. 1. When...

View Article

XC16 compiler - packed structure - how? (gerlad0)

What am I doing wrong with this attempt to packing a structure? Is #prama pack not supported?? #pragma pack(2) struct logSeqTime { uint8_t timeTag; uint32_t timeStamp; } LOG_TIME; #pragma pop..

View Article


How to obtain disassembly of all compiled source (MPLAB x5.45/XC16 1.61) ??...

Quite some time ago, I was able to produce disassembly of all source via IDE which was viewable from Window->Debugging->Disassembly. I "thought" that I generated that Disassembly without using...

View Article

pic24fj64gb406 - write to text file (Krystle)

Hi,I am using MPLAB X IDE v5.35 and X16 v1.50 compiler. I'd like to know that is there any way to write a data to a text file using PIC24FJ64GB406?Actually am reading UDID of this PIC using table read...

View Article

Problem when casting a uint16_t pointer (lucciodelavegas)

Hi, I have a problem casting a integer pointer.I already used this with XC8 and PIC18 without any problrm.Here is the code:// Global variableuint8_t testBuffer; // It worksvoid WriteBuffer(uint8_t...

View Article


Bug related with rounding. (andrebastos)

Microcontroller: dsPIC30F6011A Program: MPLAB X IDE v6.00 Compiler: XC16 v2.00 Hello. I would like to know how could I solve a problem related with rounding and the use of the sprintf function. Here is...

View Article


I2C LCD2004 not responding display blank - dsPIC33Fj64gs606...

Iam programming a i2C LCD2004 display peripheral using xc16 compiler and dsPIC33Fj64gs606 processor. i connected pin 36 (SDA1/RG2) and 37(SCL1/RG3) with LCD2004's SCL and SDA pins. after repeated try...

View Article

While loop resetting MCU (bassbreaker)

I am using the dsPIC33CH128MP506 with MPLAB X IDE v5.50 and XC16 v1.70. I am having an issue where the MCU is resetting (or something) and it seems to be a function of how long a while loop takes. I am...

View Article

strange inexplicable behaviour in power consumption... (ian_3k)

Does anyone have any ideas on this one?I am using an 24FJ128GU406, MPLAB X V6.00, XC16 V1.60 in a battery powered project with RTCC. In order to keep the RTCC running when the main battery fails there...

View Article

slave core's code not working sometimes (jay1512)

Hello, I don't know what happening wrong, but in the stating when configuring slave and master, both core working properly but after few edits via MCC in slave core, don't know what wrong is happening,...

View Article


Regarding code compilation issue with XC16 v1.50 (hrm2519)

Hello,I have a FreeRTOS based project that I am trying to compile in MPLAB X IDE. I am using the following versions: MPLAB X IDE: v5.20 (project requirement)Compiler: XC16 v1.50 The compilation is...

View Article

"_Noreturn" in stdlib.h yields error after updating to XC16 v2.0 (juju01)

I just downloaded XC16 v2.0 and tried to compile my project. As expected there are quite a few warnings in my own code, but what baffels me is an error in "\Program...

View Article


Getting return address with __builtin_return_address() (ftrias)

I have some legacy code on a dsPIC33 and I need to keep track of what functions (and how often) a particular function is being called from. I figured if I can just print out the return address at the...

View Article

Code for a blinking LED (PIC82)

Hello Forumer,i am a beginner and not well experienced in programming Microchips.I wrote a "simple" blinking-LED code for a dsPIC30f3013 chip in MPLAB X IDE v5.5.Unfortunately i got a lot of errors....

View Article


__delay_us delay times not making sense (RyanB)

Hi - first post here... I need a consistent microsecond delay for a DS one-wire application. I have looked at a few threads on here about the __delay_us function. I've tried to follow the code examples...

View Article

DC/DC Boost Converter (naeem1234)

Hello everyone I am looking for some help about how to implement a DC/DC boost converter with a dsPIC33? Your help is highly appreciated...

View Article

undefined reference to `_CloseUART2' (Lundail)

Hello I am supporting a legacy project, ive only ever used atmel with avr studio before, so I'm new to PIC.I only have the source files to work with so I'm trying to get the projects set up. I am...

View Article
Browsing all 1508 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>