CN105913739A - Single-chip microcomputer modularization experiment training system and method based on virtual simulation platform - Google Patents

Single-chip microcomputer modularization experiment training system and method based on virtual simulation platform Download PDF

Info

Publication number
CN105913739A
CN105913739A CN201610428222.2A CN201610428222A CN105913739A CN 105913739 A CN105913739 A CN 105913739A CN 201610428222 A CN201610428222 A CN 201610428222A CN 105913739 A CN105913739 A CN 105913739A
Authority
CN
China
Prior art keywords
module
experiment
circuit
toggle switch
virtual
Prior art date
Application number
CN201610428222.2A
Other languages
Chinese (zh)
Inventor
周茂霞
Original Assignee
山东师范大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 山东师范大学 filed Critical 山东师范大学
Priority to CN201610428222.2A priority Critical patent/CN105913739A/en
Publication of CN105913739A publication Critical patent/CN105913739A/en

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B23/00Models for scientific, medical, or mathematical purposes, e.g. full-sized devices for demonstration purposes
    • G09B23/06Models for scientific, medical, or mathematical purposes, e.g. full-sized devices for demonstration purposes for physics
    • G09B23/18Models for scientific, medical, or mathematical purposes, e.g. full-sized devices for demonstration purposes for physics for electricity or magnetism
    • G09B23/183Models for scientific, medical, or mathematical purposes, e.g. full-sized devices for demonstration purposes for physics for electricity or magnetism for circuits

Abstract

The invention discloses a single-chip microcomputer modularization experiment training system and method based on a virtual simulation platform. The system comprises a virtual simulation part and an experiment box training part. The virtual simulation part comprises a plurality of virtual simulation experiment circuits matched with each experiment module of an experiment box; and integral virtual simulation experiment circuits formed by combination of different experiment modules and matched with the experiment box. The experiment box training part comprises an IC locking socket, and a single-chip microcomputer minimum system module, a nixie tube display module, an LED indication lamp, a power supply module, a USB downloading module, a serial port downloading module, a data storage module, a data conversion module, a clock module and an autonomous exploitation module are respectively arranged on the IC locking socket. The single-chip microcomputer modularization experiment training system and method have the advantages that virtual simulation of software is utilized, there is no need to repeatedly download a debugging program on a practical hardware circuit, the time is saved, the loss of the equipment is avoided, and the service lifetime of the equipment is prolonged.

Description

