本帖最后由 斗笠渔翁2 于 2014-1-18 16:13 编辑
配置的C代码
#define __CONFIG1L_VAL 0x11
#define __CONFIG1H_VAL 0x13
#define __CONFIG2L_VAL 0x00
#define __CONFIG2H_VAL 0x22
#define __CONFIG3H_VAL 0x00
#define __CONFIG4L_VAL 0x81
#define __CONFIG5L_VAL 0x00
#define __CONFIG5H_VAL 0x00
#define __CONFIG6L_VAL 0x00
#define __CONFIG6H_VAL 0x00
#define __CONFIG7L_VAL 0x0F
#define __CONFIG7H_VAL 0x40
#pragma config CONFIG1L = __CONFIG1L_VAL
#pragma config CONFIG1H = __CONFIG1H_VAL
#pragma config CONFIG2L = __CONFIG2L_VAL
#pragma config CONFIG2H = __CONFIG2H_VAL
#pragma config CONFIG3H = __CONFIG3H_VAL
#pragma config CONFIG4L = __CONFIG4L_VAL
#pragma config CONFIG5L = __CONFIG5L_VAL
#pragma config CONFIG5H = __CONFIG5H_VAL
#pragma config CONFIG6L = __CONFIG6L_VAL
#pragma config CONFIG6H = __CONFIG6H_VAL
#pragma config CONFIG7L = __CONFIG7L_VAL
#pragma config CONFIG7H = __CONFIG7H_VAL
运行表现是有配置进去的,为什么出现以下警告信息?如何配置位呢?
Warning [1311] ; . missing configuration setting for config word 0x200000, using default
Warning [1311] ; . missing configuration setting for config word 0x200001, using default
Warning [1311] ; . missing configuration setting for config word 0x200002, using default
Warning [1311] ; . missing configuration setting for config word 0x200003, using default
Warning [1311] ; . missing configuration setting for config word 0x200004, using default
Warning [1311] ; . missing configuration setting for config word 0x200005, using default
Warning [1311] ; . missing configuration setting for config word 0x200006, using default
Warning [1311] ; . missing configuration setting for config word 0x200007, using default
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>