Access eds via 16 bit pointer (Wieschebrock)
I am using VGDD/MLA for our LCD GUI project and it really works fine.For different language support VGDD creates a const string pool and a pointer array to every string.Unfortunately with many strings...
View ArticleAssembler sometimes rejects indirect+offset (Hansl)
Well, this is difficult to reproduce, I suspect a bug like a race condition in the IDE: Using MplabX 3.61 / XC16 1.31 on a PIC24H256GP310A, the assembler complains — /S/TechDok/771/77109001.S:1800:...
View ArticleGood coding practices for PIC24. Piece of code to run just one time...etc...
Hello Forum! I am just writing my first code for a PIC and I have some questions that I have not been able to locate in the bibliografy. What is the most efficient way to run a piece of code just one...
View ArticleStandard C Library (Rowlandski)
I have some old code which was compiled with CCS PIC C compiler (8 bit).It uses a library function: shift_left(address, bytes, value)Shifts a bit into an arrayaddress: Pointer to memorybytes: Count of...
View ArticleMicro SD Card Disk Strutu Read via SPI mode (PIC/SPI) vs read via PC/card...
Hello All, Issue: MBR pointing to Empty sector as Relative/Boot sector. I am interfacing SD card on ARM: LPC3250.On issuing READ_SINGLE_BLOCK(CMD17) command i am getting MBR output as below. data =...
View Articlesizeof() error... (Rowlandski)
I'm trying to use the soizof function and get an error:extern char pcSSIxxDCmdStr[];char pcSSIxxDCmdStr[] = "12_Read SSIDBxx";sizeof(pcSSIxxDCmdStr);Get error:error: invalid application of 'sizeof' to...
View ArticleWhat options are disabled in free XC16 compiler? (adrahman)
I've installed MPLAB X IDE 3.61 & XC16 Compiler 1.24 (not the latest one because this is what my client wants). I'm going to modify an existing firmware based on PIC24F. I'm not sure which compiler...
View ArticleEncrypted function, with UART control (Rowlandski)
Is it possible to have an encrypted function within your code, where a UART command can unencrypt it and then use that function?..
View ArticleNOKIA 3310 LCD Intialization Error (Taylor)
HelloPlease can anyone tell me where is the error in my code? i can't init the LCD 3310i've checked it many times and nothing /* * File: main.c * Author: programming * * Created on 18 juin 2017, 20:54...
View Articleshift me not (rombios)
using a pic24fj256gb106xc16 1.31 noticed that the following code appeared to only work when bySelection is between 0 and 15if(((ptrMenu->dwMenuMask) & (1 << bySelection)) != 0) break;...
View ArticlePWM IN DSPIC33EV128GM006 (tmr_suresh)
I need only 1 pair of pwm. i tried this code . i may miss some thing. void initPWM(){PHASE1 = 0;DTR1 = ALTDTR1 = 25;MDC = 600;PDC1 = 600;PTPER = 1474;IOCON1 = 0xC800; PWMCON1 = 0x0000; PTCON2=...
View ArticleSilicon Errata Workarounds in XC16, e.g. dsPIC33EV256GM102 (Severino)
I'm planning to use the dsPIC33EV256GM102 for a new project.As usual, I checked the erratas for that family.There are a couple of erratas that affect the CPU, for some of them there is a work...
View Articlebug of some sort? or optimization nonsense? DSPIC skips instruction (Jack_M)
I'm having this issue when optimization is enabled. XC16 v1.30, -O1 enabled.DSPIC33EV256GM106 what is happening is that a function is called but one of the parameter isn't correct function...
View Articlehow many bits are the VECNUM fields of INTTREG on the pic24fj256gb106 family...
I thought Id post here to resolved a discrepancy between the vector_doc paper in the xc16 directory and the 39897 manual.getting spurious interrupt 94 on a device that shouldnt support it...
View ArticleCall stack in EDS memory (Maldus)
Hello everyone,I'm having some uncertainties about memory configuration in my PIC24EP512GU810. I exhausted the default const psv page using fonts and symbols. With my current situations those cannot be...
View ArticleRepeating blocks of code? (JimDrew)
Is there a command that lets you generate 'x' number of iterations of the same lines of code? I have several cases where I want to unroll a block of code that is 8 lines long (200 times). It's a hassle...
View ArticleLarge code model (JanJansen)
Hi, i wanto set the large code model for the DSPICFJ128GP802 in XC16, as suggested in another topic.I looked in the XC16 manual, it says it exists a few times only i can not find how to set it. Can the...
View ArticleOptimizing with ASM (JanJansen)
What do you improve with ASM what the free compiler does not ? So i,m busy looking in program memory view, then i see some instructions.To isolate some code i first set some NOP instructions before...
View ArticleBOOTSWP on PIC24FJ1024 is accepted, but code run after is from same partition...
Hi folks, I'm stuck on this one. I'm using a PIC24FJ1024 in dual partition mode (with MPLAB3.61 and XC16 v1.31), and programming the inactive partition with new code from within the running code. I...
View ArticleSoft swap instruction "bootswp" (Sanguin)
Hello, I'm trying to use the "bootswp" instruction to soft swap from the active to the inactive partition on a dsPIC33EP64GS504 in dual partition mode. The application in my inactive partiton should be...
View Article