#include <reg51.h> /*-------------------------------------------- 調用方式:自行I/O 口定義﹫2001/05/12 函數說明:私有函數,各接口定義 --------------------------------------------*/ sbit HD7279_CS=P1^4 // HD7279_CS--P1.4 sbit HD7279_CLK=P1^5 // HD7279_CLK-- P1.5 sbit HD7279_DATA=P1^6 // HD7279_DATA-- P1.2 sbit HD7279_KEY =P1^7 // HD7279_KEY-- P1.3 /*-------------------------------------------- 調用方式: HD7279A 各指令定義﹫2001/05/12 函數說明:私有函數,接口定義 --------------------------------------------* /#define HD7279_RESET 0xa4 //復位 #define HD7279_TEST 0xbf //測試 #define HD7279_RLC 0xa3 //循環左移 #define HD7279_RRC 0xa2 //循環右移 #define HD7279_RL 0xa1 //左移 #define HD7279_RR 0xa0 //右移 #define HD7279_DECODE0 0x80 //譯碼方式0 #define HD7279_DECODE1 0xc8 //譯碼方式1
資源簡介:#include <reg51.h> /*-------------------------------------------- 調用方式:自行I/O 口定義﹫2001/05/12 函數說明:私有函數,各接口定義 --------------------------------------------*/ sbit HD7279_CS=P1^4 // HD7279_CS--P1.4 sbit HD7279_...
上傳時間: 2013-12-31
上傳用戶:三人用菜
資源簡介:一個很好用的 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
資源簡介:#include <reg51.h> void delay_ms(unsigned short ms) { unsigned short i unsigned char j for(i=0 i<ms i++) { for(j=0 j<200 j++) for(j=0 j<102 j++) } }
上傳時間: 2016-03-30
上傳用戶:cuibaigao
資源簡介:單字右移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 <reg51.h> #include "Clicent_Setting.h" #include "LCD_Funtion.h" #include "Futions.h" #include "Host_Interrupt_Funtion.h" int num1=1 //從機數碼管起始數 int num2=0 int num3=1
上傳時間: 2016-05-27
上傳用戶:王者A
資源簡介:89s51單片機控制繼電器! 由s51io口輸出低電平使三極管導通 從而控制繼電器閉合 #include <reg51.H> sbit P0_0=P0^0 sbit P1_7=P1^7 main() {while(1) { if (P0_0==0) P1_7==1 } }
上傳時間: 2013-12-17
上傳用戶:xsnjzljj
資源簡介:C++完美演繹 經典算法 如 /* 頭文件:my_include.h */ #include <stdio.h> /* 展開C語言的內建函數指令 */ #define PI 3.1415926 /* 宏常量,在稍后章節再詳解 */ #define circle(radius) (PI*radius*radius) /* 宏函數,圓的面積 */ /* 將比較數值大小的...
上傳時間: 2014-01-17
上傳用戶:epson850
資源簡介:#include "reg51.H" #include <intrins.h> #include "Common.h" //#include "Remote.h" #define OSD_EN //typedef unsigned char uCHAR //#include "T100Data_A.h" //#include "T100Data_PA.h" //#include "T100Data_AU.h" //#include "T100D...
上傳時間: 2016-07-21
上傳用戶:x4587
資源簡介:遙控解碼通過電腦串口顯示 /* 晶振:11.0569MHz */ #include <regX52.h> #define uchar unsigned char uchar data IRcode[4] //定義一個4字節的數組用來存儲代碼 uchar CodeTemp //編碼字節緩存變量 uchar i,j,k //延時用的循環變量 sbit IRsignal=P...
上傳時間: 2013-12-12
上傳用戶:Breathe0125
資源簡介::#include <stdlib.h>#include <stdio.h>#include <time.h> void InsertSort(int a[],int *(k1),int *(k2))//0:直接插入排序{ int i,j int temp *(k1)=0 *(k2)=0 for(i=0 i<149 i++) { temp=a[i+1] *(k2)++ ...
上傳時間: 2014-11-30
上傳用戶:362279997
資源簡介:/*** *****詞法分析程序*** *****/ # 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
上傳用戶:佳期如夢
資源簡介:可預置的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
資源簡介:#include "define.h" #include <stdio.h> #include <string.h> #include <ctype.h> #include <malloc.h> FILE *fp /*////////////////////////////////////////////////////////////////////////////// This is a pretreatment. /////////////////...
上傳時間: 2015-07-16
上傳用戶:ynsnjs
資源簡介:#include <stdio.h> #include <string.h> #include <stdlib.h> #include <malloc.h> #include <math.h> #include <conio.h> struct DuLNode{ struct DuLNode *prior int data struct DuLNode *next
上傳時間: 2014-01-01
上傳用戶:caiiicc
資源簡介:基于終端的訂花系統_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
資源簡介:#include <stdio.h> #define MAX 10
上傳時間: 2013-12-18
上傳用戶:talenthn
資源簡介:pic單片機18B20c語言程序#include<pic.h> #include<pic12f6x.h>
上傳時間: 2014-01-02
上傳用戶:cc1915
資源簡介:[問題描述] 在二叉排序樹中查找關鍵字為KEY的記錄 [輸入] 有序表輸入要查找元素的關鍵字 [輸出] 查找成功是即可顯示查找成功 #include <stdlib.h> #include <stdio.h> typedef int KeyType typedef struct{
上傳時間: 2015-11-16
上傳用戶:erkuizhang
資源簡介:#include<stdio.h> struct powernode { float pi float qi int i float vi } struct powernode wg[20] struct powernode wl[20] struct linedata
上傳時間: 2013-12-29
上傳用戶:athjac
資源簡介:漢諾塔問題的實現,C語言#include <slib.h> #include <sing.h>
上傳時間: 2016-02-05
上傳用戶:chenjjer
資源簡介:#include <stdio.h> #include<math.h> void pid_init() void pid_tune() void pid_setinteg() void pid_bumpless() float pid_calc() void main()
上傳時間: 2016-04-19
上傳用戶:851197153
資源簡介: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
資源簡介:#include<malloc.h> #include<limits.h> #include<stdio.h> #include<graphics.h> #include<io.h> #include<math.h> #include<process.h> #include<conio.h> #define m 100 #define OK 1 typedef int Status typedef char TElemType /*樹元素的類...
上傳時間: 2013-12-15
上傳用戶:liansi
資源簡介:linux 下串口編程 #include <stdio.h> /*標準輸入輸出定義*/ #include <stdlib.h> /*標準函數庫定義*/ #include <unistd.h> /*Unix標準函數定義*/ #include <sys/types.h> /**/ #include <sys/stat.h> /**/ #include <fcntl.h> /*文件控制定義*/ #incl...
上傳時間: 2014-01-18
上傳用戶:xjz632
資源簡介:#include <reg52.h> #include <stdio.h> #include <string.h> #define uchar unsigned char #define uint unsigned int #define isp_iap_byte_read 0x1 #define isp_iap_byte_program 0x2 #define isp_iap_sector_erase 0x3 #define wait_time 0x1
上傳時間: 2016-05-18
上傳用戶:agent