摘要:
一、他们代表什么意思? #ifdef<标识>//代码段如果#define<标识>则……#ifndef<标识>//代码段如果没有#define<标识>则……#define这个就不用说了。#endif用了条件定义结束用这个。二、怎么用?形式一#ifndef<标识>#define<标识>程序段#endif1. 当你第一个使用这个头的... 阅读全文
阅读排行榜
Proteus与Keil联调
2010-01-05 01:18 by LeonDw, 1370 阅读, 收藏,
摘要:
实现在Keil中调试,在Proteus中出效果。 1、复制修改文件 Keil 与Proteus连接,连接开始必须在proteus安装目录下VDM51.dll文件复制到Keil安装目录的\C51\BIN目录中。 修改keil安装目录下Tools.ini文件:在[C51] 栏目下加入TDRV3=BIN\VDM51.DLL ("Proteus VSM Monitor-51 Driver&qu... 阅读全文
我也玩单片机:8只数码管滚动显示单个数字
2010-01-06 14:09 by LeonDw, 971 阅读, 收藏,
摘要:
滚动显示0~7源代码CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- 1 #include<reg52.h> 2 #define uchar unsigned char 3 #define uint unsigned int 4 u... 阅读全文
我也玩单片机:流水灯
2010-01-06 02:51 by LeonDw, 944 阅读, 收藏,
摘要:
一、点亮一个P1.0口的发光管1、源代码CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- 1 #include<reg52.h> 2 #define uint unsigned int //宏定义 3 #define uchar u... 阅读全文
浙公网安备 33010602011771号