One-chip machine modular experiment training system based on virtual emulation platform and method
Technical field
The present invention relates to the experimental learning systems technology field that the virtual emulation of single-chip learning use combines with experimental real-training, especially It relates to a kind of one-chip machine modular experiment training system combined with experimental box training platform based on virtual emulation platform and makes Use method.
Background technology
Single chip microcomputer is the course that a practicalness is the strongest, its abstract indigestion of involved theoretical knowledge.Course Learning target be, by theory study, experimental implementation, may finally reach autonomous Design research and development.
At present, on the one hand, during theory of learning, abstract theory study content is difficult to motivate students' interest in learning; On the other hand, this course without experiment and further design operation, is the most just unable to reach the study of offering of this course Purpose.Therefore single chip microcomputer course theory study, experimental teaching, autonomous Design exploitation link also must adjust with more Newly.Being found by teaching for many years and research, each learning link of current colleges and universities single chip madine there is also deficiency, it is impossible to reaches out If the final purpose of this course.It is primarily present problems with:
(1) experiment teaching effect is bad.The confirmatory reality that current SCM Experimentation Teaching is carried out mainly by experimental box Testing project, the method for employing is usually: student uses Serial Port Line that experimental box is connected with PC, after proving program is finished writing, Click on button and download program is seen result to experimental box.Most student, does not knows that the principle downloaded is assorted in this process , by the circuit which is concrete, which concrete chip pin download program to single-chip microcomputer;Verified reality is not known yet What the circuit tested is.Owing to not having experimental circuit the most intuitively, being at a loss during coding, student can not step autonomous Design The first step, does not the most just reach the training objective of course.
(2) existing singlechip experimental box experimental project is fixed, and abecedarian can only carry out the checking of experimental project, it is difficult to for work Cheng Shixun, carry out novelty integrated project exploitation, do not reach preferable learning effect.
Summary of the invention
The invention aims to solve an above-mentioned difficult problem, it is provided that a kind of one-chip machine modular based on virtual emulation platform is tested Experience system and method.This system includes virtual emulation platform and experimental box training platform two parts, and virtual emulation platform includes: Overall virtual emulation circuit completely identical in structure with experiment box circuit, and several standalone module experimental project virtual emulation electricity Road;Experimental box training platform uses modularized design, and each module can be independently operated, to combine by toggle switch and make With;Each module is equipped with corresponding virtual emulation circuit diagram, and user, when using the operation of experimental box training platform, can first be used Virtual emulation circuit, the experimental project that emulation will be to be carried out on experimental box, pilot scale study program, it is familiar with side circuit.
For achieving the above object, the concrete scheme of the present invention is as follows:
A kind of one-chip machine modular experiment training system based on virtual emulation platform, including: virtual emulation part and experimental box are real Instruction part;
Described virtual emulation part includes: several independent Virtual Simulative Experiment circuit that experiment module each with experimental box matches; Overall Virtual Simulative Experiment circuit with the different experiments block combiner that experimental box matches;
Virtual Simulative Experiment is carried out by described independent Virtual Simulative Experiment circuit or overall Virtual Simulative Experiment circuit;Or Build required Virtual Simulative Experiment circuit by each independent Virtual Simulative Experiment circuit and carry out Virtual Simulative Experiment;
Described experimental box real training part includes: IC locking socket, is respectively provided with single-chip minimum system on described IC locking socket Module, numeral method module, LED light module, power module, USB download module, serial ports download module, data are deposited Storage module, data conversion module, clock module and independent development module;Multiple double pricking with needle draw single-chip microcomputer through toggle switch All pins, described numeral method module, LED light module, power module, USB download module, serial ports download mould Block, data memory module, data conversion module and clock module are connected with single-chip microcomputer respective pins by toggle switch respectively;Right Each module is equipped with the state of toggle switch during circuit diagram and the module use of corresponding module;
Each I/O mouth of described single-chip minimum system module connects toggle switch respectively, corresponding by selecting toggle switch to draw I/O mouth line, by change toggle switch wiring strategy, it is achieved different block combiner;
Described independent development module is built the experimental circuit of autonomous Design, by selecting toggle switch, by described experimental circuit It is connected with the I/O mouth line of single-chip minimum system module so that described experimental circuit enables.
Further, also include: five line four phase step motor modules, four line bipolar stepping motor modules, RS-485 communicate mould Block, relay module, lattice module, matrix keyboard module, Independent keys module, buzzer module, 138 decoding circuit modules, Photosensitive module, heat-sensitive module, infrared module, temperature sensor module, LCD1602 module, TFT color screen module and traffic lights Module;Above-mentioned module is connected with single-chip minimum system module by toggle switch respectively;When each module enables, module refers to Show that lamp is bright.
Further, USB download module and the serial ports download module of described experimental box real training part is opened by 3 grades of dial-ups of 4 line respectively Close and be connected with the I/O mouth line of single-chip minimum system module, by selecting the on-state of 43 grades of toggle switch of line, realize USB respectively Downloading mode, serial ports downloading mode and normal use I/O mouth die formula.
Further, described numeral method module includes dynamic charactron display unit and static charactron display unit;Described Dynamically charactron display unit includes:
The input of latch is connected with the P1 mouth of single-chip minimum system module through toggle switch Sleds2P1, the outfan of latch Connect with the section phase selection of 7 segment display, be connected through toggle switch Sled and 8 LED lights simultaneously;Described 7 segment display Position choosing is connected with the P0 mouth of single-chip minimum system module through toggle switch SledbitP0;The Enable Pin of latch is through toggle switch SLE is connected with power module;
When toggle switch SLE, Sleds2P1 connect with SledbitP0, complete the use of 7 segment display;Toggle switch SLE, When Sleds2P1, Sled connect, complete the exercise of horse race lamp.
Further, described independent development module is by tetra-I/O mouth warps respectively of PO, P1, P2, P3 of single-chip minimum system module 48 toggle switch are drawn 4 groups of 8 holding wires and are connected on 4 groups of 8 double pricking with needle;There is provided autonomous in described independent development module The power supply of the experimental circuit of design and earth terminal.
Further, described independent development module has the some groups of identical row's seats of structure, and each row's seat has some horizontally-arranged bars, Each horizontally-arranged bar includes 5 row's bore, and the row's bore on each horizontally-arranged bar described is electrically being interconnected, some horizontally-arranged bars Between mutually isolated.
Further, when carrying out experimental real-training study, first pass through virtual emulation part and select or build Virtual Simulative Experiment circuit Carry out emulation experiment, after debugging successfully, in experimental box real training part, build side circuit according to Virtual Simulative Experiment circuit;Profit By emulation experiment drives program, side circuit is driven, confirmatory experiment effect;If not reaching intended simulated effect, Check that side circuit is the most consistent with Virtual Simulative Experiment circuit, check that component parameter used is the most accurate.
A kind of using method of one-chip machine modular experiment training system based on virtual emulation platform, including:
(1) select or build Virtual Simulative Experiment circuit by virtual emulation part, write experimental circuit driver, generate HEX file, carries out emulation experiment;
(2), after the success of Virtual Simulative Experiment circuit debugging, in experimental box real training part, reality is built according to Virtual Simulative Experiment circuit Border circuit;Determining the required I/O mouth connected of each experiment module, using toggle switch is that each experiment module distributes I/O Mouthful;
(3) by selecting the connection status of toggle switch, serial ports downloading mode or USB downloading mode are selected;Carry out experiment electricity Road driver is downloaded;
(4) toggle switch that fluctuates on experimental real-training platform makes corresponding experiment module be in enabled state;
(5) confirmatory experiment effect;If not reaching intended simulated effect, check that side circuit is the most electric with Virtual Simulative Experiment Road is consistent, and the most accurately and side circuit driver is the most accurate to check component parameter used.
Further, when carrying out autonomous Design test, determine the experiment module needed for experiment, need for the distribution of each experiment module I/O mouth to be connected;
For experiment module existing on experimental real-training platform, it is connected to corresponding I/O mouth by toggle switch, stirs toggle switch Above-mentioned module is enabled;
For the experiment module of autonomous Design, use respectively Du Pont's line by the power line of autonomous Design module and earth lead with independently open Power supply and the ground connection pricking with needle of sending out module connect, by simulation DOL Data Output Line in the middle of autonomous Design module by toggle switch with autonomous The I/O mouth line of development module connects;Stirring toggle switch makes above-mentioned I/O mouth be in connected state.
Beneficial effects of the present invention:
(1) before experimental box carries out standalone module experiment, virtual emulation platform is first used to recall virtual emulation circuit diagram, permissible See experimental circuit intuitively, write driver, virtual emulation realizes experiment effect.On PC the most directly That sees sees experimental circuit, facilitates writing of driver;Use the virtual emulation of software, it is not necessary on actual hardware circuit Repeatedly downloading debugging routine, saved the time, it is to avoid the loss of equipment, extension device uses the time.
(2) before carrying out Comprehensive Experiment, the first step, according to the functional effect set, use each reality that experimental box matches Test the virtual emulation circuit of block combiner, simple line and stir virtual toggle switch between respective fictional emulation module circuit, Write software program, simulate actual functional capability, then analyzed by it and improve, thus realize the optimization design of circuit.Second step, Realize on experimental box according to the circuit optimized.This process, saves the exploitation design time, visual and understandable.
(3) in experimental box training platform, use toggle switch, 1. avoid owing to conventional jumpers makes experimental box line mixed and disorderly, 2. The junction contacts avoiding wire jumper is bad, affects experiment effect.
(4) the single chip computer experiment experience system combined with experimental box training platform based on virtual emulation platform, each experiment module energy Enough it is independently operated, and can also change hardware combinations form by using different toggle switch line strategies;Reserved independent development Module, user can carry out engineering experimental exercising by independently building hardware circuit on the basis of existing experiment module, it is achieved from Main Making Innovation Experiments.
(5) it is that each experiment module is equipped with corresponding circuit structure diagram, calls needs when, it is possible to make user Being fully understood by the circuit structure of each module, in order to when being designed, appropriate design connects pin.
Accompanying drawing explanation
Fig. 1 is the platform basic framework figure of the present invention;
Fig. 2 is the single-chip minimum system nucleus module circuit diagram of the present invention;
Fig. 3 (a) is the serial ports download circuit figure of the present invention;
Fig. 3 (b) is the USB download circuit figure of the present invention;
Fig. 4 is the present invention 8 dynamic charactron display module circuit diagram;
Fig. 5 be the 32k of the present invention extend out data storage area module circuit diagram;
Fig. 6 is autonomous Design module diagram of the present invention.
Detailed description of the invention:
The present invention is described in detail below in conjunction with the accompanying drawings:
A kind of one-chip machine modular experiment training system based on virtual emulation platform, including: virtual emulation part and experimental box are real Instruction part;
Virtual emulation part includes: several independent Virtual Simulative Experiment circuit that experiment module each with experimental box matches;With The overall Virtual Simulative Experiment circuit of the different experiments block combiner that experimental box matches;By independent Virtual Simulative Experiment circuit Or overall Virtual Simulative Experiment circuit carries out Virtual Simulative Experiment;Or build institute by each independent Virtual Simulative Experiment circuit The Virtual Simulative Experiment circuit needed carries out Virtual Simulative Experiment.User, when using the operation of experimental box training platform, can first be used Virtual emulation circuit, in the CPU loading procedure of virtual emulation, the experimental project that emulation will be to be carried out on experimental box, debugging Experimental arrangement, understands side circuit principle.
Experimental box real training part is as it is shown in figure 1, include: IC locking socket, it is easy to change the single-chip microcomputer of different model, Duo Geshuan Line pricking with needle draws all pins of single-chip microcomputer through toggle switch;User independently builds circuit module, single-chip minimum system core Module, 5v power module, USB download module, serial ports download module, five line four phase step motor modules, four line bipolarity steps Enter motor module, RS-485 communication module, relay module, 16*16 lattice module, 4*4 matrix keyboard module, 8 independences Key-press module, buzzer module, 138 decoding circuit modules, 8 dynamic charactron display modules, 2 static digital tube modules, 32k extend out that data storage area module, AD/DA/ be photosensitive, heat-sensitive module, infrared module, temperature sensor module, real-time time Clock module, LCD1602 module, TFT color screen module, traffic lights module, 8 Digital sum pipe display module and external power modules, Modules, when selected use, all has LED light to indicate.
Above-mentioned module is connected with single-chip microcomputer respective pins by toggle switch respectively;Each module is equipped with corresponding module The state of toggle switch when circuit diagram and this module use.
Each I/O mouth of single-chip minimum system module connects toggle switch respectively, corresponding by selecting toggle switch to draw I/O mouth line, by changing the wiring strategy of toggle switch, it is achieved different block combiner;Independent development module is built autonomous The experimental circuit of design, by selecting toggle switch, is connected experimental circuit with the I/O mouth line of single-chip minimum system module, Described experimental circuit is enabled.
The single-chip minimum system nucleus module circuit diagram of the present invention.As shown in Figure 2.
This module include reset circuit, oscillating circuit, for increasing I/O driving force and the circuit that increases.Crystal oscillator the most directly welds On pcb board, crystal oscillator position welding crystal oscillator socket, can facilitate and change crystal oscillator as required;Reset circuit, can with electrification reset, Also can press reset key to reset;Each I/O all adds 10K pull-up resistor for increasing driving force.
Shown in the USB download module circuit of the present invention and serial ports download module circuit diagram such as Fig. 3 (a) and Fig. 3 (b).
USB download module, with from USB power taking, utilizes USB line to take+5v electricity from pc machine, filtered turns serial ports through USB again Chip CH340G exports and powers to single-chip microcomputer.USB turns RXD-U, TXD-U signal of serial port chip CH340G output even RXD-U, TXD-U end of 3 grade of 4 line toggle switch in map interlinking 3 (a), when selecting USB to download, toggle switch is dialled So far hold.In this module, self-locking button is the main switch of whole system.
The serial ports download module of the present invention uses MAX232A chip to add peripheral circuit, carries out CMOS level to Transistor-Transistor Logic level Converting, MAX232A is DIP-8, welds base, facilitate MAX232A chip to change on actual pcb board.
Can download with serial ports in the present invention, it is also possible to USB downloads, so using 3 grades of toggle switch of 4 line, 43 grades of lines are dialled It is that serial ports is downloaded that code switch is allocated to TXD-R and RXD-R end;43 grades of line toggle switch are allocated to TXD-U and RXD-U end and are Automatically download for USB;43 grades of line toggle switch middle gear are normal use I/O mouth.
8 dynamic charactrons of the present invention and 8 LED module circuit diagrams are as shown in Figure 4:
Latch inputs M74HC573B1R adds 10K pull down resistor, is connected through toggle switch Sleds2P1 and P1 mouth, defeated Go out the section phase selection of end and 7 segment display even, be connected through toggle switch and 8 LED simultaneously;8 line footpath dial-ups of P0 mouth are opened Close the position phase selection of SledbitP0 and 7 segment display even;Latch M74HC573B1R Enable Pin is through toggle switch SLE Being connected with power supply, when connecting Enable Pin, module indicating lamp is bright.
This module selects different toggle switch combinations can complete different experiments, and SLE, Sleds2P1, SledbitP0 combination can Complete the use of 7 segment display;SLE, Sleds2P1, Sled combination can complete the exercise of horse race lamp.
Fig. 5 be the 4k of the present invention extend out data storage area and Parallel I/O Interface expansion module circuit diagram.
Internal only 128B data RAM of MCS-51 single-chip microcomputer, when needing more RAM in application, can only expand in outside Exhibition.Experimental real-training platform of the present invention has extended out the RAM of 4K, have the I/O of 48 parallel-by-bits inside MCS-51 single-chip microcomputer Mouthful, after extension external memory storage, 6 of only P1 mouth and P3 mouth can use, therefore must expansion I/O interface.This platform is in engineering As its lead-in wire of expansion I/O mouth need to be used can to draw respectively from pricking with needle BUSA1, BUA2, BUSC, BUSAD in real training Address wire, control line, data wire.External data address ram scope is 0000H----0FFFH, and I/O address is 1000H-FFFFH In the range of.This module is when exented memory and I/O, and by program selecting, the enable of 74LS373 is by address latch signal ALE Control.In the case of not using extension, the use of other modules will not allow this module enable, so this module is without with dial-up Switch.
The power module of experimental real-training platform of the present invention can provide+5V ,-5V ,+12V ,-12V ,+3.3V ,-3.3V, 6 kinds of electricity Pressure, this experimental real-training platform is powered for+5V, can select power supply according to actual needs, often at user in time taking expanded circuit Plant filtered rear welding pricking with needle on power supply the most outwards to power.Experimental real-training platform also can be powered by 3.3V, it is only necessary to 2 grades of 3 line Toggle switch is allocated to 3.3V end.
All modules can independently use basic experiment, it is also possible to has comprehensively used innovative design to test.Single-chip microcomputer is controlled Module a lot, it is impossible to can relate on a brassboard.User and engineering for there being certain single-chip microcomputer basis are real Instruction offers the requirement of innovative experiment design, and the present invention designs independent development module, independently builds circuit, Binding experiment for user The existing resource of training platform, carries out innovative design.
Independent development modular circuit as shown in Figure 6, this module tetra-I/O mouths of PO, P1, P2, P3 all through 48 Toggle switch leads on four double pricking with needle.This module provides builds 6 kinds of power supplys required for circuit and earth terminal.This mould Block has added the P0 of pull-up resistor, P1, P2, P34 group I/O mouth line through toggle switch from nucleus module extraction, is respectively led into 4 groups of 8*2 Pricking with needle, be provided from organize module time use.Pricking with needle spacing is pin-pitch 2.5mm of the direct insertion chip of standard.This module also carries For the pricking with needle of 6 groups of 3*2, offer+5V ,-5v ,+12v ,-12V respectively, and earth point position.This module provides the district of 13cm*11cm Territory, such as figure: there is row's seat that 5 groups of functional structures are identical in this region, and often the distance between group is 2.54mm*3.Inside each group, 5 row's seats in each horizontally-arranged bar are electrically being interconnected, mutually isolated between horizontally-arranged bar.Each row's bore away from for 2.54mm.The chip that this design facilitates pin-pitch to be the single-row of 2.54mm or dual inline type is inserted directly into use.
Below the using method of one-chip machine modular experiment training system based on virtual emulation platform is described below:
1. independent experiment project replication experiment using method step.
1. on virtual emulation platform, transfer the artificial circuit figure of this module, determine the required emulation I/O connected of experiment module Mouthful, using virtual electronic device toggle switch is experiment module distribution emulation I/O mouth, has configured virtual emulation circuit diagram;
2. write pilot scale study driver, generate HEX file, to the CPU loading procedure of virtual emulation;
3. observation experiment result, is not reaching to virtual experimental effect, returns to step 2., reaches experiment effect and carries out next step;
4. configuration experimental box training platform: the virtual emulation circuit diagram that comparison has configured, stirs toggle switch and has configured experimental box Experimental real-training project connects;
5. the connection status by selecting toggle switch selects serial ports downloading mode or USB downloading mode, controls download program and arrives Experimental box;
6. see whether to reach experiment effect.Such as fall flat, return to step and 4. check;Until gedanken experiment occurs Effect.
7., after having tested, arrange experimental box experimental real-training platform, disconnect all of toggle switch.
It should be noted that during experimental real-training, it is to avoid select to use two ports of RXD/P3.0TXD/P3.1, because The two mouth is used in download.As cannot be avoided, when downloading, at the module RXD/P3.0TXD/P3.1 mouth that can use In non-enabled state, download program completes, then the RXD/P3.0TXD/P3.1 mouth of this module is in enabled state.
2. use existing circuit module to carry out comprehensive, novelty pilot project using method step.Native system can use several mould Block is used in combination, and develops comprehensive experiment.Citing: use DS18B20 module, the display module of LCD, Keysheet module, Sound module.Comprehensive Experiment, LCD can show the real time temperature of DS18B20, keyboard can set a temperature upper limit or Lower limit, when real time temperature exceedes set point, it is possible to use reporting to the police or prompt tone occurs in sound module.
1., on virtual emulation platform, transfer overall virtual emulation circuit completely identical in structure with experiment box circuit, determine comprehensive Experiment module needed for Making Innovation Experiments, uses virtual electronic element toggle switch to select the emulation module used, and configuration is good virtual Artificial circuit figure;
2. coding (such as keil, IAR) on the software that third party provides, generates HEX file, to the CPU of virtual emulation Loading procedure;
3. observation experiment result, is not reaching to virtual experimental effect, returns to step 1., and reexamining is hardware configuration issues, also It is that program is asked;Reach experiment effect and carry out next step;
4. configuration experimental box training platform: the virtual emulation circuit diagram that comparison has configured, distributes LCD1602 on experimental real-training platform The I/O mouth controlling end, DS18B20, buzzer selective be P2 mouth, therefore, utilize toggle switch to divide to LCD1602 Join P25, P26, P27;DS18B20 is assigned as P20;Buzzer is assigned as P21;The 8 data ports of LCD1602 are used Toggle switch P0 mouth, matrix keyboard selects P1 mouth.Each module is made to be in enabled state.
5. the connection status by selecting toggle switch selects serial ports downloading mode or USB downloading mode, controls download program and arrives Experimental box;
6. see whether to reach experiment effect.Such as fall flat, return to step and 4. check;If at virtual emulation platform On do not reach ideal effect, then program is wrong, returns to step and 2. revises program, until ideal effect occurs in virtual emulation.
7., after having tested, arrange experimental box experimental real-training platform, disconnect all of toggle switch.
3. use independent development module, build the using method step of the experimental project that native system does not has.
Virtual Simulative Experiment platform is an open platform, is easy to the experiment module that the system of building does not has on this platform.
1., on virtual emulation platform, experimental project virtual emulation circuit diagram is built,
2. write pilot scale study driver, generate HEX file, to the CPU loading procedure of virtual emulation;
3. observation experiment result, is not reaching to virtual experimental effect, returns to step 2., and reexamining is hardware configuration issues, Or procedural problem, reaches experiment effect and carries out next step;
4. on experimental box training platform, build the experimental project circuit diagram of reality;
5. the connection status by selecting toggle switch selects serial ports downloading mode or USB downloading mode, controls download program To experimental box;
6. see whether to reach experiment effect.Such as fall flat, return to step and 3. check;Until ideal effect occurs Really.
4. using independent development module, the module that increasing experimental system does not has offers innovative project.
1., on virtual emulation platform, transfer overall virtual emulation circuit completely identical in structure with experiment box circuit, determine and independently open The existing module that the project of sending out is to be used, and need the module set up;
2. the module that autonomous Design is set up on virtual emulation platform;
3. use toggle switch to select the module used, configure virtual emulation circuit diagram;
4. write pilot scale study driver, generate HEX file, to the CPU loading procedure of virtual emulation;
Observation experiment result, is not reaching to virtual experimental effect, returns to step 2., and reexamining is hardware configuration issues, or Program procedural problem, reaches experiment effect and carries out next step;
5. configuration experimental box training platform: the virtual emulation circuit diagram that comparison has configured, stirs toggle switch and has configured experimental box Existing module, builds the module set up in the module of independent development;
6. the connection status by selecting toggle switch selects serial ports downloading mode or USB downloading mode;
7. download program is controlled to experimental box;
8. see whether to reach experiment effect.Such as fall flat, return to step and 5. check;Until ideal effect occurs.
Below by specific embodiment, platform is liked that using method illustrates.
1. independently building module by user can be with complete independently one experiment.
Inserting 8 light emitting diodes, insert 8 440 ohm of current-limiting resistances, current-limiting resistance uses another one I/O mouth of termination of Du Pont's line, Light emitting diode common end grounding, by standalone module operation instruction method, can complete the experiment of horse race lamp.
2. the resource on Binding experiment case real teaching plate, adds that the circuit built in this module completes the real training task of innovation.
It is exemplified below, uses infrared distance measurement module, measure testee, use existing resource seven segment code LED on experimental real-training plate Display, the distance with sensor of display testee, when the distance of testee with sensor is less than setting value alarm.
Experimental real-training platform has shown and sound module.Infrared distance measurement module need to be connected in the module of user autonomous Design. Display module circuit diagram after deliberation, display module can use P0, P1 mouth through toggle switch, stirs the enable switch of this module, makes to show Show that module is in enabled state.Sound module selects any one mouth line of P2 mouth through toggle switch, as selected P21;Infrared distance measurement Module has 3 lines, a ground wire, and a power line uses Du Pont's line to be connected to user respectively and independently builds+the 5v of module region With on GND wiring pricking with needle.On the P22 of the row-needle receptacle that middle simulation DOL Data Output Line uses Du Pont's line to be connected to this module, stir Toggle switch makes P22 be in connected state.
Other steps press the experimental procedure of standalone module operation instruction method, can complete the experiment of this experimental real-training.
In this example, if the single-chip microcomputer used does not has integrated AD conversion module.Analysis this experimental real-training platform can be transferred provide A/D change-over circuit figure, the analog output of infrared distance measurement module is connect an analog input end of this module.
Although the detailed description of the invention of the present invention is described by the above-mentioned accompanying drawing that combines, but not limit to scope System, one of ordinary skill in the art should be understood that on the basis of technical scheme, and those skilled in the art need not pay Go out various amendments or deformation that creative work can make still within protection scope of the present invention.

