根据Mplab Ide help中的 PIC18ConfigSet 写配置位
#include<pic18f46k20.h>
// Config Register: CONFIG1H
#pragma config FOSC = HSPLL //HS oscillator, PLL enabled (Clock Frequency = 4 x FOSC1)
#pragma config FCMEN = OFF // Fail-Safe Clock Monitor disabled
#pragma config IESO = OFF //Oscillator Switchover mode disabled
// Config Register: CONFIG2L
#pragma config PWRT = OFF //PWRT disabled 上电延时禁止
#pragma config BOREN = OFF // Brown-out Reset disabled in hardware and software
。。。。。。。。。
有很多Warning [335] E:my_pic18f\\main.c; 5.1 unknown pragma "config" 类似警告,求好心人帮忙。求助:PIC18fxx 配置位警告问题 |