I have a project that was built in MPLAB 8 using the Hi Tech C compiler. When I load it into MPLAB 8 to program a device I get a checksum (I use Unprotected checksum), then when I load it into MPLA...
MPLAB X takes 50 seconds to build, and more than a minute to program the PIC for debug after having built immediately before. Also seems slow when debugging. Will a multiprocessor pc run this program
Chip-specific header files should not be explicitly included in HITECH-C, the documentation clearly states that. Instead, you include the compiler header, which will take care of including the chip-specific file for you: #include <htc.h> All you need for this to work is to configure correct chip in the project settings. The 16F877A.h file exists in the compiler directory, but including it ...
I am trying to write a timer interrupt for a pic16f887. I have checked on several websites and most of them recommend writing the interrupt subroutine as void interrupt Name (void) however my program
I am in MPLAB 3.65 in Windows 10 trying to load a program onto a Microchip PIC18F45K50. The program builds fine, but the following is the ICD 3 output when I try to load the code: Connecting to MPL...
I agree that this is the most appropriate solution, thanks for the comment! Then I'll continue using a 16Mhz external XTAL as a primary system clock and add 32kHz XTAL as a secondary system clock for sleep mode.
You don't need an extra library, but in xc8 the name of the function is __delay_ms(...) with two _. Please remember, these functions are actually in line macros and they have maximum delay values that depend on part type and clock frequency. To get longer delays using these macros put them in a for loop. I guess __delay_ms(5000) is a little bit to much.
I am trying to program pic16f73 microcontroller, but in configuration bit setting there are no options to select internal or external clock. Can any one help me to find the solution.
If you want to keep MCLR disconnected, consult PIC's datasheet to see how to configure this option in FUSE bits. Additionally, confirm settings for using the internal crystal also in datasheet (I think high speed (HS) option is only for external crystal). Proteus provides supply voltage to PIC implicitly.
I'm trying to generate a 10% duty cycle-1kHz PWM with a clock at 80Mhz (F_osc) using the inbuilt (Hardware) high speed PWM. According to the documentation, Base Period (number for the PTPER) is