当前位置:网站首页>CY7C68013A之LED闪烁
CY7C68013A之LED闪烁
2022-07-31 06:44:00 【火柴棍mcu】
#include "fx2.h"
#include "fx2regs.h"
sbit LED_PIN = IOD ^ 3;
main()
{
unsigned long i = 0;
OED |= 0x08; //PD3 Output Enable;
while(TRUE)
{
if( i++ > 50000 )
{
i = 0;
LED_PIN = ~LED_PIN;
}
}
}
程序下载
Download是将程序下载到RAM,Lg EEPROM是将程序下载到EEPROM;
边栏推荐
猜你喜欢
Financial leasing business
XSS靶场prompt.ml过关详解
超级详细的mysql数据库安装指南
Tasks and task switching
我开发了一个利用 Bun 执行 .ts / .js 文件的 VS Code 插件
Embedded system driver primary [2] - _ parameters and dependencies under the kernel module
2022.07.20_Daily Question
Pygame Surface对象
DirectExchange switch simple introduction demo
2022.07.12 _ a day
随机推荐
【Go语言刷题篇】Go完结篇函数、结构体、接口、错误入门学习
任务及任务切换
【面试:并发篇37:多线程:线程池】自定义线程池
【网络攻防】常见的网络攻防技术——黑客攻防(通俗易懂版)
2022.07.29_Daily Question
基于交替迭代法的交直流混合系统潮流计算matlab程序iEEE9节点系统算例
2022.07.14_每日一题
2022.07.15_Daily Question
【 TA - frost Wolf _may - "one hundred plan" 】 art 2.3 hard surface
【愚公系列】2022年07月 Go教学课程 022-Go容器之字典
2022.07.13_每日一题
庐山谣寄卢侍御虚舟
MySQL table creation statement_Three commonly used MySQL table creation statements
一文读懂Elephant Swap,为何为ePLATO带来如此高的溢价?
Kubernetes scheduling
2022.07.15_Daily Question
【解决】npm ERR A complete log of this run can be found in npm ERR
How to set the computer password?How to add "safety lock" to your computer
XSS靶场prompt.ml过关详解
[PSQL] SQL基础教程读书笔记(Chapter1-4)