how to display IP and MAC address of PIC (Nadasha)
Hi,Please help me to write a code to display mac address of PIC when a Ethernet command "MAC" is given by the user to PIC through TTL lines. Also to display IP address when "IP" command is given by the...
View ArticleError "can not fit the section" but it should fit! (lelsteph)
Hello I do not understand why i am getting error:Error - section 'SavedConfigurationBuffer' can not fit the section. Section 'SavedConfigurationBuffer' length=0x00000102 Whereas it should be 100. See...
View ArticleHELP me blinking an LED without delay (Victor Bordoloi)
in arduino there is a trick .. you can count millis().. then set currentmillis = millis() and then previousmillis - currentmillis. In this way you can keep the track of time.. here is the link. What...
View Articledebugger breaking in startup (tlowry)
Howdy, I am having trouble with the debugger (RealIce or ICD3) breaking in the start up code. I am pulling in c018i.o with the linker and what we are seeing is it will stop in the startup or memset...
View ArticleUSB CDC corrupted when using the Flash function (lelsteph)
Hello I am not sure if I am in the correct section, I am guessing I am mis-using the C18 compiler to get to this state,I have an application based on a PIC18F47J53. I have USB. Everything is working...
View ArticleHow do I add object files to my linker script? (JC Lee)
I want to avoid compiling a couple source code files every time I build. Compiler is C18.For example I have C files: 1.c 2.c and 3.c along with all.hI change 1.c and 2.c all the time, however, I don't...
View Article"mcc18-extended.exe has stopped working" pop-up error window (JamesN)
I'm posting this hopefully to save you time if you encounter the same thing.MPLAB IDE v8.86 was compiling my code w/o error today, and suddenly I got "mcc18-extended.exe has stopped working" pop-up...
View Articleerror "cannot fit section..." (dvarrel)
Hi,i have got a project with mplabx and tcp/ip, so i compile it with c18 - with linux mplabx and c18 v3,40 compile is ok- with Windows 7, mplabx and c18 v3,47, i have got the message "cannot fit...
View ArticleProblem in lcd 16*2 display with pic18f452 (Anand Singh)
I am trying with an simple example of lcd display with mplab and proteus. The program is compile successfully but no display .I am attaching c program with snap shot of proteus image..Please help me to...
View ArticlePIC18F4550 & idata udata (nahua)
Hello, Im having troubles with data banks with the 18F4550. I have to store 2 256bytes arrays. I have been able to store one by using the #pragma idata data1 ie: #pragma idata data1 unsigned char data...
View ArticleArray of structs (JackD)
I'm using MPLAB X v2.00, C18 v3.45 and a PIC18F97J60. I'm having trouble viewing the values of the different members in a struct when the variable of this struct is an array, but when the variable is...
View Articlesection '.code_fxm3232.o' can not fit the section. Section (Sfiso112)
Hi,I am a beginner in microchip programming; I just downloaded BACNet-stack-0.8.2 from the internet using PIC18F6720. When I try to build it I’m getting this error.“MPLINK 4.35, LinkerCopyright (c)...
View ArticleUnipolar stepper motor control with CCP module (SwCharlie)
Good day With the PIC18F45K20 and C18 compiler, I am having issues setting up the CCP module as a PWM to pulse pin P1A and P1B (with the one pin high during the other one's low state). I read in the...
View ArticleCompiler / ICD3 issue (docmur)
Hey So I'm developing code for a board that coverts UART input to an RF output. This morning my code was working fine and I was able to debug it and all was good. Randomly a couple of hours later I now...
View ArticleMPLAB X ide v2.15 (manjulagraphic)
MPLAB XC8: http://www.microchip.com/forums/fb.ashx?m=827580..
View ArticleHEX file format (zodd)
Hello, I would like to have a better understanding of hex files. For example, on a PIC18f97J60, what is stored at the end of the file (generated when compiling with C18 V3.37)...
View Articleunderstand statement in stdio.h file (rocket42)
hello everyone!I read sdtio.h file and can't understand the following statements' mean:typedef unsigned char FILE; #define _H_USER ((FILE*)((int)-1))i can't know what is ((int)-1)?and after the two...
View ArticleGet Program Code Size and Get Free Program Memory Size (alexvx)
Hello guys,I am using a PIC 18f26k20 and I want to use the free FLASH program memory for nonvolatile data storage (EEPROM is too small). Is there a simple way in C18 to find the end address of the...
View ArticlePIC 12F683 High Current in Sleep Mode (elitel)
Hi,I am using PIC 12F683 in an infrared remote control project.The battery is CR2032. It consumes 40 uA in Sleep mode. This is too much. In its datasheet it seems 1uA at 4 MhZ in Sleep mode.I tried...
View ArticleInvalid reset vector AN1310 - C18 3.4.7 (docmur)
Hey I'm trying to test out the AN1310 bootloader for PIC18, I have the bootloader programmed to the board and it's being detected in the AN1310 software, my issue is, is that when I added I go to add...
View Article