摘 要:Proteus动态仿真性能依赖于动态仿真模型。但有些实用的动态元器件,库中没有相应的仿真模型,必须自己创建。通过创建拨码盘动态仿真模型,论述在Proteus中创建单片机交互式动态器件仿真模型的技术。拨码盘仿真运行状态与实际元器件表现一致,验证了所建模型的正确性。展示了Proteus 动态模型在单片机应用系统的实时交互式仿真中的作用。
关键词:Proteus;动态仿真模型;建模;单片机
中图分类号:TP368.1文献标识码:A
文章编号:1004-373X(2009)12-152-04
Technology ofDynamic Simulation Model for Proteus
ZHOU Lingbin,ZHANG Jingwu
(Shaoxing TOP Vocational Institute of Information and Technology,Shaoxing,312000,China)
Abstract:Dynamic simulation performance of Proteus depends on the dynamic simulation model.Creating dynamic simulation model for some practical dynamic components where has no corresponding simulation model in the library,modeling techniques of dynamic and interactive components simulation model in the environment of Proteus by the example of creating code wheel model are discussed.Its simulation states are in conformity with the actual performance,which verified the model is correct.It shows the effect of dynamic model in real-time interactive simulation of single chip computer application system.
Keywords:Proteus;dynamic simulation model;modeling;single chip computer
0 引 言
Proteus是英国Labcenter electronics公司研发的EDA。其不仅是模拟电路、数字电路、模/数混合电路的设计与仿真平台;更是目前世界上最先进、最完整的多种型号单片机(微控制器)应用系统的设计与仿真平台。Proteus拥有类型多、数量大的元器件仿真模型;它们是Proteus设计与实现实时、交互、动态仿真的基础[1-6]。一般可将仿真模型分为:原理图模型、动态模型、SPICE模型、VSM模型。
动态模型是具有动画效果的真实器件的仿真模型。如LED发光管、按键开关等。是Proteus的特色。但有些动态模型在库中没有,这就要求自己创建动态模型。
在此以“BCD拨码盘”为例详细叙述动态器件仿真模型的制作技术(这里采用Proteus 7.2SP6正版)。
1 Proteus建模流程
创建不同类型的元器件仿真模型,其流程大致一样。如图1所示。
图1 建模流程
若无需设计元器件封装,则跳过与设计封装有关的步骤;若无需设计模型内电路,则可跳过与内电路设计有关的步骤。
2 创建BCD拨码盘模型
BCD拨码盘[1]是将10进制数转换为BCD码的键控器件,可与单片机直接连接,提供简便的0~9的数据输入功能,是实际应用较广的电子器件。……