国产欧美精品一区二区,中文字幕专区在线亚洲,国产精品美女网站在线观看,艾秋果冻传媒2021精品,在线免费一区二区,久久久久久青草大香综合精品,日韩美aaa特级毛片,欧美成人精品午夜免费影视

基于STM32的多串口并行傳輸系統設計
DOI:
CSTR:
作者:
作者單位:

武漢紡織大學(xué) 數學(xué)與計算機學(xué)院,湖北大學(xué)

作者簡(jiǎn)介:

通訊作者:

中圖分類(lèi)號:

基金項目:

湖北省自然科學(xué)(2015CFB721)


Design of Multi-channel UART Parallel Transmission System based on STM32
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 圖/表
  • |
  • 訪(fǎng)問(wèn)統計
  • |
  • 參考文獻
  • |
  • 相似文獻
  • |
  • 引證文獻
  • |
  • 資源附件
  • |
  • 文章評論
    摘要:

    針對工程控制系統中多串口并發(fā)通信的需求,設計了一種以STM32F429為核心的多串口并行傳輸系統。該系統充分利用了處理器內部的8個(gè)串口和網(wǎng)絡(luò )接口資源,串口利用DMA方式在緩存中循環(huán)接收,解決了并發(fā)接收時(shí)查詢(xún)或中斷接收方式可能導致的數據幀丟失以及處理器時(shí)間占用較多的問(wèn)題;針對不同的協(xié)議幀,采用了超時(shí)判斷的方式,避免了一旦串口接收數據長(cháng)度不正確后導致的后續接收問(wèn)題;網(wǎng)絡(luò )傳輸采用了lwIP協(xié)議棧。該設計實(shí)現了同時(shí)采集7路讀卡信息,并通過(guò)1路串口或網(wǎng)絡(luò )向上位機上傳數據的功能,測試表明多串口并發(fā)傳輸無(wú)數據幀丟失現象。該系統無(wú)外接串口擴充電路,減小了整個(gè)電路的體積,提高了系統的可靠性和穩定性。

    Abstract:

    In order to meet the needs of multi-channel UART parallel communication in engineering application, this paper designed a multi-channel UART parallel transmission system based on STM32F429. The system makes full use of the eight UARTs and network interfaces inside the processor, DMA is used to receive UART data in a circular buffer, and this solves the problem of data frame loss and processor occupation time caused by querying or interrupting mode in concurrent reception. For different protocol frames, the method of timeout judgement is adopted to avoid subsequent reception problems once the UART receives incorrect data length. The lwIP protocol stack is used for network transmission. The design realizes the simultaneous acquisition seven channels card number and uploads data to the host computer through an UART or a network port, the test shows that there is no data frame loss during the transmission of the system. The system has no external UART circuit, which reduces the volume of the whole circuit and improves the reliability and stability of the system.

    參考文獻
    相似文獻
    引證文獻
引用本文

陳旭輝,楊紅云.基于STM32的多串口并行傳輸系統設計計算機測量與控制[J].,2019,27(1):166-170.

復制
分享
文章指標
  • 點(diǎn)擊次數:
  • 下載次數:
  • HTML閱讀次數:
  • 引用次數:
歷史
  • 收稿日期:2018-06-09
  • 最后修改日期:2018-07-04
  • 錄用日期:2018-07-04
  • 在線(xiàn)發(fā)布日期: 2019-01-25
  • 出版日期:
文章二維碼
五大连池市| 清流县| 丰县| 洛浦县| 林州市| 五峰| 涿州市| 柳江县| 高平市| 门源| 阿拉善盟| 独山县| 若尔盖县| 昆山市| 嘉定区| 扶余县| 连城县| 莆田市| 东阳市| 海晏县| 嘉禾县| 安吉县| 临沧市| 静乐县| 广饶县| 泌阳县| 万源市| 祁门县| 富锦市| 阳曲县| 宁河县| 聂拉木县| 永仁县| 昆山市| 旬阳县| 宁都县| 桃江县| 云龙县| 进贤县| 海兴县| 宝鸡市|