Claims (9)

1. an one-chip machine modular experiment training system based on virtual emulation platform, is characterized in that, including: virtual emulation portion Divide and experimental box real training part;
Described virtual emulation part includes: several independent Virtual Simulative Experiment circuit that experiment module each with experimental box matches; Overall Virtual Simulative Experiment circuit with the different experiments block combiner that experimental box matches;
Virtual Simulative Experiment is carried out by described independent Virtual Simulative Experiment circuit or overall Virtual Simulative Experiment circuit;Or Build required Virtual Simulative Experiment circuit by each independent Virtual Simulative Experiment circuit and carry out Virtual Simulative Experiment;
Described experimental box real training part includes: IC locking socket, is respectively provided with single-chip minimum system on described IC locking socket Module, numeral method module, LED light module, power module, USB download module, serial ports download module, data are deposited Storage module, data conversion module, clock module and independent development module;Multiple double pricking with needle draw single-chip microcomputer through toggle switch All pins, described numeral method module, LED light module, power module, USB download module, serial ports download mould Block, data memory module, data conversion module and clock module are connected with single-chip microcomputer respective pins by toggle switch respectively;Right Each module is equipped with the state of toggle switch during circuit diagram and the module use of corresponding module;
Each I/O mouth of described single-chip minimum system module connects toggle switch respectively, corresponding by selecting toggle switch to draw I/O mouth line, by change toggle switch wiring strategy, it is achieved different block combiner;
Described independent development module is built the experimental circuit of autonomous Design, by selecting toggle switch, by described experimental circuit It is connected with the I/O mouth line of single-chip minimum system module so that described experimental circuit enables.
A kind of one-chip machine modular experiment training system based on virtual emulation platform, is characterized in that, Also include: five line four phase step motor modules, four line bipolar stepping motor modules, RS-485 communication module, relay module, Lattice module, matrix keyboard module, Independent keys module, buzzer module, 138 decoding circuit modules, photosensitive module, temperature-sensitive Module, infrared module, temperature sensor module, LCD1602 module, TFT color screen module and traffic lights module;Above-mentioned module It is connected with single-chip minimum system module by toggle switch respectively;When each module enables, module indicating lamp is bright.
A kind of one-chip machine modular experiment training system based on virtual emulation platform, is characterized in that, The USB download module of described experimental box real training part and serial ports download module are minimum with single-chip microcomputer by 3 grades of toggle switch of 4 line respectively The I/O mouth line of system module connects, and by selecting the on-state of 43 grades of toggle switch of line, realizes USB downloading mode, string respectively Mouth downloading mode and normal use I/O mouth die formula.
A kind of one-chip machine modular experiment training system based on virtual emulation platform, is characterized in that, Described numeral method module includes dynamic charactron display unit and static charactron display unit;Described dynamic numeral method Unit includes:
The input of latch is connected with the P1 mouth of single-chip minimum system module through toggle switch Sleds2P1, the outfan of latch Connect with the section phase selection of 7 segment display, be connected through toggle switch Sled and 8 LED lights simultaneously;Described 7 segment display Position choosing is connected with the P0 mouth of single-chip minimum system module through toggle switch SledbitP0;The Enable Pin of latch is through toggle switch SLE is connected with power module;
When toggle switch SLE, Sleds2P1 connect with SledbitP0, complete the use of 7 segment display;Toggle switch SLE, When Sleds2P1, Sled connect, complete the exercise of horse race lamp.
A kind of one-chip machine modular experiment training system based on virtual emulation platform, is characterized in that, Described independent development module by tetra-I/O mouths of PO, P1, P2, P3 of single-chip minimum system module respectively through 48 toggle switch Draw 4 groups of 8 holding wires to be connected on 4 groups of 8 double pricking with needle;The experimental circuit of autonomous Design is provided in described independent development module Power supply and earth terminal.
A kind of one-chip machine modular experiment training system based on virtual emulation platform, is characterized in that, Described independent development module has the some groups of identical row's seats of structure, and each row's seat has some horizontally-arranged bars, each horizontally-arranged bar bag Including 5 row's bore, the row's bore on each horizontally-arranged bar described is electrically being interconnected, mutually isolated between some horizontally-arranged bars.
A kind of one-chip machine modular experiment training system based on virtual emulation platform, is characterized in that, When carrying out experimental real-training study, first pass through virtual emulation part and select or build Virtual Simulative Experiment circuit to carry out emulation experiment, After debugging successfully, in experimental box real training part, build side circuit according to Virtual Simulative Experiment circuit;Utilize emulation experiment circuit Side circuit is driven by driver, confirmatory experiment effect;If not reaching intended simulated effect, check side circuit The most consistent with Virtual Simulative Experiment circuit, check that component parameter used is the most accurate.
8. the user of an one-chip machine modular experiment training system based on virtual emulation platform as claimed in claim 1 Method, is characterized in that, including:
(1) select or build Virtual Simulative Experiment circuit by virtual emulation part, write experimental circuit driver, generate HEX file, carries out emulation experiment;
(2), after the success of Virtual Simulative Experiment circuit debugging, in experimental box real training part, reality is built according to Virtual Simulative Experiment circuit Border circuit;Determining the required I/O mouth connected of each experiment module, using toggle switch is that each experiment module distributes I/O Mouthful;
(3) by selecting the connection status of toggle switch, serial ports downloading mode or USB downloading mode are selected;Carry out experiment electricity Road driver is downloaded;
(4) toggle switch that fluctuates on experimental real-training platform makes corresponding experiment module be in enabled state;
(5) confirmatory experiment effect;If not reaching intended simulated effect, check that side circuit is the most electric with Virtual Simulative Experiment Road is consistent, and the most accurately and side circuit driver is the most accurate to check component parameter used.
A kind of user of one-chip machine modular experiment training system based on virtual emulation platform Method, is characterized in that, when carrying out autonomous Design test, determines the experiment module needed for experiment, needs for the distribution of each experiment module I/O mouth to be connected;
For experiment module existing on experimental real-training platform, it is connected to corresponding I/O mouth by toggle switch, stirs toggle switch Above-mentioned module is enabled;
For the experiment module of autonomous Design, use respectively Du Pont's line by the power line of autonomous Design module and earth lead with independently open Power supply and the ground connection pricking with needle of sending out module connect, by simulation DOL Data Output Line in the middle of autonomous Design module by toggle switch with autonomous The I/O mouth line of development module connects;Stirring toggle switch makes above-mentioned I/O mouth be in connected state.
CN201610428222.2A 2016-06-13 2016-06-13 Single-chip microcomputer modularization experiment training system and method based on virtual simulation platform CN105913739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610428222.2A CN105913739A (en) 2016-06-13 2016-06-13 Single-chip microcomputer modularization experiment training system and method based on virtual simulation platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610428222.2A CN105913739A (en) 2016-06-13 2016-06-13 Single-chip microcomputer modularization experiment training system and method based on virtual simulation platform

