PIC16F887配置字(C语言)
使用PICC编译器时,配置方法有两种:(详情可以看PICC编译器中的user manual)
本文引用地址:https://www.eepw.com.cn/article/201611/315986.htm
第一种是:(编译器MPLAB IDE,configuration bits set in code 不要勾选,若勾选,编译程序时,会忽略掉程序中的__CONFIG,导致__CONFIG无 效)
#include "htc.h"
__CONFIG(data1);//config1 2007h
__CONFIG(data2);//config2 2008h
第二种是: 使用编译器MPLAB IDE,勾选 configuration bits set in code,然后选择相应选项即可。
评论