STM32是以Cortex-M3為核的處理器,該例程介紹STM32下對(duì)CAN操作的例子。CAN總線在嵌入式領(lǐng)域經(jīng)常使用,特別是汽電子。
上傳時(shí)間: 2016-10-10
上傳用戶:TF2015
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 #define LEDThreeC P3_7 #define TMPort P2_7 #define INBUF_LEN 5 //數(shù)據(jù)長(zhǎng)度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 , 0 } //發(fā)送緩沖區(qū) unsigned char inbuf2[50] //接收緩沖區(qū) unsigned char count3 void init_serialcomm( void ) { SCON = 0x50 //SCON: serail mode 1, 8-bit UART, enable ucvr TMOD |= 0x20 //TMOD: timer 1, mode 2, 8-bit reload PCON |= 0x80 //SMOD=1 TH1 = 0xFA //Baud:4800 fosc=11.0592MHz IE |= 0x90 //Enable Serial Interrupt TR1 = 1 // timer 1 run } //向串口發(fā)送一個(gè)字符 void send_char_com( unsigned char ch) { SBUF=ch while (TI== 0 ) TI= 0
標(biāo)簽: include intrins define Key_UP
上傳時(shí)間: 2014-11-29
上傳用戶:風(fēng)之驕子
VB遙控播放器紅外遙控解碼 #include <regX52.h> #define c(x) (x*110592/120000) sbit Ir_Pin=P3^2 sbit beep=P2^1 //sbit RELAY=P2^0 #define INBUF_LEN 4 //數(shù)據(jù)長(zhǎng)度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 } //發(fā)送緩沖區(qū) unsigned char inbuf2[50] //接收緩沖區(qū) unsigned char count3 void init_serialcomm( void ) { SCON = 0x50 //SCON: serail mode 1, 8-bit UART, enable ucvr T2CON=0x30 TH2=0x00 TL2=0x00 RCAP2H=0xFF RCAP2L=0xDC TR2=1 } //向串口發(fā)送一個(gè)字符 void send_char_com( unsigned char ch) { SBUF=ch while (TI== 0 ) TI= 0
標(biāo)簽: include 110592 120000 define
上傳時(shí)間: 2013-12-21
上傳用戶:yph853211
簡(jiǎn)單的加密算法,可逆與不可逆 數(shù)據(jù)加密: 算法1:(不可逆) 將ASCII表中32~~126中的字符,加密后,顯示為128~~255的字符. 128~~255的字符會(huì)讓人看起來(lái)頭痛些。。。。。。安全. 當(dāng)ch[?]的值為偶數(shù)時(shí):ch[?]=255-ch[?]的個(gè)位*10-ch[?]的十位 當(dāng)ch[?]的值為奇數(shù)時(shí): ch[?]=128+ch[?]的個(gè)位*10+ch[?]的十位 當(dāng)ch[?]的值為質(zhì)數(shù)時(shí):ch[?]=128+ch[?]的個(gè)位+ch[?]的十位 算法2:(可逆) 當(dāng)ch[?]的值能被3整除時(shí):ch[?]-=2,否則ch[?]-=3
上傳時(shí)間: 2014-11-10
上傳用戶:李夢(mèng)晗
簡(jiǎn)單的加密解密算法,可逆與不可逆 數(shù)據(jù)加密: 算法1:(不可逆) 將ASCII表中32~~126中的字符,加密后,顯示為128~~255的字符. 128~~255的字符會(huì)讓人看起來(lái)頭痛些。。。。。。安全. 當(dāng)ch[?]的值為偶數(shù)時(shí):ch[?]=255-ch[?]的個(gè)位*10-ch[?]的十位 當(dāng)ch[?]的值為奇數(shù)時(shí): ch[?]=128+ch[?]的個(gè)位*10+ch[?]的十位 當(dāng)ch[?]的值為質(zhì)數(shù)時(shí):ch[?]=128+ch[?]的個(gè)位+ch[?]的十位 算法2:(可逆) 當(dāng)ch[?]的值能被3整除時(shí):ch[?]-=2,否則ch[?]-=3
上傳時(shí)間: 2017-02-24
上傳用戶:txfyddz
This is GPS Matlab findPreambles finds the first preamble occurrence in the bit stream of each channel. The preamble is verified by check of the spacing between preambles [6sec] and parity checking of the first two words in a subframe. At the same time function returns list of channels, that are in tracking state and with valid preambles in the nav data stream.
標(biāo)簽: findPreambles occurrence the preamble
上傳時(shí)間: 2013-12-23
上傳用戶:秦莞爾w
3rd Generation Partnership Project Technical Specification Group Radio Access Network Spatial channel model for Multiple Input Multiple Output [MIMO] simulations
標(biāo)簽: Specification Partnership Generation Technical
上傳時(shí)間: 2014-01-11
上傳用戶:nanfeicui
在VB中把中文轉(zhuǎn)化成Unicode碼 首先介紹一下VB中的兩個(gè)函數(shù):ChrW()和AscW().對(duì)于Chr()和Asc()函數(shù)大家一定很熟悉,對(duì)于ChrW()和AscW()可能會(huì)比較生疏一點(diǎn). ChrW 函數(shù)返回包含 Unicode 的 String,若在不支持 Unicode 的平臺(tái)上,則其功能與 Chr 函數(shù)相同 AscW 函數(shù)返回 Unicode 字符代碼,若平臺(tái)不支持 Unicode,則與 Asc 函數(shù)功能相同。
標(biāo)簽: ChrW AscW Unicode Asc
上傳時(shí)間: 2017-05-08
上傳用戶:yangbo69
Bardzzo przydatny skrypt do nauki matlaba nie tylko dla pocz膮tkuj膮cych ale r貿(mào)wniez dla tych kt貿(mào)偶y chc膮 pog艂臋bi膰 swoj膮 wiedz臋
標(biāo)簽: przydatny dla Bardzzo matlaba
上傳時(shí)間: 2017-05-13
上傳用戶:hakim
1)LQG design of an unmanned helicopter 2) LQR control of an unmanned helicopter 3) speed torque characteristics of Induction machine
標(biāo)簽: helicopter unmanned control design
上傳時(shí)間: 2017-05-28
上傳用戶:水中浮云
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1