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

24-bit signed type (bareil76)

Hi All, I have a 24-bit signed type to handle. I see that "24-bit type only available on C18". Can I declare a 24-bit signed type with the correct operators so that it is handled correctly in xc16?...

View Article


__builtin_write_DISICNT( DISI_save) broken? (jimham)

It appears that the macro __builtin_write_DISICNT( ) is broken. I'm using MPLABX 2.20 in a Linux environment and XC16 V1.23 in free mode. The above macro expands to: "1 ( DISI_save);" when called as...

View Article


Query regarding the Q15 and Q16 math operator (amtech)

Dear sir, I want to use Q15 and Q16 math function. If i find square root value of given no. using Q15/Q16 format, what is a way to use this operation?I use Q15 and Q16 math operator as per 16-Bit...

View Article

Query regarding the Q15 and Q16 math operator (amtech)

Dear sir, I want to use Q15 and Q16 math function. If i find square root value of given no. using Q15/Q16 format, what is a way to use this operation?I use Q15 and Q16 math operator as per 16-Bit...

View Article

Confusion with the syntax (Rahul Kulkarni)

Hey guys...I am very new and hence dumb. I want to understand following syntax and also want to know where can I get more information about the syntax. I got the following code while searching for...

View Article


"warning: I just made a bad offset" (nvicchi)

Hello, I have an structure that is instanciated in the EDS memory space. With XC16 v1.20, now it displays the following warning: ../lib/cmd.c:67:24: warning: I just made a bad offset 13 2! (0x4245d20)...

View Article

What is wrong in my EXTRN declaration (semir_ver)

HiI tested one C program for PIC24 F (analog functions) and it was OK.I tested first as one separate module (standalone). I named it analog.c Now I want to incorporate this module in my main program.Of...

View Article

Constant in Program Memory (wilkie)

PIC24FJ256GB106Compiler XC16MPLAB 8.92 I have specified a constant in program memory using... __attribute__(( space(prog), address(0X18c50) )) Info = VER_NUM; When I read the program memory back I have...

View Article


PSV window, multiple page access for large arrays in flash? (Cypress)

I'm working with a PIC24EP512MC microcontroller with XC16 compiler. As the part number indicates, the device has 512KB of flash/program memory. I want to be able to save as many as 10 large arrays...

View Article


Error in i2c.h from XC16 Ver. 1.23 (balmerjd)

Let me start by saying that I've never used I2C before and I considered putting this in the IIC forum but thought since this is a syntax issue not a hardware issue it should probably go here. This has...

View Article

Migrating from C30 to XC16, what has changed??? (BobAGI)

I have a number of projects developed using C30 but now updates on C30 seem to have stopped so new parts are not covered.So my question now is if I am to move to XC16 instead, what are the differences...

View Article

sprintf (uController_Tomi)

Hi everyone! I am not sure if this problem is related to this topic. But I don't know where else it would fit. I am using a dspic33fj128mc802 with mplab xc16 compiler. I have to read data from an ADC...

View Article

EEPROM only works with C30, not XC16 (Christopher Bootloader X)

I am using a PIC24FJ256GA110 with a 128K SPI Bus Serial EEPROM.The problem is my program works perfectly fine if compiled by C30, but very unreliable if compiled by another version of XC16.I went...

View Article


PIC24F32KA304: Pull-up on RA4/CN0 not functional? (dirkjanb)

Hello, I cannot seem to get the weak pull-up of pin 34 / RA4 / CN0 to work using the following code:mPORTAInputConfig(IOPORT_BIT_4); CNPU1bits.CN0PUE = 1; The same code was confirmed to work for...

View Article

XC16/PIC24EP branch inside a .rept /.endr loop? (Cypress)

I'm programming a PIC24EP in assembly using MPLAB X and XC16. Is it possible to use bra inside a loop defined with .rept/.endr? Whenever I've tried it with XC16 v 1.21, I can't even get it to...

View Article


Symbols from an object file being exluded from the archive in a library...

I have created two library projects following the instructions on the wiki site. One of the library projects uses the other (by including it's header files and referencing the symbols declared...

View Article

PORTB pins 10, 11, 12, 13 don't work as digital I/O (PIC24FJ256GB106)...

PIC24 Topics: http://www.microchip.com/forums/fb.ashx?m=831375..

View Article


PIC24FV32KA304 Reset GOTO command (Addr. 0x000000) (mshaw)

Bit of background... We've had a PIC24F come back with the first 8 rows of instructions erased, i.e. all xFFFFFF. This has caused the initial GOTO command to fail obviously. I'm working on a work...

View Article

incorrect return from ISR (dextro)

Hi all, I have been setting up some initial code for a project I want to do in the new (for me at least) MPLAX X ide using xc16. I set up a simple blinking light example usintg the timer 2/3 interrupt...

View Article

"non-enclosed address space" error thrown by xc16 (Mwood)

Does anyone here know what this is? I am using the Microchip XC16 compiler and it is throwing this error: ../MainUIC130.c:514:25: error: passing argument 3 of 'PutImage8BPP' from pointer to...

View Article
Browsing all 1508 articles
Browse latest View live


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