Bootloader issues with C18 - 3.4.7 (docmur)
Hey Everyone So I'm trying to get a bootloader working with my device a pic18f2510. I have the bootloader programmed on the device but when I try to add my own hex file through the AN1310 program, I...
View ArticleRegarding AN964 application inverted pendulam (Hiren Jethava)
I am working on inverted pendulum using PIC18F micro controller...all is going gud but i have one problem that there is no mention the RPM about motor ,... The motor used in this system that meets this...
View Article[SOLVED] File lkr DATABANK modification and optimization issue ? (zodd)
Hello, I had to modify the 18f97j60_g.lkr to "fit the section" like this :DATABANK NAME=gpr0 START=0x60 END=0xFF DATABANK NAME=gpr1 START=0x100 END=0x3EF DATABANK NAME=gpr2 START=0x3F0 END=0x3FF...
View ArticleHow to fit a section (zodd)
Hello, I'm trying to compile my project without modify my lkr file. I don't have any object larger than 256 Bytes. But I have a lot of global variables in my main and a lot of static variables in some...
View Article16F877 problem with PORTB used as output (andrea ciuffoli)
I am using a 16F877 PIC and for this application I need to use PORTB to connect the LCD. This is the first time I use PORTB as output. Using the normal configuration bit the LVP_OFF flag used in many...
View ArticleDELAYTCY calculation issue (Gharbi Makhlouf)
I want to set a delay of 1s, I set internal oscillator with 4MZ, so TCY = 4/4MHZ = 1usso one second = 1us * 1000 000 so Delay10KTCYx(100); //delay one secnde 10kilo * TCY(4/4 = 1us)*100 = 10000*1*100 =...
View Articleeach time i declare local variable within function I got error systax (Gharbi...
im using c18 compiler with mplabx.each time i declare local variable within a function after any instrucion, I got Error: syntax error in the line where the variable declared when I declare variables...
View ArticleAnyway to get the older C18 compiler versions? (GarEngLLC)
I picked up an Olimex development board and was trying to build its example with the current tools and it seems to have issues with the current C18 compiler. I went looking for the older version (v3.40...
View ArticleMPLAB C18 cant shift right (>>) (Gharbi Makhlouf)
im using c18 compiler with mplabx and pic18f4620when I debug I cant shift right the variable decalage (where i putted stars in code), the variable always still the same?? void readDHT(void) {char i;...
View Articlesyntax of FOR statement (COSMO LITTLE)
Could someone please confirm that the first left bracket and first statement of a FOR loop must be on the same line as the FOR statement? The following compiles without error, however the first...
View ArticleArithmetic calculation problem with long C variables (COSMO LITTLE)
I need to calculate the following: 2^24 ( x modulus y )/y the ranges of the numbers are: 1500,000,000 < x< 3000,000,000 and 50,000,000
View ArticleSOMEBODY PLEASE HELP ME!!!!! (marco.toscano)
I'm trying to correct this code, but there is a impossible error to discover with stdio.h. HELP ME!!!!..
View ArticleAN1310 PIC18F 24k20/26k20 bootloader + Firmware question (docmur)
Hello I have a new product which utilizes the PIC18F26k20 and PIC18F24k20 processors, we're flexible on which ones we use. I have the AN1310 bootloader compiled and running on the micro-controllers and...
View ArticlePow(10,x) causes Software Stack overflow on 18F6628 (Wieschebrock)
Hi I have a stack problem: I have 256 Bytes of Stack (0xE00 to 0xEFF)- Filling all with 0xFF and starting the program-- Breakpoint at foo3: File registers 0xE00 to 0xE60 is <> FF => Max 0x60...
View Articlehow to do printf with unsigned short long data type? (jack19)
I am trying the following code. C18 compiler, PIC18F. I cannot get it printed correctly. Can someone take a look? Thanks. void main() { unsigned char sec,min,hour;unsigned short long...
View ArticleType conversion issue? (waaslandwolf)
Gents, I have a small question regarding coding in Microchip C18. I seem to be struggling with a type conversion issue. In my code I have the following macros:#define EEPROM_ZONE 80 //=0x50#define...
View ArticleDelay using Timer (Nadasha)
Dear all, I am using PIC18f97j60 and C18 compiler.. I need to generate a delay of 5 seconds using timer. I am new to PIC ... Can some one help me. Requirement: need to check 8 different pins of pic. if...
View ArticleGet Program Code Size and Get Free Program Memory Size (john lunt)
I have an application in which I simply do not know how much ROM is going to be used for non volatile storage until runtime so I need to know where program ends in order to know how much storage is...
View Articleerror can not find symbol def FPFLAGS in file './c018i.o' (razmicgee)
I'm using MPLAB IDE 8.92 with v3.47 of the C18 compiler. Processor is PIC18F6622.The code is a previously compiled and used code. I have only updated the compiler version. Running under windows XP....
View Articlecap1106 capacitive touch (razmicgee)
Anyone written some I2C code for the cap1106 capacitive touch device?Please share. Thanks..
View Article