透過KEIL C51的程式,學習者可以了解車用控制器區域網路(Controller Area Network, CAN)的訊息傳輸方式。
上傳時間: 2016-09-05
上傳用戶:tb_6877751
透過a51的程式,學習者可以了解車用控制器區域網路(Controller Area Network, CAN)的訊息傳輸方式,有助於建立CAN-Bus傳輸的概念。
上傳時間: 2016-09-05
上傳用戶:極客
STM32是以Cortex-M3為核的處理器,該例程介紹STM32下對CAN操作的例子。CAN總線在嵌入式領域經常使用,特別是汽電子。
上傳時間: 2016-10-10
上傳用戶:TF2015
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 #define LEDThreeC P3_7 #define TMPort P2_7 #define INBUF_LEN 5 //數據長度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 , 0 } //發送緩沖區 unsigned char inbuf2[50] //接收緩沖區 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 } //向串口發送一個字符 void send_char_com( unsigned char ch) { SBUF=ch while (TI== 0 ) TI= 0
標簽: include intrins define Key_UP
上傳時間: 2014-11-29
上傳用戶:風之驕子
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 //數據長度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 } //發送緩沖區 unsigned char inbuf2[50] //接收緩沖區 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 } //向串口發送一個字符 void send_char_com( unsigned char ch) { SBUF=ch while (TI== 0 ) TI= 0
標簽: include 110592 120000 define
上傳時間: 2013-12-21
上傳用戶:yph853211
簡單的加密算法,可逆與不可逆 數據加密: 算法1:(不可逆) 將ASCII表中32~~126中的字符,加密后,顯示為128~~255的字符. 128~~255的字符會讓人看起來頭痛些。。。。。。安全. 當ch[?]的值為偶數時:ch[?]=255-ch[?]的個位*10-ch[?]的十位 當ch[?]的值為奇數時: ch[?]=128+ch[?]的個位*10+ch[?]的十位 當ch[?]的值為質數時:ch[?]=128+ch[?]的個位+ch[?]的十位 算法2:(可逆) 當ch[?]的值能被3整除時:ch[?]-=2,否則ch[?]-=3
上傳時間: 2014-11-10
上傳用戶:李夢晗
簡單的加密解密算法,可逆與不可逆 數據加密: 算法1:(不可逆) 將ASCII表中32~~126中的字符,加密后,顯示為128~~255的字符. 128~~255的字符會讓人看起來頭痛些。。。。。。安全. 當ch[?]的值為偶數時:ch[?]=255-ch[?]的個位*10-ch[?]的十位 當ch[?]的值為奇數時: ch[?]=128+ch[?]的個位*10+ch[?]的十位 當ch[?]的值為質數時:ch[?]=128+ch[?]的個位+ch[?]的十位 算法2:(可逆) 當ch[?]的值能被3整除時:ch[?]-=2,否則ch[?]-=3
上傳時間: 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.
標簽: findPreambles occurrence the preamble
上傳時間: 2013-12-23
上傳用戶:秦莞爾w
3rd Generation Partnership Project Technical Specification Group Radio Access Network Spatial channel model for Multiple Input Multiple Output [MIMO] simulations
標簽: Specification Partnership Generation Technical
上傳時間: 2014-01-11
上傳用戶:nanfeicui
在VB中把中文轉化成Unicode碼 首先介紹一下VB中的兩個函數:ChrW()和AscW().對于Chr()和Asc()函數大家一定很熟悉,對于ChrW()和AscW()可能會比較生疏一點. ChrW 函數返回包含 Unicode 的 String,若在不支持 Unicode 的平臺上,則其功能與 Chr 函數相同 AscW 函數返回 Unicode 字符代碼,若平臺不支持 Unicode,則與 Asc 函數功能相同。
上傳時間: 2017-05-08
上傳用戶:yangbo69