config_set.h
来自「一个电表的程序」· C头文件 代码 · 共 29 行
H
29 行
//******************************************************************************
// *
// Filename: PortSFRDef.h 搬运设备方向控制系统 *
// Date: 2006-07-03 *
// File Version: Ver1.0 *
// 配置寄存器定义 *
// Author: LuoDongSheng *
// Company: NingBolida *
// *
//******************************************************************************
#ifndef __config_set_h
#define __config_set_h
//******************************************************************************
//#pragma config WDT=ON
#pragma config WDT=ON,WDTPS=128 // 看门狗使能,时间最长
#pragma config OSC=HS //PLL // 外部晶振
#pragma config IESO=OFF // 主时钟开关不使能
#pragma config BORV=1 // 调电电压设置为4.2V
#pragma config FCMEN=ON // 时钟故障监测使能
#pragma config PWRT=ON //上电起振延时使能
#pragma config MCLRE=ON // 复位引脚使能,MCLR pin enabled
#pragma config STVREN=ON // 堆栈溢出复位
#pragma config LVP = OFF
//------------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?