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

Newbie needs help w/ ISR installation/activation (ChipBurns)

I want to create, install and enable an ISR. I've been building embedded systems since the 1990s but this is my 3rd day with MPLAB X & XC16 and need some clarification. I'm using the...

View Article


#pragma to ignore unused enums in a switch (ChipBurns)

Is there a #pragma to ignore unused enums in a switch statement?..

View Article


macro vs inline (ChipBurns)

I'm using a dsPIC33CK64MP205. I want to toggle pin 3 of Port C LO-to-HI. In my experience using 'inline' means the compiler includes the 'inline' code into the existing process flow without pushing the...

View Article

PIC24 full memory map (balazzska)

Hello folks! Long time lurker, fist time poster here. l I've been using Microchip microcontrollers in the past 10+ years for hobby projects and professionally as well - I make my living as embedded...

View Article

XC16 packing structures? Need some help here. (AndersG)

This is an incomplete example I used for testing://// Define a structure that defines all the bits and bytes in the status reply//#pragma pack(1)typedef struct { unsigned char unit; // First byte...

View Article


Using an ADC on a dsPIC33 (ChipBurns)

Hi All, I'm just getting started with this ADC. My first task is to connect the pins on my dsPIC33CK64MP205. I'm using PORT A, pins 0 & 1, so I'm setting: ANSELB |= (1<<0); // Port B.0,...

View Article

Problem with using AIVT (dsteinwe)

Dear admin, i got the error: Access Denied You don't have permission to access "http://www.microchip.com/forums/post.aspx?" on this server. Reference #18.21f01502.1650962467.1ba3d1f when a submit the...

View Article

dsPIC33 ADC, ADTRIGnL & ADTRIGnH (ChipBurns)

Can someone explain the difference between the LOW (ADTRIGnL) and HI (ADTRIGnH) registers in the attached figures? Fig. 1.0 comes from the "12-Bit High-Speed, Multiple SARs A/D Converter"...

View Article


PR2 no change (Remaga)

Hi good day, i use mplabx v6 and xc16v1.11 for my project, but i no can change the value of PR2, for example : timer23=50000;PR2=timer23; then PR2 no is 50000. Then i update a xc16v1.7 then PR2 update...

View Article


Master mode SPI data corrupted (Alessandro Vinassa)

Hi everybody!I encountered a few problems with the MSSP peripheral of both PIC18F66K80 and 46K80.I am using the SPI in master mode to write data into an DAC every 6ms. Meanwhile, in background, I have...

View Article

Optimization bug in V2.00? (Wieschebrock)

I have a very simple typedef to access the bits of a byte.Surprising for me is, that with optimization 1 an assignment to a variable of this type is optimized away, although later still accesses take...

View Article

Locate stack in EDS (mmitton)

Hi, I am trying to have my stack allocated in EDS memory. I uncheck the option "Use local stack" and can see that my command line changes correctly from ... --heap=2000 --stack=1000 --local-stack...

View Article

Avoiding erasing a Bootloader (ChipBurns)

I'm trying to find a way of debugging my application without erasing the bootloader I've created which lives @ 0x0-0x2000. I'm using a dsPIC33CK64MP205. I have created a Bootloader using the MCC. It...

View Article


SCCP1 does not trigger ADC Core 0 (ChipBurns)

I'm trying to use SCCP1 to trigger an A/D conversion on ADC Core 0. The ADC does not trigger. I've verified that SCCP1 is firing by using both the CCP1PRL & CCP1PRH = 0x186A (generates interrupts @...

View Article

Using global C variables in C called assembly functions (atonyb)

Hi everyone, I really wasn't sure where to post this and apologies for what may be a very basic question... I'm trying to write some C callable assembly functions for my dsPIC project to access DSP...

View Article


Including git version in C Source Code with MPLAB X (bassbreaker)

I am using git for version control, and I would like to include the git tag in my source code so that I can use a serial command to see what version I have on the microchip. I have come across ndyer's...

View Article

Busy Flag value always high during LCD read (JHD 204A) (vijayakumar.sargunam)

Hi Friends, Iam interfacing 20x4 LCD (JHD204A) with dsPIC33F. Instead of delay iam using busy check for issuing command and data to the LCD. If i use delay instead of busy check the LCD shows the...

View Article


MPLAB ICE-4 (ChipBurns)

Anybody using the ICE-4? Is it worth $1800? My particular beef with the ICD-4 is that it doesn't stop where you set the breakpoint, but at the next line. Does the ICE-4 fix this problem? This is a big...

View Article

dsPIC33CD - New architecture? (rehakmatej)

Hi,I have recently downloaded MPLAB X IDE 6.00 and in the device family packs I see new dsPIC33CD-MC_DFP. Is this DFP for some new architecture? Thank you for...

View Article

How to force XC16 to be C99 compliant (rnicolas)

Hi, I am trying to force XC16 to follow strictly the C99 standard, but I cannot find any option in the IDE (under Project Properties -> XC16->XC16-gcc) to change it. Any idea?..

View Article
Browsing all 1508 articles
Browse latest View live


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