可预置的8位计数器程序的主要部分分析 #include <AT89X51.H> //器件配置文件 #define uchar unsigned char //变量类型的宏定义 #define uint unsigned int uchar code SEG7[10]={0x03,0x9f,0x25,0x0d,0x99, //0~9的数码管段码 0x49,0x41,0x1f,0x01,0x09} uchar data cnt[8] //在data区定义8位长度的数组,用来存放计数值 uchar data pre_cnt[8] //在data区定义8位长度的数组,用来存放预置值 sbit drv=P3^4 //定义输出驱动端 bit set_flag //定义工作标志 bit out_flag //定义输出标志 bit keydown_flag //键按下标志
资源简介:可预置的8位计数器程序的主要部分分析 #include <AT89X51.H> //器件配置文件 #define uchar unsigned char //变量类型的宏定义 #define uint unsigned int uchar code SEG7[10]={0x03,0x9f,0x25,0x0d,0x99, //0~9的数码管段码 0x49,0x41,0x1f,0x01...
上传时间: 2015-04-29
上传用户:changeboy
资源简介:可预置的8位计数器程序的主要部分分析,用C语言开发!
上传时间: 2015-08-13
上传用户:康郎
资源简介:一個很好用的 lcd 時鐘程序 C語言 #include<reg51.h> #include<stdio.h> //定義計時器0 的重裝值 #define RELOAD_HIGH 0x3C #define RELOAD_LOW 0xD2 //定義按鍵彈跳時間 #define DB_VAL //定義設置模式的最大時間間隔 #define TIMEOUT 200 //定...
上传时间: 2014-12-19
上传用户:zukfu
资源简介:PC与单片机双向通讯智能温控程序 #include <AT89X51.H> #include <intrins.h> #define Key_UP P1_0 #define Key_DOWN P1_1 #define Key_SET P1_2 #define RelayOutPort P2_0 #define LEDPort P0 #define DELPort P2_1 #define LEDTwoC P3_6 ...
上传时间: 2014-11-29
上传用户:风之骄子
资源简介:可预置可逆4位计数器 利用AT89S51单片机的P1.0-P1.3接四个发光二极管L1-L4,用来指示当前计数的数据;用P1.4-P1.7作为预置数据的输入端,接四个拨动开关K1-K4,用P3.6/WR和P3.7/RD端口接两个轻触开关,用来作加计数和减计数开关
上传时间: 2014-01-15
上传用户:海陆空653
资源简介:一个自己写的8位CPU程序,以Verilog语言实现,仅可做8×8的乘法和8/8的除法,功能不强大,但对于初学Verilog的人应该有些帮助
上传时间: 2013-12-23
上传用户:manlian
资源简介:可预置可逆4位计数器
上传时间: 2014-12-25
上传用户:fang2010
资源简介:C++完美演绎 经典算法 如 /* 头文件:my_include.h */ #include <stdio.h> /* 展开C语言的内建函数指令 */ #define PI 3.1415926 /* 宏常量,在稍后章节再详解 */ #define circle(radius) (PI*radius*radius) /* 宏函数,圆的面积 */ /* 将比较数值大小的...
上传时间: 2014-01-17
上传用户:epson850
资源简介://通过18B20检测的数字温度可在电脑上显示当前温度值 #include <reg52.h> #define uchar unsigned char #define uint unsigned int sbit DS=P2^2 //define interface uint temp // variable of temperature uchar flag1 // sign of the result positive...
上传时间: 2014-01-19
上传用户:Andy123456
资源简介:时钟芯片的c程序 使用时加上头文件 即#include<reg.h>
上传时间: 2013-11-29
上传用户:独孤求源
资源简介:基于终端的订花系统_socket #include<stdio.h> #include<stdlib.h> #include<errno.h> #include<string.h> #include<sys/types.h> #include<netinet/in.h> #include<sys/socket.h> #include<sys/wait.h> #include<sys/ipc.h> #include<unistd....
上传时间: 2014-01-18
上传用户:003030
资源简介:[问题描述] 在二叉排序树中查找关键字为KEY的记录 [输入] 有序表输入要查找元素的关键字 [输出] 查找成功是即可显示查找成功 #include <stdlib.h> #include <stdio.h> typedef int KeyType typedef struct{
上传时间: 2015-11-16
上传用户:erkuizhang
资源简介:汉诺塔问题的实现,C语言#include <slib.h> #include <sing.h>
上传时间: 2016-02-05
上传用户:chenjjer
资源简介:数据结构 课程 2叉树的遍历 #include "stdafx.h" #include <iostream.h> typedef char elemtype
上传时间: 2013-11-30
上传用户:tb_6877751
资源简介:#include <stc12c2052AD.H>// 标准库的头文件 #include <intrins.h> #include <absacc.h> #define uchar unsigned char #define uint unsigned int
上传时间: 2016-08-29
上传用户:rocwangdp
资源简介://顺序表的建立、查找、插入与删除 #include <stdio.h> #include <malloc.h> #include <stdlib.h> #define ListSize 100 //表最大长度 //结构定义 typedef struct SeqList { int node[ListSize] //存放表结点 int length //当前表长度 } SeqLis...
上传时间: 2014-01-17
上传用户:dongqiangqiang
资源简介:顺序栈的出栈、入栈、求栈长等基本操作 #include <stdio.h> #include <stdlib.h> #define STACKSIZE 50 typedef char DateType typedef struct
上传时间: 2014-01-10
上传用户:daguda
资源简介:/*** *****词法分析程序*** *****/ # include<iostream.h> # include<fstream.h> # include<math.h> int cc=0
上传时间: 2015-03-25
上传用户:璇珠官人
资源简介:/*** *****词法分析程序*** *****/ # include<iostream.h> # include<fstream.h> # include<math.h> int cc=0
上传时间: 2015-03-25
上传用户:cc1
资源简介:/*** *****词法分析程序*** *****/ # include<iostream.h> # include<fstream.h> # include<math.h> int cc=0
上传时间: 2013-12-27
上传用户:baiom
资源简介:/*** *****词法分析程序*** *****/ # include<iostream.h> # include<fstream.h> # include<math.h> int cc=0
上传时间: 2013-12-29
上传用户:风之骄子
资源简介:/*** *****词法分析程序*** *****/ # include<iostream.h> # include<fstream.h> # include<math.h> int cc=0
上传时间: 2015-03-25
上传用户:xieguodong1234
资源简介:/*** *****词法分析程序*** *****/ # include<iostream.h> # include<fstream.h> # include<math.h> int cc=0
上传时间: 2013-12-19
上传用户:佳期如梦
资源简介:pic单片机18B20c语言程序#include<pic.h> #include<pic12f6x.h>
上传时间: 2014-01-02
上传用户:cc1915
资源简介:12864液晶原程序.#include <reg52.h> #include <intrins.h> typedef unsigned char BYTE typedef bit BOOL sbit rs=P2^0 sbit rw=P2^1 sbit e =P2^2 BYTE code dis[]={"www.zansi.com"} delay(BYTE ms) {
上传时间: 2016-04-25
上传用户:zsjinju
资源简介:单字右移1616点阵右移C程序16bit #include<reg51.h> #include<intrins.h> sbit DAT=P1^0 /*"74HC595第14脚 数据 ",0*/ sbit YW=P1^1 /*"74HC595第11脚 移位存 ",0*/ sbit SUO=P1^2 /*"74HC595第12脚 锁存 ",0*/
上传时间: 2016-05-19
上传用户:zhangyigenius
资源简介:指定一個數字轉換回十進位,八進位,十六進位#include <stdio.h> #include <stdlib.h> int main(void) { int number =89 printf("數字 %d\n",number) /* %d 為十進位輸出格式*/ printf("八進位為 %o\n",number) /* %o 為八進位輸出格式*/ ...
上传时间: 2013-11-29
上传用户:tyler
资源简介:我自己写的带有异步清零端的8位可预置移位寄存器
上传时间: 2015-08-12
上传用户:凤临西北
资源简介:8位计数器的程序,CYPRESS公司生产的PSOC
上传时间: 2013-12-23
上传用户:685
资源简介:一、本程序完成功能要求: 完成两个压缩的8位多字节无符号BCD数相加的程序段。要求提供调试通过的源代码、可执行程序和编程小结readme.txt文件。 两个操作数可以由键盘输入。输出要求:在屏幕上显示出参与运算的两个加数和结果和。 二、使用说明: 点...
上传时间: 2013-12-21
上传用户:qweqweqwe