今天用PICkit3为18F4620烧录程序时总是报错,报错信息如下:
软件环境是:MPLABX+XC8
编程器没问题,线路也没问题,配置位如下:
#include <htc.h>
#define uchar unsigned char
#define uint unsigned int
#pragma config CONFIG1H = 0x02;
#pragma config CONFIG2L = 0x1f;
#pragma config CONFIG2H = 0x1f;
#pragma config CONFIG3H = 0x81;
#pragma config CONFIG4L = 0x85;
#pragma config CONFIG5L = 0x0f;
#pragma config CONFIG5H = 0x00;
#pragma config CONFIG6L = 0x0f;
#pragma config CONFIG6H = 0xe0;
#pragma config CONFIG7L = 0x0f;
#pragma config CONFIG7H = 0x40; //设置配置字
请各位大仙指正!
|