Publications (1)

Publication Number Publication Date
CN105913739A true CN105913739A (en) 2016-08-31

Family

ID=56751396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610428222.2A CN105913739A (en) 2016-06-13 2016-06-13 Single-chip microcomputer modularization experiment training system and method based on virtual simulation platform

Country Status (1)

Country Link
CN (1) CN105913739A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647333A (en) * 2017-01-16 2017-05-10 河北大学 Semi-physical simulation system for portable integrated multiple controlled objects
CN106710396A (en) * 2017-02-27 2017-05-24 孙宝法 Micro-control system comprehensive practical training platform based on single chip microcomputer
CN106898177A (en) * 2017-04-27 2017-06-27 河南理工大学 A kind of single chip computer experiment hardware online simulation and automatic evaluation method
CN108538161A (en) * 2018-04-18 2018-09-14 黄淮学院 A kind of New Type of Chip Microcomputer practicing teaching system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1704902A (en) * 2004-06-02 2005-12-07 桂林电子工业学院 Simulation type one-chip computer experiment instrument
CN200993840Y (en) * 2006-12-29 2007-12-19 常州信息职业技术学院 USB single-chip computer simulating experimental instrument
CN202563780U (en) * 2012-05-18 2012-11-28 仲恺农业工程学院 One-chip machine experiment platform
CN103456213A (en) * 2013-08-22 2013-12-18 哈尔滨理大晟源科技开发有限公司 Single-chip microcomputer training platform
CN205122047U (en) * 2015-09-29 2016-03-30 王胤霖 Portable singlechip experimental development device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1704902A (en) * 2004-06-02 2005-12-07 桂林电子工业学院 Simulation type one-chip computer experiment instrument
CN200993840Y (en) * 2006-12-29 2007-12-19 常州信息职业技术学院 USB single-chip computer simulating experimental instrument
CN202563780U (en) * 2012-05-18 2012-11-28 仲恺农业工程学院 One-chip machine experiment platform
CN103456213A (en) * 2013-08-22 2013-12-18 哈尔滨理大晟源科技开发有限公司 Single-chip microcomputer training platform
CN205122047U (en) * 2015-09-29 2016-03-30 王胤霖 Portable singlechip experimental development device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647333A (en) * 2017-01-16 2017-05-10 河北大学 Semi-physical simulation system for portable integrated multiple controlled objects
CN106710396A (en) * 2017-02-27 2017-05-24 孙宝法 Micro-control system comprehensive practical training platform based on single chip microcomputer
CN106898177A (en) * 2017-04-27 2017-06-27 河南理工大学 A kind of single chip computer experiment hardware online simulation and automatic evaluation method
CN108538161A (en) * 2018-04-18 2018-09-14 黄淮学院 A kind of New Type of Chip Microcomputer practicing teaching system

