搜索资源列表
5510dedaima
- /*** *5510单片机测试程序 基本测试成功 2005-8-25 write By CW *** *** *** ****/ #include <reg52.h> #include <absacc.h> #define uint unsigned int #define uchar unsigned char-/******* 5510 microcontroller basic test procedure su
STCchuankougps
- #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 #defi
serial_program_for_51
- 很完整的51串口程序 包括如下: 串口中断服务程序,仅需做简单调用即可完成串口输入输出的处理 出入均设有缓冲区,大小可任意设置。 可供使用的函数名: char getbyte(void) 从接收缓冲区取一个byte,如不想等待则在调用前检测inbufsign是否为1。 getline(char idata *line, unsigned char n) 获取一行数据回车结束,必须定义最大输入字符数 putbyte(char c) 放入一个字节到发送缓冲区 putb
msp430+1621
- 功能:用msp430驱动1621芯片的段码液晶 作者:徐世龙(网名:清风徐徐) 说明:源创(调试绝对能用) ---------------------------------------------------- cs-----p65 wr-----p64 dat----p63 mcu----msp430f135 ------------------------------------------------------------*/ /*-
TX-1BDS18B20
- //通过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 or negative sbit
1602
- //1602液晶显示字屏为:TX-1C MCU GOTOYUNLONGDZ #include<reg52.h> #define uchar unsigned char #define uint unsigned int
wuxian
- #include <stc12c2052AD.H>// 标准库的头文件 #include <intrins.h> #include <absacc.h> #define uchar unsigned char #define uint unsigned int
DS18B20+1602液晶高精度温度计
- DS18B20+液晶1602构成的高精度温度计 ;连线图: ; DB0---DPROT.0 DB4---DPROT.4 RS-------------P1.2 ; DB1---DPROT.1 DB5---DPROT.5 RW-------------P1.3 ; DB2---DPROT.2 DB6---DPROT.6 E--------------P1.4 ; DB3---DPROT.3 DB7---DPROT.7 VLCD接10K可调电阻到GND* DQ----P1.1 ;功能说明:1602液
NRF905
- 带有DS18B20数字温度传感器的用作发射数据的nRF905无线数传模块,右边为用作接收数据的nRF905数传模块,其中的单片机可以通过串口和电脑相连,上传数据。-#include <at89x52.h> #include <intrins.h> #define uchar unsigned char #define uint unsigned int #define WC 0x00 // Write configuration regi
bujinji
- 一个步进电机的仿真:#include<reg51.h> #include<absacc.h> #define uint unsigned int #define uchar unsigned char //#define PORT XBYTE[0xffc0]-A stepper motor simulation:# include <reg51.h># include <absacc.h># define uint unsigned
10to
- 基于单片机的10根线束线缆检测器的源程序 #pragma sfr #pragma DI #pragma EI #pragma NOP //#pragma interrupt INTTM010 isr_INTTM000 #pragma interrupt INTTM80 isr_INTTM80 //#pragma interrupt INTTMH1 isr_INTTMH1 #pragma section @@CNST OPT AT 80H const char
jpxs
- 取键值程序 功能:等待键入,并刷新显示,并返回键值放 A 占用: PSW,A,DPTR,R0,R2,R3,R4,R6,R7 入口:无 出口: A ORG 0190H WAT_KB: MOV R0,#3FH WAT_0: ACALL DISP_0 刷新显示器 ACALL T_KB JZ WAT_0 无键 , 循环 ACALL KEY_LD 延时消抖-#include<reg51.h> #include<intrins.h> #define uchar unsigne
TLC549
- TLC549AD转换51单片机代码,程序有详细的中文注释,包括中位置滤波法的设计-#include<reg52.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int sbit AD_Out = P3^2 sbit CS = P1^0 sbit AD_In = P1^1
5KeyControl_SDCard_MP3Source_MP3PCB
- 本程序由Mega32控制 /*** *** *** *** *** *** *** *** *** *** / VS1011 Code for M32L /************************************************************/ #include <iom32v.h> #include <macros.h> #define uchar unsigned char #define ui
AD985
- AD9850单片机使用程序,AD9850是AD公司生产的最高时钟为125 MHz、采用先进的CMOS技术的直接频率合成器,主要由可编程DDS系统、高性能模数变换器(DAC)和高速比较器3部分构成,能实现全数字编程控制的频率合成。 -include <reg52.h> #define uchar unsigned char #define uint unsigned int long uint Frequency_Out double Con_Word_1
stcEEPROM
- STC单片机,EEPROM操作 IAP_Disable //擦除扇区, 入口:DPTR = 扇区地址 void Sector_Erase(UINT add) 读一字节 字节编程-STC microcontroller, EEPROM operation IAP_Disable// Erase sector, entry: DPTR = sector address void Sector_Erase (UINT add) read a byte byte programmin
CH452_C51_display
- 单片机控制的CH452显示程序,单片机为Sm89c52,其中包括Ch452的初始化子程序,发送命令子程序,显示一个uchar字符的子程序,显示一个uint字符的子程序以及某指定的数码管不显示的子程序-Controlled by CH452 display program, MCU Sm89c52, including Ch452 initialization subroutine, send the command subroutine, the subroutine displays a uc
sht10-c51
- SHT10数字温湿度传感器的读写程序 #include <reg51.h> #include <intrins.h> #define uchar unsigned char #define uint unsigned int uchar wendu,shidu,air //定义要发送的温度和湿度 空气质量-SHT10 digital temperature and humidity sensors to read and write pr
74
- 流水灯这里用"uchar"代替"unsigned char","uchar"用来定义无符号字符型数。 #define uint unsigned int //"uint"用来定义无符号整型数。 sbit Show_LED = P0^0 //用来声明P0.0口为程序所要控制的端口,"sbit"是KEIL专门用来声明某位IO口 -led
8051_Proteus
- 1.所有案例硬件仿真时需要Proteus7.1或以上版本. 2.C程序开发集成环境Keil uVision要求3.0或以上版本. 所有案例C源代码由配套书籍提供,压缩包中不提供C源代码, 仅提供由C程序编译生成的HEX文件. 3.如果有相关技术资料在压缩包中未找到, 读者可从www.icpdf.com免费下载. (下载之前需要先注册) 相关案例需要的软件:超级编辑器UltraEdit, 虚拟串口驱动vspd,串口助手, 字模软件