#include "at89x51.h" unsigned char code ddisp[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f} //段顯0123456789,P0口
資源簡(jiǎn)介:#include "at89x51.h" unsigned char code ddisp[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f} //段顯0123456789,P0口
上傳時(shí)間: 2013-12-03
上傳用戶(hù):zm7516678
資源簡(jiǎn)介:/* ?* _168ZHONGDUAN2.c ?* ?* Created: 2014/11/2 15:12:45 ?* ?Author: lenovo ?*/? #include <avr/io.h> #include <avr/iom168pa.h> #include <avr/interrupt.h> #include <util/delay.h> #include <avr/eeprom.h> //#include <util/delay_basic....
上傳時(shí)間: 2016-03-03
上傳用戶(hù):彥 yan
資源簡(jiǎn)介:/****************************************************************? ? ? ? ? ? ? ? ? 外部晶振8M? ? ? ? ? ? ? ? ? PA0~3:四位數(shù)碼管的位選? ? ? ? ? ? ? ? ? PB0~7:數(shù)碼管的8位段選? ? ? ? ? ? ? ? ? 外部中斷0用...
上傳時(shí)間: 2016-03-09
上傳用戶(hù):彥 yan
資源簡(jiǎn)介:#include "STC90.h" #include < intrins.h > #define uchar unsigned char #define uint unsigned int #define led_port P1 sbit IR_RE = P3^2; sbit led_r = P1^3; sbit led_g = P1^4; sbit led_b = P1^5; sbit led_wd = P1^7; sbit K1 =P3^0 ; ...
上傳時(shí)間: 2016-07-02
上傳用戶(hù):184890962
資源簡(jiǎn)介:TLC2543是TI公司的12位串行模數(shù)轉(zhuǎn)換器,使用開(kāi)關(guān)電容逐次逼近技術(shù)完成A/D轉(zhuǎn)換過(guò)程。由于是串行輸入結(jié)構(gòu),能夠節(jié)省51系列單片機(jī)I/O資源;且價(jià)格適中,分辨率較高,因此在儀器儀表中有較為廣泛的應(yīng)用。 TLC2543的特點(diǎn) (1)12位分辯率A/D轉(zhuǎn)換器; (2)在...
上傳時(shí)間: 2013-11-19
上傳用戶(hù):shen1230
資源簡(jiǎn)介:#include "intrins.h" unsigned char SystemError sbit SCL= P1^6 //定義串行時(shí)鐘線(xiàn)所在口 使用時(shí)根據(jù)自己的需要 sbit SDA= P1^7 //定義串行數(shù)據(jù)線(xiàn)所在口 使用時(shí)根據(jù)自己的需要 #define SomeNOP() {_nop_() _nop_() _nop_() _nop_() }
上傳時(shí)間: 2015-08-30
上傳用戶(hù):rocketrevenge
資源簡(jiǎn)介:SHUZIZHONG顯示電路 源程序如下: #include <reg51.h>#include <intrins.h> unsigned char data dis_digit; unsigned char code dis_code[]={ 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};unsigned char data dis_buf...
上傳時(shí)間: 2013-11-24
上傳用戶(hù):fdmpy
資源簡(jiǎn)介:#include<reg51.h> #define uchar unsigned char #define uint unsigned int uint i,j; sbit dula=P2^6; sbit wela=P2^7; uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d, 0x7d,0x07,0x7f,0x6f,0x77,0x7c, 0x39,0x5e,0x79,0x71}; void main() {? j=0;...
上傳時(shí)間: 2016-02-11
上傳用戶(hù):嬌縱Pamper
資源簡(jiǎn)介:拼音輸入法杳詢(xún)函數(shù): unsigned char code * py_ime(unsigned char input_py_val[]) input_py_val為已輸入的拼音碼字符串頭指針, 反回值為中文的起始地址,當(dāng)為0時(shí),杳詢(xún)失敗
上傳時(shí)間: 2013-12-25
上傳用戶(hù):ljmwh2000
資源簡(jiǎn)介:一個(gè)用C51實(shí)現(xiàn)單片機(jī)的中文輸入法,拼音輸入法杳詢(xún)函數(shù): unsigned char code * py_ime(unsigned char input_py_val[]) input_py_val為已輸入的拼音碼字符串頭指針,反回值為中文的起始地址,當(dāng)為0時(shí),杳詢(xún)失敗
上傳時(shí)間: 2015-05-17
上傳用戶(hù):frank1234
資源簡(jiǎn)介:曲譜存貯格式 unsigned char code MusicName{音高,音長(zhǎng),音高,音長(zhǎng)...., 0,0} 末尾:0,0 表示結(jié)束(Important) 音高由三位數(shù)字組成: 個(gè)位是表示 1~7 這七個(gè)音符 十位是表示音符所在的音區(qū):1-低音,2-中音,3-高音 百位表示這個(gè)音符是否要升半音: 0-不升...
上傳時(shí)間: 2013-12-15
上傳用戶(hù):671145514
資源簡(jiǎn)介:拼音輸入法杳詢(xún)函數(shù): unsigned char code * py_ime(unsigned char input_py_val[]) input_py_val為已輸入的拼音碼字符串頭指針, 反回值為中文的起始地址,當(dāng)為0時(shí),杳詢(xún)失敗 應(yīng)用舉例:
上傳時(shí)間: 2015-09-07
上傳用戶(hù):zhouli
資源簡(jiǎn)介:使用mediastreamer2的g711common.h. unsigned char s16_to_alaw(int pcm_val). 將16bit的原始樣本encode 成為8bit的a-law碼.
上傳時(shí)間: 2015-11-03
上傳用戶(hù):qq521
資源簡(jiǎn)介:51單片機(jī)的_中文拼音輸入法_c源程序 拼音輸入法杳詢(xún)函數(shù): unsigned char code * py_ime(unsigned char input_py_val[]) input_py_val為已輸入的拼音碼字符串頭指針, 反回值為中文的起始地址,當(dāng)為0時(shí),杳詢(xún)失敗 應(yīng)用舉例: { unsigned char input_str...
上傳時(shí)間: 2014-12-01
上傳用戶(hù):源弋弋
資源簡(jiǎn)介:include<reg52.h> #define uint unsigned int #define uchar unsigned char uint temp,aa,wang,qian,bai,shi,ge; sbit dula=P2^6; sbit wela=P2^7; uchar code table[]={ 0x3f,0x06,0x5b,0x4f, 0x66,0x6d,0x7d,0x07, 0x7f,0x6f,0x...
上傳時(shí)間: 2021-12-18
上傳用戶(hù):2590813506
資源簡(jiǎn)介:可預(yù)置的8位計(jì)數(shù)器程序的主要部分分析 #include <AT89X51.H> //器件配置文件 #define uchar unsigned char //變量類(lèi)型的宏定義 #define uint unsigned int uchar code SEG7[10]={0x03,0x9f,0x25,0x0d,0x99, //0~9的數(shù)碼管段碼 0x49,0x41,0x1f,0x01...
上傳時(shí)間: 2015-04-29
上傳用戶(hù):changeboy
資源簡(jiǎn)介: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) {
上傳時(shí)間: 2016-04-25
上傳用戶(hù):zsjinju
資源簡(jiǎn)介:#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++) } }
上傳時(shí)間: 2016-03-30
上傳用戶(hù):cuibaigao
資源簡(jiǎn)介://通過(guò)18B20檢測(cè)的數(shù)字溫度可在電腦上顯示當(dāng)前溫度值 #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...
上傳時(shí)間: 2014-01-19
上傳用戶(hù):Andy123456
資源簡(jiǎn)介://1602液晶顯示字屏為:TX-1C MCU GOTOYUNLONGDZ #include<reg52.h> #define uchar unsigned char #define uint unsigned int
上傳時(shí)間: 2014-11-14
上傳用戶(hù):caiiicc
資源簡(jiǎn)介:PC與單片機(jī)雙向通訊智能溫控程序 #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 ...
上傳時(shí)間: 2014-11-29
上傳用戶(hù):風(fēng)之驕子
資源簡(jiǎn)介:遙控解碼通過(guò)電腦串口顯示 /* 晶振:11.0569MHz */ #include <REGX52.h> #define uchar unsigned char uchar data IRcode[4] //定義一個(gè)4字節(jié)的數(shù)組用來(lái)存儲(chǔ)代碼 uchar CodeTemp //編碼字節(jié)緩存變量 uchar i,j,k //延時(shí)用的循環(huán)變量 sbit IRsignal=P...
上傳時(shí)間: 2013-12-12
上傳用戶(hù):Breathe0125
資源簡(jiǎn)介:#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...
上傳時(shí)間: 2016-07-21
上傳用戶(hù):x4587
資源簡(jiǎn)介:數(shù)據(jù)結(jié)構(gòu) 課程 2叉樹(shù)的遍歷 #include "stdafx.h" #include <iostream.h> typedef char elemtype
上傳時(shí)間: 2013-11-30
上傳用戶(hù):tb_6877751
資源簡(jiǎn)介:/*================================================================= 4掃16*16下入上出C語(yǔ)言程序, 低位起筆,數(shù)據(jù)反相。 預(yù)定義 **************************************************************/ #include #include //可使用其中定義的宏來(lái)訪(fǎng)問(wèn)絕對(duì)...
上傳時(shí)間: 2017-05-04
上傳用戶(hù):sbfd010
資源簡(jiǎn)介:#include "define.h" #include <stdio.h> #include <string.h> #include <ctype.h> #include <malloc.h> FILE *fp /*////////////////////////////////////////////////////////////////////////////// This is a pretreatment. /////////////////...
上傳時(shí)間: 2015-07-16
上傳用戶(hù):ynsnjs
資源簡(jiǎn)介:用VC制作一個(gè)商品交易管理系統(tǒng).部分代碼:“// 商品交易管理系統(tǒng)View.cpp #include “MyDlg1.h” void CMyView::OnRadiospxx() { // TODO: Add your control notification handler code here CMyDlg1 MyDlg1 MyDlg1.DoModal() } ”
上傳時(shí)間: 2013-12-16
上傳用戶(hù):banyou
資源簡(jiǎn)介:操作系統(tǒng)課程設(shè)計(jì)_進(jìn)程調(diào)度演示源程序 #include "stdio.h" #include "stdlib.h" #include "string.h" typedef struct node { char name[10] /*進(jìn)程標(biāo)識(shí)符*/ int prio /*進(jìn)程優(yōu)先數(shù)*/ int round /*進(jìn)程時(shí)間輪轉(zhuǎn)時(shí)間片*/ int cputime /*進(jìn)程占...
上傳時(shí)間: 2016-08-09
上傳用戶(hù):鳳臨西北
資源簡(jiǎn)介:pc.c是移植于μCOS-II的PC服務(wù)代碼(pc.c) 主要改動(dòng): 1、#include "includes.h"改為"config.h" 2、在屏幕上顯示改為向UART0發(fā)送數(shù)據(jù),在電腦上顯示,影響的函數(shù): PC_Dispchar()、PC_DispClrCol()、PC_DispClrRow()、PC_DispClrScr()和PC_DispStr() 3、獲取...
上傳時(shí)間: 2015-03-18
上傳用戶(hù):ynzfm
資源簡(jiǎn)介:c語(yǔ)言中寫(xiě)二進(jìn)制數(shù)。引用例子: #define Bin(n) LongToBin(0x##n##l) void main(void) { unsigned char c c = Bin(10101001) // c = 0xA9 }
上傳時(shí)間: 2015-04-13
上傳用戶(hù):a6697238