Professional Documents
Culture Documents
Modeling and Simulation of Proteus Electrical Simulation Model CT1628
Modeling and Simulation of Proteus Electrical Simulation Model CT1628
ISBN: 978-1-60595-439-4
Abstract. A Proteus electrical simulation model for CT1628 is implemented based on the study of
Proteus C++ programming interface—DLL. The test results show that the CT1628 simulation
model can identify the key and can control the LED digital tube, providing a more convenient and
intuitive platform for the functional test of the chip, which is beneficial to the software and
hardware co-design of the chip development.
Introduction
With the rapid development of computer technology, as a new kind of simulation system, Proteus
has been applied to the electronic system design process, not only provides a complete virtual
laboratory for single-chip microcomputer teaching and research, and completely change the
traditional design scheme: first the test, then improvement and then validation, shorten the research
and development process of electronic systems products, save the development cost, promote the
improvement of the electronic system design.
However, in the process of Proteus simulation, there will be a problem: practical device and
Proteus simulation model mismatch and even some components without the simulation model, there
are two ways to solve the problem: one is to use the development board and the emulator, to
complete the project development by means of adding hardware circuit; The other is to design
corresponding simulation model according to the properties of the device. This paper, by using the
second method to create a CT1628 Proteus electrical simulation model based on dynamic link
library.
3
void runctrl (RUNMODES mode);// The simulation operation mode control, at the beginning
of each frame in the interactive simulation is invoked
void actuate (REALTIME time, ACTIVESTATE newstate);// Interactive simulation when the
user changes the buttons and other state is invoked
bool indicate (REALTIME time, ACTIVEDATA *data);
// Interactive simulation at the end of each frame is called, passing ACTIVEDATA
communication data and drawing model, thus invoking the animate () for drawing
void simulate (ABSTIME time, DSIMMODES mode);// called when pin state changes, mainly
used for processing the data input and output
void callback (ABSTIME time, EVENTID eventid);// Through setcallback () sets the callback
function called at any given time
Because the CT1628 has only electrical characteristics, it does not have to interact with the user,
so the member function, runctrl(RUNMODES mode), actuate (REALTIME time, ACTIVESTATE
newstate), indicate (REALTIME time, ACTIVEDATA *data) three bodies are empty; function
isdigital (CHAR *pinname), return 1; In setup (IINSTANCE *inst, IDSIMCKT *dsim) function,
associate the digital pin with the member variables and set the pin status; function simulate
(ABSTIME time, DSIMMODES mode) mainly used for data input and output; function callback
(ABSTIME time, EVENTID eventid) to implement repeating events such as clock generators.
The dynamic link library file is called in the process of Proteus simulation, driver CT1628 work
according to the read and write timing of system. In order to correct the electrical model and
mapping model verification components, need to build a circuit simulation test.
Conclusions
Based on the commonly used MCU and its peripheral circuit simulation application in proteus, aim
at the problem of the existing simulation models in practical application and the actual device does
not match, this paper proposed a design scheme of Proteus VSM simulation model based on
high-level languages. By writing the driver, the data of Graphical model completes the simulation
of the real time exchange, code written by Keil C software, build a testing system, verify the
availability of VSM model. The actual application results show that the method developed by VSM
module practicality is strong, good generality, VSM model design is ideal, and largely reduce the
development period for hardware dependent.
References
[1] Lab Center Electronics Company. Proteus VSM Development Kit 5.1[K]. 2003.
[2] Yang Hong, Zhou Xiao-fang, Yang Qing-qin. C++ Modeling and Simulation of Processor
Based on Proteus, J. Computer Engineering. 37(2011) 279-281.
[3] Huai Wen-jun, Ren She-yi, Xue Yan-xia. Design and Implementation of a DLL-based Proteus
VSM Simulation Model, J. Journal of Suzhou Vocational University. 20(2009) 22-25.
[4] Information on http://www.docin.com/p-693073290.html.
[5] Ding Ming-liang, Tang Qian-hui. 51 MCU application design and simulation based on Keil C
and PROTEUS, first ed., Beihang University press, Beijing, 2009.