procedure senddata var i:integer commflg : Boolean begin commflg:=true for i:=1 to 8 do begin if not fcomm comml writecommdata(sendbutter,i) then begin Commflg=false break end end end (4) 接收數據 在編寫基于串口的計算機工業測控時,通常需要由下位機向PC機發送數據以使PC機了解系統的測試數據或下位機的運行狀態,并進而控制下位機的行為。利用Spcomm串口控件接收下位機發送的數據信息的示例代碼如下: //事件驅動方式接收數據程序 procedure TForm1.CommlReceiveData(Sender:Tobject Buffer:Pointer bufferLength:Word) var receivedata:array of byte begin sleep(100) //等待100ms,保證接收到所有數據 move(buffef ,receivedata,bufferlength) //將接收緩存區中的數據轉移到數組中 …… end (5) 關閉串口 在系統開發中,應注意在不使用串口時應及時關閉串口,釋放系統資源,否則可能會影響系統的其它應用。關閉串口的代碼如下: procedure TForm1.FormClose ( Sender TObj ect:var Action:TCIoseAction ) begin comml.StopComm end
資源簡介:procedure senddata var i:integer commflg : Boolean begin commflg:=true for i:=1 to 8 do begin if not fcomm comml writecommdata(sendbutter,i) then begin commflg=false break end end end (4) ...
上傳時間: 2014-01-26
上傳用戶:懶龍1988
資源簡介:He was the first one (I noticed of) who coded a decrypter for yC 1.2 :)...good job. Also if it hasn t full support yet >:-) So as I promised...here s the source code. I hope it helps someone.
上傳時間: 2015-05-03
上傳用戶:498732662
資源簡介:XAPP520將符合2.5V和3.3V I/O標準的7系列FPGA高性能I/O Bank進行連接? The I/Os in Xilinx? 7 series FPGAs are classified as either high range (HR) or high performance (HP) banks. HR I/O banks can be operated from 1.2V to 3.3V, whereas HP I/O...
上傳時間: 2013-11-19
上傳用戶:yyyyyyyyyy
資源簡介:XAPP520將符合2.5V和3.3V I/O標準的7系列FPGA高性能I/O Bank進行連接? The I/Os in Xilinx? 7 series FPGAs are classified as either high range (HR) or high performance (HP) banks. HR I/O banks can be operated from 1.2V to 3.3V, whereas HP I/O...
上傳時間: 2013-11-06
上傳用戶:wentianyou
資源簡介:每對節點間最短路徑 Floyd-Warshall 算法 D[i,j]表示從i到j的最短距離; P[i,j]表示從i到j的最短路徑上j 的父節點
上傳時間: 2013-11-29
上傳用戶:來茴
資源簡介:good morning,my dear teachers,my dear professors.i am very glad to be here for your interview.my name is song yonghao,i am 22 years old .i come from luoyang,a very beautiful aicent city.my undergratuade period will be accomplished in changa...
上傳時間: 2015-05-24
上傳用戶:shus521
資源簡介:74hc_hct595是嵌入式開發中,芯片i/o口不夠用時,常用的擴展i/o口的所選芯片
上傳時間: 2015-09-15
上傳用戶:shus521
資源簡介:程序最優存儲問題 « 問題描述: 設有n 個程序{1,2,…, n }要存放在長度為L的磁帶上。程序i存放在磁帶上的長度是i l ,
上傳時間: 2015-09-26
上傳用戶:xg262122
資源簡介:分析for i=E step E until E do i=E
上傳時間: 2013-12-03
上傳用戶:GHF
資源簡介:I/O Buffer Information Specification (IBIS) models for the AT91M40800 and the AT91F40816
上傳時間: 2016-01-03
上傳用戶:zjf3110
資源簡介:I/O Buffer Information Specification (IBIS) models for AT91SAM7SE512/256 in LQFP package with VDDIO at 1.8V.
上傳時間: 2014-01-01
上傳用戶:shinesyh
資源簡介:NorFlash bootloader(SPANSION_S71WS256ND0) for I.MX27(freescale).
上傳時間: 2013-12-20
上傳用戶:zyt
資源簡介:Nand Flash (SAMSUNG_K9K1G08U0B) boot loader for i.Mx31 (freescale).
上傳時間: 2013-12-24
上傳用戶:源弋弋
資源簡介:A example for I/O of USB interface in AVR single chip.
上傳時間: 2014-01-26
上傳用戶:h886166
資源簡介:Status CreateSMatrix(RLSMatrix &M) { // 創建稀疏矩陣M int i Triple T Status k printf("請輸入矩陣的行數,列數,非零元素數:") scanf("%d,%d,%d",&M.mu,&M.nu,&M.tu) M.data[0].i=0 // 為以下比較做準備 for(i=1 i<=M.tu i++) ...
上傳時間: 2013-12-22
上傳用戶:shanml
資源簡介:I/O Buffer Information Specification (IBIS) models for AT91SAM7X and AT91SAM7XC products.
上傳時間: 2016-04-03
上傳用戶:米卡
資源簡介:i think that is a good study for us,i hope we like it.thank you
上傳時間: 2013-12-21
上傳用戶:hn891122
資源簡介:This book code procedure according to the chapter arrangement, the 1st chapter of example under "1" the table of contents, the 2nd chapter of example under "2" the table of contents, to the order analogizes. Under corresponding table of ...
上傳時間: 2014-11-01
上傳用戶:希醬大魔王
資源簡介:I/O Buffer Information Specification (IBIS) models for AT91SAM7SE512/256 in LQFP pacakge with VDDIO at 3.3V.
上傳時間: 2013-12-24
上傳用戶:zhyiroy
資源簡介:求標準偏差 > function c=myfunction(x) > [m,n]=size(x) > t=0 > for i=1:numel(x) > t=t+x(i)*x(i) > end > c=sqrt(t/(m*n-1)) function c=myfunction(x) [m,n]=size(x) t=0 for i=1:m for j=1:n t=t+x(i,j)*x(i,j) end ...
上傳時間: 2014-01-15
上傳用戶:hongmo
資源簡介:求標準偏差 > function c=myfunction(x) > [m,n]=size(x) > t=0 > for i=1:numel(x) > t=t+x(i)*x(i) > end > c=sqrt(t/(m*n-1)) function c=myfunction(x) [m,n]=size(x) t=0 for i=1:m for j=1:n t=t+x(i,j)*x(i,j) end ...
上傳時間: 2013-12-26
上傳用戶:dreamboy36
資源簡介:求標準偏差 > function c=myfunction(x) > [m,n]=size(x) > t=0 > for i=1:numel(x) > t=t+x(i)*x(i) > end > c=sqrt(t/(m*n-1)) function c=myfunction(x) [m,n]=size(x) t=0 for i=1:m for j=1:n t=t+x(i,j)*x(i,j) end ...
上傳時間: 2016-06-28
上傳用戶:change0329
資源簡介:求標準偏差 > function c=myfunction(x) > [m,n]=size(x) > t=0 > for i=1:numel(x) > t=t+x(i)*x(i) > end > c=sqrt(t/(m*n-1)) function c=myfunction(x) [m,n]=size(x) t=0 for i=1:m for j=1:n t=t+x(i,j)*x(i,j) end ...
上傳時間: 2014-09-03
上傳用戶:jjj0202
資源簡介:單片機原理及應用 第1章單片機應用系統概述M、CS—51單片機的硬件結構 第4章單片機程序設計 常用I/O芯片接口技術及簡單的I/O接口擴展
上傳時間: 2014-12-21
上傳用戶:bibirnovis
資源簡介:printf(" 請輸入%d個課程的代表值(<%d個字符):\n" ,(*G).vexnum,MAX_NAME) for(i=0 i<(*G).vexnum ++i) /* 構造頂點向量 */ { scanf(" %s" ,(*G).vertices[i].data) (*G).vertices[i].firstarc=NULL } printf(" 請輸入...
上傳時間: 2016-08-15
上傳用戶:Avoid98
資源簡介:because I can not get the download rights, so I uoload this file.This is a wash program, include a caculation of prograss for me,
上傳時間: 2014-01-07
上傳用戶:懶龍1988
資源簡介:Good morning, dear teachers. I am very glad to be here for your interview. my name is xx.I am 21 years old. I come from Dafang, a small town of Guizhou province. My undergraduate period will be accomplished in East China Jiaotong University...
上傳時間: 2014-01-11
上傳用戶:釣鰲牧馬
資源簡介:if you want to it you can download and i m a student,this is a paper,I m wish it can help you.
上傳時間: 2014-01-16
上傳用戶:氣溫達上千萬的
資源簡介:void Knight(int i , int j) { // printf("%d %dn",i,j) if (board[i][j] != 0 || i < 0 || i >= Size || j < 0 || j >= Size ) { return } step++ board[i][j]=step if (step == Size*Size) { showboard() system("PAUSE") return ...
上傳時間: 2014-01-17
上傳用戶:cxl274287265
資源簡介:QNX ADS BSP code for i.MX27 chips
上傳時間: 2017-01-26
上傳用戶:wangchong