-
#include "at89x51.h"
unsigned char code ddisp[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f} //段显0123456789,P0口
/dl/270060.html
标签:
unsigned
include
ddisp
char
上传时间:
2013-12-03
上传用户:zm7516678
-
EA = 1 //开总中断
ET0 = 1 //允许定时器0中断
TMOD = 1 //定时器工作方式选择
TL0 = 0x06
TH0 = 0xf8 //定时器赋予初值
TR0 = 1 //启动定时器
/dl/305272.html
标签:
0x06
0xf8
TMOD
定时器
上传时间:
2013-12-30
上传用户:yzhl1988
-
TLC2543是TI公司的12位串行模数转换器,使用开关电容逐次逼近技术完成A/D转换过程。由于是串行输入结构,能够节省51系列单片机I/O资源;且价格适中,分辨率较高,因此在仪器仪表中有较为广泛的应用。
TLC2543的特点
(1)12位分辩率A/D转换器;
(2)在工作温度范围内10μs转换时间;
(3)11个模拟输入通道;
...
/dl/27394.html
标签:
2543
TLC
上传时间:
2013-11-19
上传用户:shen1230
-
SHUZIZHONG显示电路
源程序如下:
#include <reg51.h>#include <intrins.h>
unsigned char data dis_digit;
unsigned char code dis_code[]={ 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};unsigned char data dis_buf[16];unsigned char data dis_index;char hour,min,sec,wang,yea ...
/dl/31330.html
标签:
数字
显示电路
上传时间:
2013-11-24
上传用户:fdmpy
-
#include<reg51.h>/*************************ds1302与at89s52引脚连接********************/sbit T_RST=P3^5; sbit T_CLK=P3^6; sbit T_IO=P3^7; &n ...
/dl/31446.html
标签:
1302
LED
DS
AT
上传时间:
2014-01-17
上传用户:sglccwk
-
#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
uint i,j;
sbit dula=P2^6;
sbit wela=P2^7;
uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,
0x7d,0x07,0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71};
void main()
{
j=0;
i=0;
TMOD=0X01;
TH0=(65536-50000)/256;
TL ...
/dl/509595.html
标签:
用定时器以间隔500MS在6位数码管上依次显示0、1、 2、3….C、D、E、F,重复。
上传时间:
2016-02-11
上传用户:娇纵Pamper
-
/*
* _168ZHONGDUAN2.c
*
* Created: 2014/11/2 15:12:45
* Author: lenovo
*/
#include <avr/io.h>
#include <avr/iom168pa.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <avr/eeprom.h>
//#include <util/delay_basic.h>
//unsigned char const SEGtabl ...
/dl/509771.html
标签:
程序
上传时间:
2016-03-03
上传用户:彦 yan
-
/****************************************************************
外部晶振8M
PA0~3:四位数码管的位选
PB0~7:数码管 ...
/dl/509864.html
标签:
C语言
上传时间:
2016-03-09
上传用户:彦 yan
-
#include "STC90.h"
#include < intrins.h >
#define uchar unsigned char
#define uint unsigned int
#define led_port P1
sbit IR_RE = P3^2;
sbit led_r = P1^3;
sbit led_g = P1^4;
sbit led_b = P1^5;
sbit led_wd = P1^7;
sbit K1 =P3^0 ; //增加键
sbit K2 =P3^1 ; ...
/dl/512141.html
标签:
RGB
红外遥控
上传时间:
2016-07-02
上传用户:184890962
-
include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
uint temp,aa,wang,qian,bai,shi,ge;
sbit dula=P2^6;
sbit wela=P2^7;
uchar code table[]={
0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71};
void display( uint wa ...
/dl/747398.html
标签:
矩阵式键盘
上传时间:
2021-12-18
上传用户:2590813506