Quantcast
Channel: MPLAB C30 Compiler, ASM30, Link30 forum
Viewing all 304 articles
Browse latest View live

PWM Timer count confusion! (Abdul_Wahid)

$
0
0
Hope every one will be fine.I am confused while generating PWM.I am using MPLABX V3.65, XC compiler v1.31, simulator and dsPIC30F2010center aligned mode. I expect thatPORTE should change its state and when PDC2 value is matched with PTMR.butPORTE changes ..

Is there a way to force C30 generate a Jump Table for a simple switch() statement? (DarioG)

$
0
0
[some sunday question, again I have a simple switch() with some 8 cases, based upon an enum hence all consecutive: but the compiler still generates a bunch of Comparisons/Branch... no matter what optimization in use. I am (for a change!) pushing the limit..

Getting the most out of our 24bit Code space (Riche)

$
0
0
My code is using quite a lot of multiple lookup constant tables for its graphical interface. Since we are only using 2/3 of every 24bit code space for data, I would have thought that the compile would have anticipated someone getting a bit fancy with its..

Confused about size of data types INT and UINT for PIC24... (BobAGI)

$
0
0
I am revisiting the issue of data sizes, specifically int and unsigned int.We are using GenericTypeDefs.h to get around the uncertainty of variable sizes and now I have come across a piece of PIC24 code where it does matter.In this case the coder has used..

divide support of dsPIC30F (Abdul_Wahid)

$
0
0
Hello every body.I am using MPLABX 3.55, dsPIC30F2010 and compiler xc16.I am facing a problem which may be a very simple but it is very big for me.want to remove some right most digits from a long no.for example 23382983I want to remove right most 4 digit..

How to set up Linker etc. for Protected Bootloader Section, Godeguard (fkaiser)

$
0
0
Hello Everybody! since a long time, i am trying to make my "unbreakable" Bootloader for dsPIC33F and PIC24H devices. "unbreakable", because i want to use GodeGuard and the Boot Segment Function to make my Bootloader Code secured! First of al, i programmed..

Whys is this not causing an error in the compiler? (BobAGI)

$
0
0
When working on some bit-bang i2c code for a PIC24FJ256GB206 I accidentally introduced a bug when changing a delay call from my own (working via timers) to the compiler built in. This is what I ended up with during the copy-paste:__delay_us(1)(100); ..

PIC24 - C30 endian revisited again... (BobAGI)

$
0
0
In my previous thread about the PIC24 endian-ness the conclusion was that PIC24 is using the same endian as a PC with Intel CPU.Now I am facing a problem since it seems like this does not really always apply...I have a struct that contains two UINT32 and ..

Jump to an absolute address (mcpro)

$
0
0
I need to jump from C to an absolute address locate at a fixed point in program memory but I cannot find the right way: 1) I tried to use the goto statement of the C but I don't know how to declare a label with a fixed point in p.m. 2) I try to defi..

Is it possible to relocate the interrupt vector table? (niwnfyc)

$
0
0
I'm using the dsPIC33FJ256GP710 with the C30 compiler. Is it possible to move the IVT to a different memory address? What I would like to do is setup a bootloader that uses memory locations 0x00000 to 0x04FFF, and then the main program uses ONLY addr..

Question on Declaring Unions and Structures of Bit Fields and Debugging in IDE v8.86 (Fred E)

$
0
0
I have a fairly large project which is using MPLab IDE 8.86 and the dsPIC 6014A using the C30 compiler. I have declared a union containing bit-lengthed fields so that I can refer to boolean bits with named fields. My union is declared similar to the PORTx..

How to remove the licence warning (PicFan41)

$
0
0
When I build for each file of my project I have this warning : Microchip MPLAB C30 License Manager Version v3_02 (Build Date Nov 9 2007). Copyright (c) 2005 Microchip Technology Inc. All rights reserved. The MPLAB C30 license is invalid. pic30-coff-..

Can I put _LATC14=_RB14; acceptably? (Spottymaldoon)

$
0
0
Is the use of "_LATC14=_RB14;//repeating CS" in the following snippet OK? while(1)
{
if(_RB10)//Enable from 32MX
{
_LATB11=1;B1;//send "ready" to 32MX LED on
_LATC14=_RB14;//repeating CS
}
else {_LATB11=0;B1OFF;}/..

DSPIC30F2010 (HARI 123)

$
0
0
PLEASE ANYONE HELP ME FOR THE PROGRAM FOR LCD IN 4BIT MODE INTERFACING WITH DSPIC30F2010.AM USING C30 COMPILER AND MPLAB IDE.I WROTE PROGRAM SUCCESSFULLY BUT I CAN'T GET OUTPUT IN BREADBOARD.HERE IS MY CODE#include "p30f2010.h" #include "libpic30.h" #in..

placing object files at specific address (rinke)

$
0
0
Hello community, firstly what i am using: dsPIC33EP512MU810 MPLAB 8.92 MPLABC30, V3.30 The problem: i want to place two object files at the adress 0x0800, then have a gap until 0x1000 an place all the other code from there. the original linker script..

Placing library file at specific address (aodhanc)

$
0
0
My setup:PIC24FJ10246A10MPLABX v4.01XC16 v1.33 The problem:I am trying to place a library (ezbl_lib.a) at a specific location in flash 0x100. I want to do this so that the library resides in low memory. Using the default linker file "p24FJ1024GA610.gld", ..

Error: processor ID not specified in generic header file (karan123)

$
0
0
Hello, How I sort out following Errors?in MPLAB C30 In file included from PSV.c:2: C:/Program Files/Microchip/MPLAB C30/support/PIC24H/h/p24Hxxxx.h:170:2: error: #error -- processor ID not specified in generic header file PSV.c:6: error: syntax er..

Creating Read/Write Parameters for UART (neunited)

$
0
0
Hello there, I wish to read and write parameters using UART for my dsPIC30F3010 to obtain values of particular ints, floats which were declared in my program. I am beginner level and I wanted to understand whether I need to programmatically assign these v..

DALI timing failure DALI Stack for PIC16F788 (nopodige)

$
0
0
Hi all, We have ported the DALI stack code to PIC16F1788. We are currently facing the below issue. We would like to tweek the DALI stack and correct the DALI timings. Please guide us. Issues are : 1) Stop: Condition: Stop Condition after First Half Bit: 2..

Half Duplex software UART(bit banging) using single gpio pin? (Vikranth)

$
0
0
I am using Curiosity microchip development board with PIC16F18326 MCU, I am trying to write software bit-banging half-duplex using single GPIO pin, using single gpio pin I need to Tx and Rx. Please help me to this. Before that, I tried software bit-bangin..
Viewing all 304 articles
Browse latest View live


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