MPLABX/PICkit3 erasing EEPROM (Giacomo)
In my project with a PIC 18F26K22 I need to store some parameters in EEPROM.Everything works fine until I reprogram the CPU; after I program a new code, the EEPROM gets erased. In the Project...
View Articlederavative program doesnt take -ve values of sine wave in pic18 (teja)
hi guys...i m implementing PID for generating PWM...my program of derivative doesnt take -ve values...what should i do.....
View ArticleI use C but I don't know C (multi files program) (Giacomo)
I started last year to program in C (XC8), from my previous tools (mainly Assembler) with different IDEs.Right now, I realized few working programs, and this is good, but I do not know how they work,...
View ArticleLinker error after changing controller type - need help! (Photon44)
Hello everybody, I'm working on a machine which uses a DC motor with quad encoder to move something. The controller is a PIC 18f45k22. I wanted to start with the source code from an696 but know I...
View ArticleCONFIG1H default value definition for PIC18f8722 (Ananda)
Hi all, I am using c 18 (3.47)compiler. Can you please let know where CONFIG1H variable declared for PIC18F8722 controller. I checked in p18f8722.h file, I did not find. Regards,Anand..
View Articlefree latest compiler for PIC18F controller (Ananda)
Hi all,Please can anybody let me know which is the free compiler I can use for my PIC18F(8 bit micro controller) for my operation.Currently I am using C18 compiler (V3.47). Its very old as I came to...
View ArticleCan not upgrade C18 from ver 3.00 (m7731)
I need to install MPLAB IDE and C18 on a new PC. Win 10 PRO 64 bit.No problem installing IDE 8.92 I have the original CD with C18 v3.00. This installs without problem and the installation log says it...
View ArticleMCC18 upgrade page, where it went? (Omar7amdi)
Hi All,I kept my version upgrade to MPLAB-C18-Upgrade-v3_35.exe. That was working for me for so many years. Now, I bought PIC-WEB; it requires MPLAB-C18-Upgrade-v3_47.exe. I found the upgraded versions...
View Articlearithmetic right shift (krghou)
I tried right shifting an int today and found the sign bit wasn't extended. I was quite surprised, and finally found a note to this effect in the manual. Searching the forums and google didn't produce...
View ArticleROM Pointer Address Issue PIC18F27J13 (jkeeeng)
Hi, I am having issue with pointing to the ROM address. I am using TCP/IP Stack with PIC18F27J13 and my code is quite long. When I am trying to use the following function it sending wrong 4bytes...
View ArticleDevice not specified (cuetek)
My clients switched processors on me, so I had to switch compilers from HT-C to C18 and did all the usual schtick (setting directories etc) but came up with this linker error. I've selected the right...
View ArticleLocate C18 function programs in specific ROM locations (muhzd)
Hi guys, I wanted some data to be located at a specific ROM location. Renewing this data will require an erase first and but by larger blocks. I'm also using c18 function libraries and found that some...
View ArticleWhat's the command line for building a library file in mcc18 (Omar7amdi)
Hi,I'd like to combine two c files to a library file as well as another two asm files into another library file.I want to create two library files. I couldn't find it in the manual, the command...
View ArticleLibrary functions for using USB in PIC18F4550 (BlackOps)
I am now looking through the peripheral documentation found in my doc folder of MPLAB C18 compiler... and it says nothing about USB! so, does that mean i have to write my own functions needed to send...
View ArticlePIC184520 USART Lab - Virtual Terminal (leodavinci1990)
Hi, I am using the PIC18F4520 on Proteus 8. I want to use the USART to display the 'U' character all the time on the virtual terminal. The baud rate is 19200 and I changed it on the virtual terminal as...
View ArticleHow to protect own source code when working with external partner? (mJan)
Hi, I create my own c-files (source code), which I sent to an external partner. MPLAB C18 is used. The external partner will create (build) a binary based on my source code and their open source code....
View ArticleC18 PIC18F26K20 Compiler problem (buddacedcc)
Hi,I install C18 v3.47 and MPLAb8.92 in my new PC with win 7.Same project compile without problem in old Machine with win xp and same C18 and MPLAB but in New PC don't compile and return this...
View ArticleHow to calculate the debounce time for switch (al_noor)
Hello All,I am using PIC18f4620 uC and it is running with a clock of 16MHz. In this I am planning to implement debounce period for switch. I have gone through some of the sites and everywhere they are...
View ArticleADC is not working with unified hex file (Main application and AN1388...
Hello All,I am facing strange behavior while using application along with the boot loader. Below are the details. I am working on the PIC32 firmware upgrade using AN1388 boot loader and PC application....
View ArticleUsing a byte or a bit as a flag variable. Which is more efficient? (AndersG)
Assuming 18F2520 b is a byte flgs.flagbit is a bit in a byte. Assuming this code:if(b){i=0;}if(flgs.flagbit){i=0;}When compiled it becomes:88: if(b) 1B46 0E04 MOVLW 0x4..
View Article