CRC Checksum for program integrity (andyrichmond)
Hi All, I have seen from past posts various people using checksuming techniques in order to verify the integrity of program code at, say, power up. There have been various suggestions and references to...
View ArticleDS18B20 reading problem with PIC18F4550 XC8 (jmxiqz)
Hello, I hope you can help me, I am trying to use the ds18b20 with the pic18f4550, I have been investigating a lot according to me my code should work but it does not work, according to me the problem...
View ArticleDS18B20 reading problem with PIC18F4550 XC8 (jmxiqz)
Hello, I hope you can help me, I am trying to use the ds18b20 with the pic18f4550, I have been investigating a lot according to me my code should work but it does not work, according to me the problem...
View ArticleAddress qualifiers not working in C 99 (davea)
I have tried everything must be something in the way there definedthey worked in C 90 just fine (options XC8 Require)switched to C 99 nothing but errors error: unknown type name 'bank1' unknown type...
View Article16x16 multiply (HarleyD)
I need to calculate a 16x16 bit result as fast as possible. If I use 32bit words, it takes 103 cycles and the code is simple. Using a 16x16 size, it takes 49 cycles, but then I have to get the upper 16...
View Articlememcmp: :Warning [2054] suspicious pointer conversion (buddacedcc)
Hi first time for me to use memcmp and memcpy in c18 (really after 10 years of c18 usage)Hi have this issue: "Warning suspicious pointer conversion" for line:...
View ArticleStrange result from unsigned long & unsigned long (Dag)
Hi All - Is there a bug in C18?I am running under the debugger on a PIC18 MCU the following code with the annotated results on the right unsigned long lMask, lSWstates; int i; i = 1; lSWstates =...
View ArticleC18 V3.40 required to download (gleis.k)
Hi guys, i need a install file for windows for the C18 V3.40.Where do I find it to download? It would be important to build essential PIC18 projects. Kind regardsKorbinian..
View ArticleMicrochip Makes Global Smart Meter Interoperability Easy With DLMS (carlos7890)
Hello: At the time, Microchip developed a DLMS Evaluation Library for 16-bit MCU, but I can't find it, does anyone know something about it? GreetingsCarlos..
View ArticleC18 code size before optimization (GreenDragonSA)
Hello All Got a bit of a interesting one. Our current code is big so we had to switch on the optimizer. How can I see how big the code was before being optimized? I tried switching off the optimizer...
View ArticleMicroChips version of millis(); (Cartman)
Hello. Im searching for Microchips C18s version of the Arduino function called millis(); Its a function that is called if you need the duration that the MCU was ON and it overflows at 50 days. It also...
View ArticleMultiple software UART: is it possible? (TheNet512)
Hi there! I've been using Hardware USART to communicate with an external device, but recently encountered the need to use multiple serial communication. I know that PIC 18f452 has 1 HW USART, and that...
View ArticleCCP2Mx = PORTC (Spottymaldoon)
I'm struggling through Dogan Ibrahim's book on SD card projects for PIC18. I'm stuck without a paddle at the point where he is writing to an SD card using a PIC 18F8722 and he is configuring the...
View ArticlePIC18F25K22 RESET PROBLEM (ARUN_AK)
my microcontroller was reset while reach input high. i am using pic18f25k22 for servo stablizer. i am using port RC0 and RC1 for triac motor forward and reverse. if input is high and rc0 or rc1 is high...
View ArticleReduce Code (hex) size in C18 (kooroshi60)
Hello guys. Does anybody know how to reduce HEX file size generated by C18? When I compile my code, the output HEX file is 19303 bytes; which is too big for my PIC18f2550 and in result, my USB...
View Articlehow to reduce the hex file (RushiJ)
i am created one hid device program in 2013 it is work well upto windows 10, but in windows11 it is not detected so i am going for firmware updation but i am compiling that code it is giving the error...
View Articlekey="extra-include-directories" (mxcba)
It is unclear to me what the property "extra-include-directories" does, in configurations.xml under “confs” -->“C18” (see image: extra-include-directories). I took my (primary) includes directory...
View Article