Welcome![Sign In][Sign Up]
Location:
Search - reg51.h

Search list

[Other resourceCOLOCK

Description: 一個很好用的 lcd 時鐘程序 C語言 #include<reg51.h> #include<stdio.h> //定義計時器0 的重裝值 #define RELOAD_HIGH 0x3C #define RELOAD_LOW 0xD2 //定義按鍵彈跳時間 #define DB_VAL //定義設置模式的最大時間間隔 #define TIMEOUT 200 //定義游標位置常數 #define HOME 0 #define HOUR 1 #define MIN 2 #define SEC 3-a good lcd clock with the C-language # include
Platform: | Size: 3048 | Author: wfl | Hits:

[File OperatenewHD7279

Description: #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
Platform: | Size: 4424 | Author: 徐亮 | Hits:

[Other resourceLED

Description: #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++) } }
Platform: | Size: 981 | Author: 刘东 | Hits:

[Communication200080319

Description: 简单易学的串口通讯.#include <reg51.h>
Platform: | Size: 18985 | Author: yichongwen | Hits:

[Other resourceC16bit

Description: 单字右移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*/
Platform: | Size: 2407 | Author: z | Hits:

[Other resourceserial

Description: //*********主机代码****** #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
Platform: | Size: 15668 | Author: 平行线 | Hits:

[Linux-UnixT100_Simple_PVI8

Description: #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 \"T100Data_CPT.h\" //#include \"T100Data_PANASONIC.h\" //#include \"T100Data_PVI7.h\" //#include \"T100Data_LG.h\" //#include \"T100Data_FOX.h\" #include \"T100Data_PVI8.h\" #ifdef OSD_EN #include \"OSDFont1218_new.h\" #include \"OSD1218_new.h\"
Platform: | Size: 168366 | Author: dima | Hits:

[Other resourcec51kongzhijidianqi

Description: 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 } }
Platform: | Size: 13655 | Author: yjj | Hits:

[SourceCode键盘控制流水灯程序

Description: #include<reg51.h> #define uchar unsigned char #define uint unsigned int uchar k,flag1,flag2,flag3; sbit diocs=P2^5; sbit key1=P3^4; sbit key2=P3^5; sbit key3=P3^6; uchar code table1[]={ 0xfe,0xfd,0xfb,0xf7, 0xef,0xdf,0xbf,0x7f}; uchar code table2[]={ 0x7f,0xbf,0xdf,0xef, 0xf7,0xfd,0xfb,0xfe};
Platform: | Size: 24576 | Author: longtian635241 | Hits:

[Com Port串口

Description: #include<reg51.h> //包含单片机寄存器的头文件 unsigned char code zifuchuan[ ]="ni hao! wo shi cai hai peng huan ying xue dan pian ji "; //流水灯控制码,该数组被定义为全局变量 /***************************************************** 函数功能:向PC发送一个字节数据 ***************************************************/ void fasong(unsigned char dat) { SBUF=dat; //发送数据 while(TI==0) //检查发送完成中断标志如果未完成就等等否则复位发送标志位以便下个数据可以发送 ; TI=0;
Platform: | Size: 26112 | Author: ruyunlong1990@163.com | Hits:

[SCMCOLOCK

Description: 一個很好用的 lcd 時鐘程序 C語言 #include<reg51.h> #include<stdio.h> //定義計時器0 的重裝值 #define RELOAD_HIGH 0x3C #define RELOAD_LOW 0xD2 //定義按鍵彈跳時間 #define DB_VAL //定義設置模式的最大時間間隔 #define TIMEOUT 200 //定義游標位置常數 #define HOME 0 #define HOUR 1 #define MIN 2 #define SEC 3-a good lcd clock with the C-language# include
Platform: | Size: 3072 | Author: wfl | Hits:

[File FormatnewHD7279

Description: #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> /*-------------------------------------------- call way: on their own I/O port function definition @ 2001/05/12 Description: private function, the interface definition--------------------------------------------*/ sbit HD7279_CS = P1 ^ 4// HD7279_CS- P1.4sbit HD7279_CLK = P1 ^ 5// HD7279_CLK- P1. 5sbit HD7279_DATA = P1 ^ 6// HD7279_DATA- P1.2sbit HD7279_KEY = P1 ^ 7// HD7279_KEY- P1.3 /*-------------------------------------------- way call: HD7279A the command function definition @ 2001/05/12 Description: private function, interface definitions--------------------------------------------*/# define HD7279_RESET 0xa4// reset# define HD7279_TEST 0xbf// test# define HD7279_RLC 0xa3// circle left# define HD7279_RRC 0xa2// cycle shifted to right# define HD7279_RL 0xa1// left# define HD7279_RR 0xa0// Move right# define HD7279_DECODE0 0x80// decoding means 0# define HD7279_DECODE1 0xc8// decoding mode 1
Platform: | Size: 4096 | Author: 徐亮 | Hits:

[SCMLED

Description: #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++) } } -# 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++)))
Platform: | Size: 1024 | Author: 刘东 | Hits:

[Communication200080319

Description: 简单易学的串口通讯.#include <reg51.h> -Easy to learn the serial communication .# Include
Platform: | Size: 18432 | Author: yichongwen | Hits:

[SCMC16bit

Description: 单字右移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*/-1616 shifted to right word lattice shifted to right C procedures 16bit# Include <reg51.h># Include <intrins.h> sbit DAT = P1 ^ 0/* 74HC595 foot section 14 data , 0*/sbit YW = P1 ^ 1/* 74HC595 shift foot section 11 deposit , 0*/sbit SUO = P1 ^ 2/* 74HC595 latch pin No. 12 , 0* /
Platform: | Size: 2048 | Author: z | Hits:

[SCMserial

Description: //*********主机代码****** #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 -Host code //***************# Include <reg51.h># Include Clicent_Setting.h# Include LCD_Funtion.h# Include Futions.h # include Host_Interrupt_Funtion.h int num1 = 1// slave digital tube threshold int num2 = 0 int num3 = 1
Platform: | Size: 15360 | Author: 平行线 | Hits:

[Windows Develop1602_Diver

Description: #include<reg51.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int #define busy 0x80 #define DATAPORT P1 //数据端口 sbit RS=P3^5 sbit RW=P3^6 sbit ENABLE=P3^7 code char example[]="Waitting for you" void delay400ms(void) void delay5ms(void) void lcdwritedata(char data w) void waitforenable(void) void lcdwritecommand(uchar CMD,uchar ATT) void lcdreset(void) void display(uchar dd) void displayonechar(uchar x,uchar y,uchar wdata) void epustr(uchar x,uchar y,uchar code *ptr) -#include<reg51.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int #define busy 0x80 #define DATAPORT P1 //数据端口 sbit RS=P3^5 sbit RW=P3^6 sbit ENABLE=P3^7 code char example[]="Waitting for you" void delay400ms(void) void delay5ms(void) void lcdwritedata(char data w) void waitforenable(void) void lcdwritecommand(uchar CMD,uchar ATT) void lcdreset(void) void display(uchar dd) void displayonechar(uchar x,uchar y,uchar wdata) void epustr(uchar x,uchar y,uchar code*ptr)
Platform: | Size: 1024 | Author: Tnavy | Hits:

[Windows Developds18b20

Description: #include<reg51.h> #include<absacc.h> #include<stdio.h> #include<math.h> #define uchar unsigned char #define uint unsigned int sbit P00=P0^0 sbit P01=P0^1 sbit P02=P0^2 sbit P03=P0^3 sbit P04=P0^4 sbit P05=P0^5 sbit P06=P0^6 sbit P07=P0^7
Platform: | Size: 2048 | Author: Tnavy | Hits:

[SCM8051_Proteus

Description: 1.所有案例硬件仿真时需要Proteus7.1或以上版本. 2.C程序开发集成环境Keil uVision要求3.0或以上版本. 所有案例C源代码由配套书籍提供,压缩包中不提供C源代码, 仅提供由C程序编译生成的HEX文件. 3.如果有相关技术资料在压缩包中未找到, 读者可从www.icpdf.com免费下载. (下载之前需要先注册) 相关案例需要的软件:超级编辑器UltraEdit, 虚拟串口驱动vspd,串口助手, 字模软件Zimo,文件拆分软件FileSplit, 联合调试程序vdmagdi.exe等,请读者自行下载. 4.案例压缩包文件建议放在D盘或E盘根下解压, 放在桌面或其他位置解压时, 可能会因目录路径过长而使Proteus文件无法打开. 如果某些案例在Proteus7.1或以上版本中无法运行, 可将电路中某些元件的中文名称改为英文名称.-#include<reg51.h> #define uchar unsigned char #define uint unsigned int #define SCANPORT P1 uchar uca_LineScan[4]={0xEF,0xDF,0xBF,0x7F} uchar ucKeyScan() {
Platform: | Size: 13431808 | Author: gaozhe | Hits:

[SCMreg51.h_reg52.h详解

Description: reg51.h、reg52.h中文详解,可供大家参考(Reg51. H, reg52. H Chinese explanation, for your reference)
Platform: | Size: 86016 | Author: 于世海 | Hits:
« 12 3 4 »

CodeBus www.codebus.net