提示如下:
*****************************************************
连接到MPLAB PICkit 3...
固件套件版本.....01.33.20
固件类型..............中档
目标发现
器件ID版本 = 2
以下存储器区域将被编程:
程序存储器: 起始地址 = 0x0, 结束地址 = 0x11f
配置存储器
编程中...
程序存储器
地址:0 期望数值:120a 收到数值:0
编程器件失败
PICKIT3+MPLABX IDE 2.2V版本。外部供电模式
配置位配置如下:
#pragma config FOSC = INTRC_NOCLKOUT// Oscillator Selection bits (INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN)
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled and can be enabled by SWDTEN bit of the WDTCON register)
#pragma config PWRTE = ON // Power-up Timer Enable bit (PWRT enabled)
#pragma config MCLRE = OFF // RE3/MCLR pin function select bit (RE3/MCLR pin function is digital input, MCLR internally tied to VDD)
#pragma config CP = OFF // Code Protection bit (Program memory code protection is enabled)
#pragma config CPD = OFF // Data Code Protection bit (Data memory code protection is enabled)
#pragma config BOREN = OFF // Brown Out Reset Selection bits (BOR enabled)
#pragma config IESO = OFF // Internal External Switchover bit (Internal/External Switchover mode is enabled)
#pragma config FCMEN = OFF // Fail-Safe Clock Monitor Enabled bit (Fail-Safe Clock Monitor is enabled)
#pragma config LVP = OFF // Low Voltage Programming Enable bit (RB3 pin has digital I/O, HV on MCLR must be used for programming)
// CONFIG2
#pragma config BOR4V = BOR40V // Brown-out Reset Selection bit (Brown-out Reset set to 4.0V)
#pragma config WRT = OFF // Flash Program Memory Self Write Enable bits (Write protection off)
求高手解答,是不是芯片坏了啊,。已经三块板这个样子了 |