Similar Documents

Publication Publication Date Title
Lesgold SHERLOCK: A coached practice environment for an electronics troubleshooting job.
CN104992651B (en) A kind of AMOLED panel test circuit
CN202649810U (en) Equipment used for automotive electronic control module CAN network integration test
US8019583B1 (en) Selective functional group simulation of automation control and information systems
Traylor et al. Using an integrated platform for learning/spl trade/to reinvent engineering education
CN105894887B (en) A kind of power distribution network simulation training system and method
CN100405383C (en) Fault simulation system of electronic equipment
CN203300121U (en) An embedded smart home practical training platform
CN102929758B (en) Integrated triggering route device for PXI intelligent testing platform equipment
CN201926754U (en) Intelligent function detecting device of distribution network short circuit fault indicator
CN204215631U (en) PCB instant-plugging electronic module experimental provision
Almarshoud The advancement in using remote laboratories in electrical engineering education: a review
CN106781928B (en) Virtual-real combined crane electric control simulation system
CN103777526A (en) Simulation testing system of integrated electronic system of satellite
CN201278232Y (en) Teaching and experiment system for virtual instrument technique
CN101237365B (en) EDA network testing system and testing method
KR20160093794A (en) Robot programing kit using card key and board having resistor and magnet and method thereof
CN101174370A (en) Practical operation examine analog machine of industrial boiler
GB2503597A (en) Base board, enhancement module, and connection structure for base board and enhancement module
CN102222124B (en) Platform and method for automatically generating design schematic diagram of automatic test system
CN101520661A (en) Method and device for testing microcomputer control system of diesel locomotive
CN108022486A (en) Programmable free splicing electronic building blocks module
Ngai et al. Deploying a wearable computing platform for computing education
CN201732294U (en) Tester for full-automatic impeller type washing machine programmable controller
CN101320522A (en) Electrical control line failure setting and training network examining system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160831