Chinaunix首页 | 论坛 | 博客
  • 博客访问: 182792
  • 博文数量: 54
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2018
  • 用 户 组: 普通用户
  • 注册时间: 2013-03-31 23:14
文章存档

2014年(2)

2013年(52)

发布时间:2013-05-06 20:36:39

我......【阅读全文】

阅读(1099) | 评论(1) | 转发(1)

发布时间:2013-05-06 20:35:42

#includestatic single=1;static single1=1;unsigned char smg[]={0xfe,0xfc,0xfd,0xf9,0xfb,0xf3,0xf7,0xf6};void delay0(){   unsigned t=80;   while(t--);}void delay1()       {   unsigned t=200;   while(t--);}void main().........【阅读全文】

阅读(1024) | 评论(0) | 转发(1)

发布时间:2013-05-06 19:11:36

     定时器。 ORG 0000H ;定时效果基本一致(时间10分钟总长相等) AJMP  START ORG 000BH LJMP TIME ORG  0030HSTART:MOV TMOD,#01H MOV TH0,#3CH MOV TL0,#0B0H MOV IP,#02H MOV IE,#82H SETB TR0 MOV H,#23 MO.........【阅读全文】

阅读(1064) | 评论(0) | 转发(1)

发布时间:2013-05-06 19:08:33

    DA很简单:#include <reg52.h>#include <intrins.h>sbit cs_wr1=P3^4; void delay(unsigned int tt){    while(tt--);}void main( ){   while(1)  {P2=~P2;cs_wr1=0;_nop_( );_nop_( );cs_wr1=1;delay(100);   }}c:DA.zip.........【阅读全文】

阅读(836) | 评论(0) | 转发(1)

发布时间:2013-05-06 18:58:03

    使用数码管显示:ADC0808#include<reg52.h>#include<intrins.h>sbit ale=P3^7;sbit oe=P3^6;sbit l0=P3^4;sbit l1=P3^5;unsigned result,i;float res;void delay(int t){ while(t--);}char msg[4];char dm[]={0x3f,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6f};char wm[]={0x7F,0x0BF.........【阅读全文】

阅读(953) | 评论(0) | 转发(1)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册