Contents
Can you use xc8 with Hitech C for PIC18?
XC8 is highly compatible with HiTech C for PIC18 code, though you may need to define _LEGACY_HEADERS – see the release notes for details. if the include file name ends with .inc and the sourcecode doesn’t look like C, it probably in MPASM assembler. If the #include file name refers to a specific PIC e.g. p18f452.h, its probably C18 code.
Is the MPLAB X and xc8 IR decoder OK?
MPLAB X & XC8 builds and runs ok on the Simulator and through a PICkit3. MCU programs ok. Checked the IR codes are ok on an Oscilloscope. IRSENSOR LED flashes on data received but no switching ouput.
What is the CCS C code for xc8?
If the #include file name refers to a specific PIC e.g. p18f452.h, its probably C18 code. if you see a #fuses line its CCS C code – avoid at all costs.
Are there any code examples for xc8 microchip?
Also if there are any other suggestions on getting started with XC8, I would appreciate the input. Thanks.
How to implement an ISR using xc8 with PIC18?
My starting point for this was the example code for PIC18, but this uses the C18 compiler not the xc8 and it doesn’t compile. Can someone put an example of how to implement an isr using xc8, please? I’m trying to build a project for a PIC18F25k83 using xc8 v2.05 and I’m having a lot of trouble with interrupts.
Can a pic18f25k83 use xc8 v2.05?
I’m trying to build a project for a PIC18F25k83 using xc8 v2.05 and I’m having a lot of trouble with interrupts. I’ve left the interrupt configuration as default, I believe this means it doesn’t use the vector table and the interrupts should behave in the same was as a PIC16.
Is there a way to differentiate code examples for xc8?
From what I can tell on Microchip’s site, there is no way to tell whether the example code they have loaded up is Assembler or C, let alone C18 or XC8. Is there something I’m missing while combing through their code examples? Is there a way to differentiate their examples by what compiler they are written for?