#include "intrins.h" unsigned char SystemError sbit SCL= P1^6 //定义串行时钟线所在口 使用时根据自己的需要 sbit SDA= P1^7 //定义串行数据线所在口 使用时根据自己的需要 #define SomeNOP() {_nop_() _nop_() _nop_() _nop_() }
资源简介:#include "intrins.h" unsigned char SystemError sbit SCL= P1^6 //定义串行时钟线所在口 使用时根据自己的需要 sbit SDA= P1^7 //定义串行数据线所在口 使用时根据自己的需要 #define SomeNOP() {_nop_() _nop_() _nop_() _nop_() }
上传时间: 2015-08-30
上传用户:rocketrevenge
资源简介:#include "at89x51.h" unsigned char code ddisp[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f} //段显0123456789,P0口
上传时间: 2013-12-03
上传用户:zm7516678
资源简介:使用mediastreamer2的g711common.h. unsigned char s16_to_alaw(int pcm_val). 将16bit的原始样本encode 成为8bit的a-law码.
上传时间: 2015-11-03
上传用户:qq521
资源简介:5045的底层操作程序,使用时根据实际接线情况对程序中管脚定义部分做适当修改 //定义管脚 sbit SCK=P3^4 //时钟 sbit SI=P3^5 //CPU--->5045 sbit SO=P3^5 //5045-->CPU sbit CS=P3^6 //片选
上传时间: 2014-01-01
上传用户:tb_6877751
资源简介:#include intvcon 输出电压变量 sbitDIN=0x91 定义P2.1为串行数据口 sbitCLK=0x92;P2.2为串行时钟端 sbitCS=0x93 P2.3为片选端 voiddac5618(intvcon)TLC5618DAC子程序,三线串行方式 { chari intsvcon svcon=vcon|0x8000 vcon最高位置1,选择 TL...
上传时间: 2016-06-15
上传用户:wsf950131
资源简介:通电后,进水指示灯亮起,用户通过对按键的操作选择洗衣服的哪一个流程,若直接选择启动按键,则洗衣机从进水→洗衣服→泡洗→脱水→出水→结束进行整个流程。若不直接选择启动,那么用户可以根据自己的需要对菜单选择键进行操作,把洗衣机切换到自己想要的那...
上传时间: 2022-05-14
上传用户:
资源简介:I2C总线器件在高抗干扰系统中的应用: 摘要:本文先对I2C总线协议进行了简要叙述,然后介绍了一些常用的抗干扰措施,最后提供了一个利用I2C总线器件24WC01组成的高抗干扰应用方案。 一、I2C总线概述 I2C总线是一双线串行总线,它提供一小型网络系统为总线...
上传时间: 2013-11-05
上传用户:1159797854
资源简介:I2C总线器件在高抗干扰系统中的应用: 摘要:本文先对I2C总线协议进行了简要叙述,然后介绍了一些常用的抗干扰措施,最后提供了一个利用I2C总线器件24WC01组成的高抗干扰应用方案。 一、I2C总线概述 I2C总线是一双线串行总线,它提供一小型网络系统为总线...
上传时间: 2013-11-17
上传用户:时代将军
资源简介: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
资源简介:可预置的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
资源简介://通过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
资源简介:遥控解码通过电脑串口显示 /* 晶振: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 <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 <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
资源简介://1602液晶显示字屏为:TX-1C MCU GOTOYUNLONGDZ #include<reg52.h> #define uchar unsigned char #define uint unsigned int
上传时间: 2014-11-14
上传用户:caiiicc
资源简介:#include <stc12c2052AD.H>// 标准库的头文件 #include <intrins.h> #include <absacc.h> #define uchar unsigned char #define uint unsigned int
上传时间: 2016-08-29
上传用户:rocwangdp
资源简介: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
上传用户:风之骄子
资源简介:数据结构 课程 2叉树的遍历 #include "stdafx.h" #include <iostream.h> typedef char elemtype
上传时间: 2013-11-30
上传用户:tb_6877751
资源简介:#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 "stdlib.h" #include "string.h" typedef struct node { char name[10] /*进程标识符*/ int prio /*进程优先数*/ int round /*进程时间轮转时间片*/ int cputime /*进程占...
上传时间: 2016-08-09
上传用户:凤临西北
资源简介:unsigned char WriteInData(unsigned char Address,unsigned char DataByte) { unsigned char mark WREN() Write_Byte(0x02) Write_Byte(Address) Write_Byte(DataByte) //NOP() X25_cs=1 lag(3000) mark=Read_Byte(Address) if(DataByte=...
上传时间: 2016-12-14
上传用户:invtnewer
资源简介:pc.c是移植于μCOS-II的PC服务代码(pc.c) 主要改动: 1、#include "includes.h"改为"config.h" 2、在屏幕上显示改为向UART0发送数据,在电脑上显示,影响的函数: PC_DispChar()、PC_DispClrCol()、PC_DispClrRow()、PC_DispClrScr()和PC_DispStr() 3、获取...
上传时间: 2015-03-18
上传用户:ynzfm
资源简介:c语言中写二进制数。引用例子: #define Bin(n) LongToBin(0x##n##l) void main(void) { unsigned char c c = Bin(10101001) // c = 0xA9 }
上传时间: 2015-04-13
上传用户:a6697238
资源简介:拼音输入法杳询函数: unsigned char code * py_ime(unsigned char input_py_val[]) input_py_val为已输入的拼音码字符串头指针, 反回值为中文的起始地址,当为0时,杳询失败
上传时间: 2013-12-25
上传用户:ljmwh2000
资源简介:一个用C51实现单片机的中文输入法,拼音输入法杳询函数: unsigned char code * py_ime(unsigned char input_py_val[]) input_py_val为已输入的拼音码字符串头指针,反回值为中文的起始地址,当为0时,杳询失败
上传时间: 2015-05-17
上传用户:frank1234
资源简介:感知器的VC实现#include "percept.h" #include "stdio.h" #include "stdlib.h"
上传时间: 2013-12-17
上传用户:偷心的海盗
资源简介:#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
上传时间: 2015-05-22
上传用户:lwwhust
资源简介:#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
上传时间: 2015-05-22
上传用户:cc1915
资源简介:#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
上传时间: 2014-01-03
上传用户:JIUSHICHEN