/*PROGRAM FOR LED_BLINKING*/
/**************************************************************/
#include<P18F452.h>
void delaym(void);
#pragma config OSC = HS /* Configure oscillator for High speed operation*/
#pragma config WDT = OFF /* Disabling watchdog timer */
#pragma config DEBUG = OFF /*OFF Starting background debug mode */
#pragma config STVR = OFF /* Starting background debug mode */
#pragma config LVP = OFF /* Disabling Low Voltage Programming */
#pragma config BOR = OFF /* Disabling Brown Out Reset */
void main()
{
PORTD = 0x00;
TRISD=0x00;
while(1)
{
PORTDbits.RD2=1;
PORTDbits.RD3=0;
delaym();
PORTDbits.RD2=0;
PORTDbits.RD3=1;
delaym();
}
}
void delaym()
{
int i,j;
for(i=0;i<=200;i++)
{
for(j=0;j<=200;j++)
{;}
}
}
Blink_led.rar_PIC LED_The Beginners_www.ghy.blinklab.
版权申诉
82 浏览量
2022-09-22
18:18:46
上传
评论
收藏 22KB RAR 举报
寒泊
- 粉丝: 75
- 资源: 1万+
最新资源
- Pytorch-pytorch深度学习教程之前馈神经网络.zip
- Pytorch-pytorch深度学习教程之线性回归.zip
- Pytorch-pytorch深度学习教程之基本操作.zip
- 基于QT的地图可视化桌面系统后台数据库为MySQL5.7源码.zip
- 基于simulink的PLL锁相环系统仿真【包括模型,文档,参考文献,操作步骤】
- 基于EM-GMM模型的目标跟踪和异常行为检测matlab仿真【包括程序,注释,参考文献,操作步骤,说明文档】
- 2109010044_胡晨燕_选课管理数据库设计与实现.prj
- 帕鲁介绍的PPT备份没什么好下的
- demo1-202405
- 两种方式修改Intel网卡MAC地址
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