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

24-bit signed type (bareil76)

$
0
0
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? Thanks...

__builtin_write_DISICNT( DISI_save) broken? (jimham)

$
0
0
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 __builtin_write_DISICNT( DISI_save). I don't call it dir..

Query regarding the Q15 and Q16 math operator (amtech)

$
0
0
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 Language Tools Libraries Reference Manual,but i got error "..

Query regarding the Q15 and Q16 math operator (amtech)

$
0
0
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 Language Tools Libraries Reference Manual,but i got error "..

Confusion with the syntax (Rahul Kulkarni)

$
0
0
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 information about my problem. I have pasted the line bello..

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

$
0
0
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) (mem/s/f:HI (plus:P32EDS (reg/f:P32EDS 70 ) (const_in..

What is wrong in my EXTRN declaration (semir_ver)

$
0
0
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 couse I changed some declaration.Seems that problem i..

Constant in Program Memory (wilkie)

$
0
0
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 FFFFFF X 21 times before the specified address. What ..

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

$
0
0
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 (25KB) of unsigned 8-bit integer constants in flash. I hav..

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

$
0
0
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 to do with the i2c.h file in the XC16\V1.xx\support\pe..

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

$
0
0
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 between the two tool chains?Are there any gotchas that..

sprintf (uController_Tomi)

$
0
0
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 at about 1ms intervals. The data that I get is a floati..

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

$
0
0
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 through the user guide for XC 16, but didn't find anything ..

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

$
0
0
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 RB11/RB12. (CN15 / CN14). Thanks for any help...

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

$
0
0
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 compile/assemble. I get an error message of the form: "XYZ.s:12..

Symbols from an object file being exluded from the archive in a library project (MikeAtCalidus)

$
0
0
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 therein), but does not reference the archive or library projec..

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

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

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

$
0
0
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 around in case it ever happens again. I think this is relat..

incorrect return from ISR (dextro)

$
0
0
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 and found out through simulation that the ISR does no..

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

$
0
0
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 non-enclosed address space. I can find no definition for such a t..
Viewing all 1508 articles
Browse latest View live


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