(dsPIC) software driver for double UARTs (reference.design)
hello i am trying to design a generic software driver for multiple UARTs (x2 in case of the p33FJ64MC802 which i am currently using in the microstick) i see from the p33FJ64MC802.h source code that...
View ArticleFunction in different program memory section (felix007)
HiI'm using a custom USB bootloader on a PIC24FJ256GB108, and there is a flag in the PROG memory at location 0x0000F000, so I can boot in bootloader or in user application. It is working fine since a...
View Articleproblem while using 32 bit counter (eAgle_)
Hi all,I was trying to confg timer 2 and timer 3 as 32 bit counter in order to count pulse given to T2CK pin of dsPIC30F4011.I got output approx equal to the given freq up to 65 Khz. First pic shows...
View ArticleHow to modify AIVT on the PIC24FJ64GA002? (nightcat)
I need to set the vectors in the AIVT to different locations than the IVT. I cannot figure out how to do it. I tried putting the new addresses in the AIVT section of the .GLD file, but the linker...
View ArticleReaching flash memory by pointer > addr 0x8000 (Daan Schilder)
Hi, I've made a bootloader for the pic24fjda210, works great, except for one thing: i'd like to check if the applciation is present by adding a magic number in the application. this magic number will...
View ArticleFill unused flash with a value possible ? (Neiwiertz)
Hello I readed about the FILL command for C30 Linker Script and give this one a try for the program section but still "no luck" I wonder if this through the Linker Script can be done ? .text : {...
View ArticleASM30 for PIC24 source file? (leo.leo)
Hi all, It's a long time I'm trying to compile a very simple ASM30 source, but seems I can't.After dowloaded, and installed XC16 compiler and pointed the IDE to its ASM30 executable bin, the IDE still...
View ArticleAccess data RAM, and .align directive?? (leo.leo)
Hi all,I need another help, please.It's a little time, I'm trying to use the PIC24 family, but I still have some problems.The first of all should be very tricky, but I can't resolve: if I declare a...
View ArticleReading mains 60Hz to sicronismo (Rodrigo Nogy)
Hello. I would like your help regarding a logic for synchronizing the supply voltage with the voltage of an inverter. What would be the best method for the A / D readings? Set the time of sampling...
View ArticleMPLAB C for dsPIC (ASabir)
Dear All, I have the full version of the compiler MPLAB C for dsPIC DSCs v. 3.10b, purchased a while back. I intend to use in on MCLV-2 Development Board with dsPIC33EP256MC506. The compiler's...
View ArticleSPI Interrupt Flag not Seting up on Writting to SPI1BUF for dsPIC30F3011...
I have this strange problem. I am writing code for dsPIC30F3011 to generate sine-wave with DACTLC5620. As this is one way communication, dsPIC is programmed in master mode. Code is small and it writes...
View ArticleError: A heap is required, but has not been specified (Varma)
hii I am using MPLAB IDE 8.90..when i am using printf function then it is showing Error: A heap is required, but has not been specified,i attached Error warning below..if i am not using printf function...
View ArticleDSPIC33FJ32GP202 pwm output mux peripheral mapping (Long Post Please Forgive...
Dear dspic experts I am used to using 18FPARTS and wanted to try DSPICS to improve a brushed dc motor servo drive I designed at work. Had great success with the DSPIC30F4011 made it do closed loop PID...
View ArticleRTCC with PIC24F Peripheral Library (Lame_Blacksmith)
Greetings everyone! Great compiler, with some issues though. I've been looking for two days now, how to make the RTCC work. I'm using MPLAB X, last C compiler (to the date of this post) V3.31. I'm...
View Articlemissing header file (tomb)
Hi,I am using MPLab, v8.91, with the latest C30 compiler. And my device is PIC24FJ128GA202. When I compile I get this message:pic30-coff-cc1.exe: error: Invalid -mcpu option. CPU 24FJ128GA202 not...
View ArticleDC Servo Positioner using 33FJ32GP202 (Tronics)
DEAR DSPIC USERS. I have finally got my act together and finished a DC servo controller as promised with code n schematic n pictures shown below The aim was to see that we could make a digital dc servo...
View Articledspic33f and MPLABC30 const flash memory problem (thieulam)
Hello!I need to define in my C source code a flash area in determined address, with 24 bit const data .I have not problem with 16 bit data :const short __attribute__((space(prog),address(0x10000)))...
View Articlec30 - USE ERRATA-LIB Directory (Follemao)
Hi,in a project I'm realizing I must to use libraries in the folder errata-lib instead of standard ones. I quote under the advice of Microchip:This release provides work-around support for a new errata...
View ArticleIncorrect complex FFT output of real signal (karanbanthia)
Hi all, I am trying to calculate 2N point FFT of 2N-point real input signal from N-point complex FFT. The first step is forming a complex input signal to the FFT where the real part are the even input...
View Articlewriting on IVT or AIVT by user program (eAgle_)
Hi everyone,Is it possible to write on IVT or AIVT by user program? If yes, how? I want to write the address of ISR here. I'm using MCU dsPIC30F4011 and compiler C30, MP LAB X IDE.Thanks..
View Article