计算机应用与软件
計算機應用與軟件
계산궤응용여연건
COMPUTER APPLICATIONS AND SOFTWARE
2014年
9期
317-321
,共5页
PROFIBUS-DP%数据链路层%应用层%任务调度%原语队列%状态机%共享缓存区
PROFIBUS-DP%數據鏈路層%應用層%任務調度%原語隊列%狀態機%共享緩存區
PROFIBUS-DP%수거련로층%응용층%임무조도%원어대렬%상태궤%공향완존구
PROFIBUS-DP DDL%Data link layer%Application layer%Task scheduling%Primitives queue%State machine%Shared buffer
通过对IEC61158标准中的PROFIBUS-DP协议的研究分析,基于uCOS-II操作系统和STM32F107VC6芯片,用软件的方式严格按照协议标准实现了PROFIBUS-DP一类主站的数据链路层和应用层。软件主站采用共享缓存区的方式传递状态机原语,通过调度任务对各个模块实行统一调度管理,通过DMA方式发送和接收报文。结果表明,该主站实现了PROFIBU-DP一类主站的功能,总线系统的实时性达到时间指标。为将来设计开发PROFIBUS-DP一类主站的通信芯片提供了理论指导和逻辑验证。
通過對IEC61158標準中的PROFIBUS-DP協議的研究分析,基于uCOS-II操作繫統和STM32F107VC6芯片,用軟件的方式嚴格按照協議標準實現瞭PROFIBUS-DP一類主站的數據鏈路層和應用層。軟件主站採用共享緩存區的方式傳遞狀態機原語,通過調度任務對各箇模塊實行統一調度管理,通過DMA方式髮送和接收報文。結果錶明,該主站實現瞭PROFIBU-DP一類主站的功能,總線繫統的實時性達到時間指標。為將來設計開髮PROFIBUS-DP一類主站的通信芯片提供瞭理論指導和邏輯驗證。
통과대IEC61158표준중적PROFIBUS-DP협의적연구분석,기우uCOS-II조작계통화STM32F107VC6심편,용연건적방식엄격안조협의표준실현료PROFIBUS-DP일류주참적수거련로층화응용층。연건주참채용공향완존구적방식전체상태궤원어,통과조도임무대각개모괴실행통일조도관리,통과DMA방식발송화접수보문。결과표명,해주참실현료PROFIBU-DP일류주참적공능,총선계통적실시성체도시간지표。위장래설계개발PROFIBUS-DP일류주참적통신심편제공료이론지도화라집험증。
Based on the study and analysis of PROFIBUS-DP protocol in IEC61158 standard,we implement the data link layer andapplication layer of the master class one of PROFIBUS-DP in software approach strictly according to the standard of the protocol based onuCOS-II operating system and STM32F107VC6 MCU.The software master adopts the mode of shared buffer to transfer the primitives of statemachines,implements uniform scheduling and management of each module through scheduling tasks,and sends and receives the texts usingDMA mode.Implementation result indicates that the master achieves the function of master class one of PROFIBUS-DP,the real-timeproperty of fieldbus reaches the time index.The above provides the theoretical guidance and logic validation for the design and development ofcommunication chip of master class one of PROFIBUS-DP in the future.