Thanks guys.
I don't see it. I checked the wiring and removed the LED I had connected and the result is the same. To add more information, below is the output after I connect the USB and MPLAB-X detects and powers the kit.
When I first connect the kit and the output is finished I get LED light up as in picture, Power=Green-Active=Blue-Status=Green. If I click on the "Refresh Debug Tool Status" I get the same result, everything looking good; no flashing red.
Then I click on "Make and Program Device Main Project" and at the bottom of the output window I get Programming/Verify complete, and that's when the LED starts flashing.
I will post a link to a youtube video to show the difference between the status LED being red when programming the chip vs after. The flash after seems to be smaller and to the side of the Status LED.
Here's the
link to the video.
Thanks
Code:
// CONFIG
#pragma config FOSC = HS // Oscillator Selection bits (HS oscillator)
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled)
#pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled)
#pragma config BOREN = OFF // Brown-out Reset Enable bit (BOR disabled)
#pragma config LVP = OFF // Low-Voltage (Single-Supply) In-Circuit Serial Programming Enable bit (RB3 is digital I/O, HV on MCLR must be used for programming)
#pragma config CPD = OFF // Data EEPROM Memory Code Protection bit (Data EEPROM code protection off)
#pragma config WRT = OFF // Flash Program Memory Write Enable bits (Write protection off; all program memory may be written to by EECON control)
#pragma config CP = OFF // Flash Program Memory Code Protection bit (Code protection off)
// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.
#include <xc.h>
//#define _XTAL_FREQ 20000000 //Specify the XTAL crystal FREQ
void main() //The main function
{
TRISB=0X00; //Instruct the MCU that the PORTB pins are used as Output.
PORTB=0X00; //Make all output of RB LOW
while (1){
PORTB=0b01111100;
;
}
PICkit 3 connected
*****************************************************
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.07
Firmware type..............Midrange
Programmer to target power is enabled - VDD = 4.875000 volts.
Target device PIC16F876A found.
Device Revision ID = 8
*****************************************************
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.07
Firmware type..............Midrange
Programmer to target power is enabled - VDD = 4.875000 volts.
Target device PIC16F876A found.
Device Revision ID = 8