原本.net1.1都是采用justinIO.cs的,它調用的是winAPI,可能存在不同設備的兼容性問題。現在.net2直接在system.io.port下面有serialPort了,這樣可以直接用。 鑒于.net2和.netCF2對于threading有不同的用法,所以兩個版本都做了,分別是PC+.net2和wm5sp+.netcf2的。 由于smartphone的藍牙都是默認com6和com7的,所以如果這個程序大家想用作藍牙串行,在你們的桌面端藍牙配置的時候要注意把虛擬串口重新定義到com6。具體做法以IVT Bluesoleil為例子,裝好藍牙驅動程序以后,會在設備管理器里面多出幾個串行口;而IVT默認的串行口是com10/11,這樣就要把設備管理器com10/11的高級屬性里面的端口重新強制定義到com6/7,這樣就可以了。因為我做藍牙串行,所以程序代碼中都采用了COM6, 9600, 8, N, 1 的通信格式。 本論壇也有cpp的smartphone串行程序,大家可以搜索一下。那個也不錯,我調試的時候smartphone采用這個來調試的。
上傳時間: 2014-01-19
上傳用戶:moshushi0009
/*系統時鐘采用 Fosc=7.373 定時器方式1的定時時間 Time=(65536-THTL)*2/Fosc,默認5ms 定時器1工作在16位,用作系統時鐘 定時器0工作在16位,作為定時開始采樣用,定時范圍為0.1ms(0xfe8f)-15ms(0x27fe),默認為1ms=0xf19a,可以通過設置命令改變 串行口波特率由內部產生,11.059MHz->BRGR1:0=0x0050=115200Bps,0x00b0=57600Bps 7.373MHz->BRGR1:0=0x0030=115200Bps,0x0070=57600Bps
上傳時間: 2015-12-25
上傳用戶:問題問題
用8052寫的一個LED大屏幕顯示程序,可以通過串行口發送字符在屏上顯示
上傳時間: 2015-12-28
上傳用戶:cccole0605
單片機C語言學習好資料 前言 2 基礎知識:單片機編程基礎 2 第一節:單數碼管按鍵顯示 4 第二節:雙數碼管可調秒表 6 第三節:十字路口交通燈 6 第四節:數碼管驅動 7 第五節:鍵盤驅動 8 第六節:低頻頻率計 14 第七節:電子表 17 第八節:串行口應用 17
上傳時間: 2014-01-18
上傳用戶:gdgzhym
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
標簽: represented integers group items
上傳時間: 2016-01-17
上傳用戶:jeffery
南京沁恒電子的U盤文件讀寫模塊的實例程序,里面包含串并口的中斷和查詢,希望能對大家有用
上傳時間: 2016-01-18
上傳用戶:lifangyuan12
南京沁恒電子的u盤文件讀寫模塊實例程序,里面包含串并口中斷和查詢方式希望對大家有用
上傳時間: 2016-01-18
上傳用戶:LIKE
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
標簽: converts Toolbox complex logical
上傳時間: 2016-02-12
上傳用戶:a673761058
基于博創ARM3000的平臺上的幾個開發程序。 包含程序math.c以及其他的一些庫文件。整個文件完整,可進行編譯下載。 開發軟件是SDT: 2、串行口實驗
上傳時間: 2014-12-04
上傳用戶:eclipse
監控程序(Monitor)的主要功能是對應用系統硬件及底層軟件進行調試,也稱為Debug程序,是最基本的調試工具。MC9S12DG128的Flash有128K,RAM有8K,而監控程序源代碼占用不到3K FLASH,占用23字節RAM。這對用戶程序的空間影響并不大。異步串行口是要用來做與PC通訊服務的,監控程序可以用,應用程序當然也可以使用。
上傳時間: 2014-01-12
上傳用戶:皇族傳媒