Proteus仿真在虛擬示波器設(shè)計中的應(yīng)用
《中國測試》雜志
吳建平1, 吳姝瑤2, 劉 超1
(1. 成都理工大學(xué)核技術(shù)與自動化工程學(xué)院,四川省地學(xué)核技術(shù)重點實驗室,四川 成都 610059;
2. 成都凱天電子股份有限公司,四川 成都 610091)
摘 要:應(yīng)用Proteus仿真平臺實現(xiàn)虛擬示波器的設(shè)計,把波形發(fā)生器產(chǎn)生的波形信號作為信號源,通過A/D轉(zhuǎn)換器對輸入信號進行數(shù)據(jù)轉(zhuǎn)換后輸入到單片機,通過單片機數(shù)據(jù)處理后用虛擬串口把數(shù)據(jù)輸出到計算機,最后由VC軟件中的INGraph控件提取數(shù)據(jù)進行波形圖的繪制。經(jīng)仿真表明:該設(shè)計實現(xiàn)了虛擬示波器的功能,在實際應(yīng)用中可以降低設(shè)計成本,縮短開發(fā)周期,提高效率。
關(guān)鍵詞:Proteus軟件;A/D轉(zhuǎn)換;示波器;波形發(fā)生器
中圖分類號:TM935.3;TP391.9;TP274;TN606 文獻標(biāo)志碼:A 文章編號:1674-5124(2013)03-0079-05
Simulation of virtual oscilloscope based on Proteus software
WU Jian-ping1, WU Shu-yao2, LIU Chao1
(1. College of Nuclear Technology and Automation Engineering,Geology Nuclear Technology key
Laboratory of Sichuan Province,Chengdu University of Technology,Chengdu 610059,China;
2. Chengdu CAIC Electronics Co.,Ltd,Chengdu 610091,China)
Abstract: This paper introduced the design of the virtual oscilloscope simulated by the Proteus based on MCU technique. After ADC digitization, the triangular wave or square wave signals by the waveform generator is extracted via related algorithm, and output to computer through the virtual serial port. Finally drawing of waveform based on the digital data by the INGraph controls in VC software was achieved. By using Proteus, the simulation of the virtual oscilloscope and design of MCU systems can be realized with less design costs, less development cycles and high efficiency.
Key words: Proteus; ADC; oscilloscope; waveform generator