Spiga

随笔档案 - 2010年1月

我也玩单片机:8只数码管滚动显示单个数字

2010-01-06 14:09 by LeonDw, 341 visits, 网摘, 收藏, 编辑
摘要:滚动显示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, 515 visits, 网摘, 收藏, 编辑
摘要:一、点亮一个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... 阅读全文

Proteus与Keil联调

2010-01-05 01:18 by LeonDw, 588 visits, 网摘, 收藏, 编辑
摘要:实现在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... 阅读全文