国产欧美精品一区二区,中文字幕专区在线亚洲,国产精品美女网站在线观看,艾秋果冻传媒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
  • 出版日期:
文章二維碼
南阳市| 仙居县| 上犹县| 蛟河市| 中江县| 静海县| 蓝山县| 体育| 沧源| 保山市| 洛浦县| 孝义市| 怀柔区| 白河县| 潼关县| 乡城县| 凤城市| 历史| 利津县| 溧水县| 河源市| 宽甸| 施甸县| 通海县| 怀化市| 邢台市| 兴安盟| 绥芬河市| 汨罗市| 塔河县| 图木舒克市| 子长县| 额尔古纳市| 永州市| 景泰县| 库尔勒市| 柳林县| 高阳县| 独山县| 高淳县| 天峨县|