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

dsPIC30F5015 UART pheripal stops working (MicroStef)

Hi CPU: dsPIC30F5015 MPLAB XXC16: v1.26ICD3 I have a system here consisting of two processors, A and C, which are communicating with each other via a half duplex RS485 line. Because of the half duplex...

View Article


What is the best way to temporarily disable ISR? (AZ1101)

My code is heavily based upon using ISRs; sometime to synchronize data changes between the main thread and the ISR, the ISR need to be disabled for some period of time. Typically I use the following...

View Article


Problem with High Speed PWM Module 33EP (dellectronics)

Hello all.I'm working with a dsPIC33EP512MC806 and its High Speed PWM module. I use the module to drive a mosfet H-Bridge in order to generate a multiple frequency and power signal to drive...

View Article

Placing constants in Code vs. Data space (GoEk)

Hi,fairly new to PIC24 & XC16 and I am experimenting with placing data constants in Code vs. Data space. I notice that the Program code size varies depending on where I place constants; less...

View Article

Increment Operator (++) Not working on global variable - PIC24F - XC16...

Hello, I haven't had time to investigated the problem myself (...yet..), but what I found that a global variable that I was incrementing wouldn't work when using the increment operator. So:volatile...

View Article


Problems with __delay_ms() (titan2020)

Hello, I'm trying to use the __delay_ms function included with XC16. My program sets an output pin, calls the delay, clears the pin, and calls the delay again. When I simulate this code, it seems to...

View Article

Optimization of a supplied library (LeeZimme)

The Microchip MiWi Mesh is being supplied as a library. When I compile the code and change optimization it doesn't really change the code size. I don't think I see any changes in the *.map file...

View Article

Installing new compiler and installing part support (Gerald1)

Hi all,why i cannot installing the part support over the new installed compiler?Once it does work (the version 1.26 worked installing both), once does not...Gerald..

View Article


Not able to write in register bit : RPOR6bits.RP44R = 1 - dsPIC33EP64GS502...

Hello All,I am implementing UART for my DIgital Power Starting kit ( using dsPIC33EP64GS502). I am new to microchip and problem is: Even register is unlocked but values are not updating to that. Please...

View Article


PIC24F Peripheral Library not supported on XC16 v1.26 and later (craigjbradley)

I am porting an old PIC24FJ256GA110 program to the new PIC24FJ1024GA610 chip as I am running out of program memory (the program is large). Unfortunately the PIC24F peripheral library is no longer...

View Article

How to do byte addressing of SFRs on PIC24FJ1024GA610 (Lewisw)

HiI am working on PIC24FJ1024GA610 using XC16. For efficiency I need to write to the lower byte of port LATD. Currently I seem to need to do a read/modify/write of 16 bits. There seems to be no byte...

View Article

Options have been disabled due to restricted license (JPittenger)

Whenever I try to build my project, I get the message, “Options have been disabled due to restricted licenseVisit http://www.microchip.com/ to purchase a new key.” I have gone through the activation...

View Article

dsPIC33E : Timer/Oscillator issue - shows incorrect data transmitted time...

I am using dsPIC33EP64GS502 (digital starter kit). Currently configuring UART and dugging for transmitted data. I observed on CRO that time between two transmitted data is 200 ms while actual it is 100...

View Article


Intentionally overlapping variables/sections : is it possible? (alex.davies)

Hi, I have multiple devices sharing a common hex/map file. Variables are read according to the map file for debugging, and all has been great. They all function as one larger device, so it's very...

View Article

Having trouble finding the right GRC (graphics resource converter) (ksMTI)

I am trying to add an image to a an existing project using the PIC24EP512GP806 processor. The closest fit that i can find is at C:\Microchip Solutions v2010-10-19\Microchip\Graphics\Utilities\Graphics...

View Article


XC16(v1.30) linker script CRT_STARTMODE warning (DaveNH)

My program builds and links OK with XC16(v1.25) but I get the following using v1.30: c:\program files (x86)\microchip\xc16\v1.30\bin\bin\..\bin/elf-ld.exe: Warning: linker script did not specify...

View Article

Unable to do macro value range check (manish.kumar)

I have defined the below macro : #define SPI_SEC_SCALE(BAUD) ((uint16)(SYS_CLK_HZ/64)/(BAUD)) Range of "SPI_SEC_SCALE(BAUD)" should be between '1 and 8'. I mean (1<= SPI_SEC_SCALE(BAUD) <=8 ), if...

View Article


constatnts at specific section (FerrariLuigi)

Dear allI'm developing a program containing some constants const int foo[] = { 0,1,2 ... };const int luigi[] = { 10,20, ... }; I want to allocate all constants of my program at memory address. Reading...

View Article

Compile issues (LeeZimme)

I have a large bit of code on the PIC24FJ256GB108. I have USB host, Ethernet, and MiWi. Sometime a compiler version of the xc16 will not work but others will, then I change my code the the opposite was...

View Article

Link Error: Could not allocate section (Wieschebrock)

"Suddenly" I got this message in my PIC 24 project. Without significant changes. heap: Link Error: Could not allocate section .heap, size = 5000 bytes, attributes = heap keep Link Error: Could not...

View Article
Browsing all 1508 articles
Browse latest View live


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