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

utoa (yeags)

I must be making some obvious mistake but this works with other compilers: char test[] = "MMMMMMMMMMMMM"; //Just some characters to mark the memory utoa((unsigned)123, test, 10);I see the MMMs (0x4D4D...

View Article


XC16/PIC24EP/Asm: wait for specific clock cycle in an ISR? (Cypress)

I'm using MPLAB X with XC16 v1.21 to program a PIC24EP in assembly. My program uses a single timer interrupt service routine and there is some critical timing issue I want to resolve by waiting for the...

View Article


Query re XC16 Linker (myoPIC)

I have embarked upon a project using PIC24FJ256GB106 in an embedded system, which is to supersede a functionally similar system based on an HCS12X processor (Freescale). To minimise the scale of the...

View Article

XC16 compiler cannot allocate program memory (altDev)

Hello fellow microchippers, I'm coming to you with my first post and it is already a help request because of a bug I cannot fix. When compiling my project for my dsPIC33 the compiler stop with the...

View Article

XC16 1.23 Compiler Problem (tmm101)

Hi Everybody, I came across a problem today and I was wondering if anybody has any ideas. I am using version 1.22 without issues, but 1.23 throws the following error: code.c:2269:1: error: unable to...

View Article


Possible to import strings.h? (lunarcrusader)

I noticed that the cx16 does not have the strings.h file but the cx32 does. I am trying to use the strcasecmp function and am wondering if it is possible to import it? thanks,LC..

View Article

Question on bootloader written in XC16 (PoorEng)

Hi all, I want to write a bootloader in XC16(v1.11) and MPLAB X(v1.85) for dsPIC33FJ128GP802.I modify the gld file to place the bootloader code between 0x400 to 0xBFF.I don't finish the bootloader...

View Article

start of section warning (DarrylRoe)

When I build my project (using XC16 1.00) I get the warning: "elf-ld.exe: warning: changing start of section __c30_info by 1 bytes" Why is this section adjusted? Where is section __c30 info defined?..

View Article


XLCD Library for pic24f (johnoakley)

Does anyone know why the XLCD library used on PIC 24E, PIC24H, PIC30 series, isn't used for the PIC24F series. All the components such as header and c files are in the peripherals library but doesn't...

View Article


"GC" family PIC24F Peripheral Library (sunrise)

Can anyone please point me to the peripheral library documentation for the GC family, PIC24FJ64GC006 etc?It seems to be missing from the "Microchip PIC24F Peripheral Library.chm" file referenced in the...

View Article

#warning "Does not build on this target" with spi.h and i2c.h using...

Hello, I am having some problems trying to use both the spi and the i2c buses over a PIC24FJ128GA204. When I include the and the files, a lot of functions are not recognized and I receive the #warning...

View Article

Simple question about mixing C and ASM under XC16 (balmerjd)

So other than the standard answer of, "Just don't ever do it!", I understand from reading the manual that when you declare symbols/functions between the two dysfunction siblings that are C and ASM that...

View Article

dspic33ep256mu806 comparator selection (umarkhan)

Hi, I am trying to use the dspic33ep256mu806 comparator to compare an analog voltage against an internal reference voltage. I am unable to figure out how to enable a particular comparator, since this...

View Article


dsPIC33fj09GP302 interrupt vector table not filling with all vectors...

I am using MPLAB X IDE v2.2 with MPLAB XC16 v1.23 for compiling my project based on dsPIC33FJ09GP302. My ISRs are written in assembly code and I have used standard names provided in the MPLAB XC16...

View Article

Source code error in "adc.h" of peripheral lib? (suennele)

At end of file, there is#ifdef _PCFG0void OpenADC2(unsigned int config1, unsigned int config2, unsigned int config3,......#elsevoid OpenADC1(unsigned int config1, unsigned int config2, unsigned int...

View Article


Looking for XC16 library for LCD and other good code (Sim0n)

I have been using pic's for a while but have only recently started with MPLAB X. I have successfully set up various interrupts, serial comm's.... now I am trying to print to a HD44780 LCD (4 bit). I...

View Article

Allocating big chunks of memory with malloc (slaviber)

I'm using dsPIC33EP512GM310 for some video processing and I need to store the data into a big buffer (45KB).I tried to initialize the buffer in the stack, but for some reason the maximum stack size...

View Article


Where is the source code for gmtime() in the XC16 folder? (DB8)

I would like to know where to find the source code for gmtime() in the XC16 folder. I know that for XC8 it is found in xc8//sources/common/ctime.c. Thank you...

View Article

PIC24F with DS2401 (1-wire) (dimitris_c)

Hi all, I am using a PIC24Fj256GB106 and I am trying to interface it with the DS2401 using 1-wire.I am using a 8Mhz crystal, with PLL, and the XC16 compiler.Furthermore, I am using a 1KΩ pull-up...

View Article

SPI Problem (anjaneyulu saikam)

I am working with dsPIC33F128GP802. I would like to interface my MCU with micron serial flash N25Q series. My MCU is operated with FCY= 10MHz and SCK at 2MHZ. I was successfully on/off SPI module and...

View Article
Browsing all 1508 articles
Browse latest View live


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