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 Articlemacro 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 ArticlePIC24 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 ArticleXC16 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 ArticleUsing 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 ArticleProblem 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 ArticledsPIC33 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 ArticlePR2 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 ArticleMaster 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 ArticleOptimization 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 ArticleLocate 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 ArticleAvoiding 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 ArticleSCCP1 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 ArticleUsing 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 ArticleIncluding 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 ArticleBusy 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 ArticleMPLAB 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 ArticledsPIC33CD - 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 ArticleHow 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