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
experimental
circuit
toggle switch
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201610428222.2A
Other languages
Chinese (zh)
Inventor
周茂霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Normal University
Original Assignee
Shandong Normal University
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 Shandong Normal University filed Critical Shandong Normal University
Priority to CN201610428222.2A priority Critical patent/CN105913739A/en
Publication of CN105913739A publication Critical patent/CN105913739A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Business, Economics & Management (AREA)
  • Mathematical Physics (AREA)
  • Algebra (AREA)
  • Computational Mathematics (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Pure & Applied Mathematics (AREA)
  • Instructional Devices (AREA)

Abstract

本发明公开了一种基于虚拟仿真平台的单片机模块化实验实训系统及方法,包括:虚拟仿真部分和实验箱实训部分;虚拟仿真部分包括:与实验箱各实验模块相匹配的若干个独立的虚拟仿真实验电路;与实验箱相匹配的不同实验模块组合的整体虚拟仿真实验电路;实验箱实训部分包括:IC锁紧插座,在所述IC锁紧插座上分别设置单片机最小系统模块、数码管显示模块、LED指示灯模块、电源模块、USB下载模块、串口下载模块、数据存储模块、数据转换模块、时钟模块以及自主开发模块。本发明有益效果:使用软件的虚拟仿真,不必在实际硬件电路上反复下载调试程序,节约了时间,避免设备的损耗,延长设备使用时间。

The invention discloses a single-chip modularized experimental training system and method based on a virtual simulation platform, comprising: a virtual simulation part and an experimental box training part; The virtual simulation experimental circuit; the overall virtual simulation experimental circuit of the combination of different experimental modules matched with the experimental box; the experimental box training part includes: IC locking socket, the minimum system module of the single chip microcomputer is set respectively on the IC locking socket, Digital tube display module, LED indicator module, power module, USB download module, serial port download module, data storage module, data conversion module, clock module and self-developed module. The invention has beneficial effects: the use of software virtual simulation does not need to repeatedly download and debug programs on the actual hardware circuit, which saves time, avoids equipment wear and tear, and prolongs the use time of equipment.

Description

基于虚拟仿真平台的单片机模块化实验实训系统及方法Single-chip modular experiment training system and method based on virtual simulation platform

技术领域technical field

本发明涉及单片机学习使用的虚拟仿真与实验实训相结合的实验学习系统技术领域,尤其涉及一种基于虚拟仿真平台与实验箱实训平台相结合的单片机模块化实验实训系统及其使用方法。The invention relates to the technical field of an experimental learning system combining virtual simulation and experimental training for single-chip learning and use, in particular to a single-chip modularized experimental training system based on a combination of a virtual simulation platform and an experimental box training platform and a method for using the same .

背景技术Background technique

单片机原理与应用是一门实践性很强的课程,其所涉及的理论知识抽象难以理解。课程的学习目标是,通过理论学习,实验操作,最终可以达到自主设计研究开发。The principle and application of single-chip microcomputer is a highly practical course, and the theoretical knowledge involved is abstract and difficult to understand. The learning goal of the course is to achieve independent design research and development through theoretical study and experimental operation.

目前,一方面,在学习理论的过程中,抽象的理论学习内容难以激发学生的学习兴趣;另一方面,本课程如果没有实验以及进一步的设计操作,也就无法达到本课程的开设学习的目的。因此单片机原理与应用课程理论学习、实验教学、自主设计开发环节也必须调整与更新。通过多年的教学和研究发现,目前高校单片机课程各学习环节还存在不足,无法达到开设本课程的最终目的。主要存在以下问题:At present, on the one hand, in the process of learning theory, abstract theoretical learning content is difficult to stimulate students' interest in learning; on the other hand, if this course does not have experiments and further design operations, it will not be able to achieve the purpose of this course. . Therefore, the theoretical study, experimental teaching, and independent design and development of the single-chip principle and application course must also be adjusted and updated. Through years of teaching and research, it is found that there are still deficiencies in the various learning links of the single-chip computer course in colleges and universities, and it is impossible to achieve the ultimate goal of setting up this course. There are mainly the following problems:

(1)实验教学效果不良。当前的单片机实验教学主要是利用实验箱进行的验证性的实验项目,采用的方法一般是:学生使用串口线把实验箱与PC机相连,把验证程序写好后,点击按钮把程序下载到实验箱看结果。大多数的学生,在这个过程中不知道下载的原理是什么,通过哪些具体的电路,哪些具体的芯片引脚把程序下载到单片机;也不知道所验证的实验的电路是什么。由于没有直观的实验电路,编写程序时不知所措,学生迈不出自主设计的第一步,也就达不到课程的培养目标。(1) The effect of experimental teaching is poor. The current single-chip microcomputer experimental teaching is mainly to use the experimental box to carry out verification experimental projects. The method generally used is: students use a serial cable to connect the experimental box to the PC. After writing the verification program, click the button to download the program to the experiment. box to see the result. Most of the students, in this process, do not know what the principle of downloading is, which specific circuits and which specific chip pins are used to download the program to the microcontroller; they also do not know what the circuit of the experiment is. Because there is no intuitive experimental circuit, students are at a loss when writing programs, and students cannot take the first step of independent design, so they cannot achieve the training goals of the course.

(2)现有的单片机实验箱实验项目固定,初学者只能进行实验项目的验证,难于用于工程实训、进行创新性的综合项目开发,达不到理想的学习效果。(2) The experimental items of the existing single-chip experiment box are fixed, and beginners can only verify the experimental items, which is difficult to use for engineering training and innovative comprehensive project development, and the ideal learning effect cannot be achieved.

发明内容Contents of the invention

本发明的目的是为了解决上述难题,提供了一种基于虚拟仿真平台的单片机模块化实验实训系统及方法。该系统包括虚拟仿真平台与实验箱实训平台两部分,虚拟仿真平台包括:与实验箱电路结构完全相同的整体虚拟仿真电路,以及若干个独立模块实验项目虚拟仿真电路;实验箱实训平台采用模块化设计,每个模块可以通过拨码开关独立使用,也可以组合使用;每个模块都配备相应的虚拟仿真电路图,使用者在使用实验箱实训平台操作时,可先用虚拟仿真电路,仿真将要在实验箱上要进行的实验项目,调试实验程序,熟悉实际电路。The object of the present invention is to solve the above-mentioned problems and provide a single-chip modular experiment training system and method based on a virtual simulation platform. The system includes two parts: a virtual simulation platform and an experimental box training platform. The virtual simulation platform includes: the overall virtual simulation circuit with the same structure as the experimental box circuit, and several independent module experimental project virtual simulation circuits; the experimental box training platform adopts Modular design, each module can be used independently or in combination through the dial switch; each module is equipped with a corresponding virtual simulation circuit diagram, and the user can first use the virtual simulation circuit when using the experimental box training platform to operate. Simulate the experimental items to be carried out on the experimental box, debug the experimental program, and get familiar with the actual circuit.

为实现上述目的,本发明的具体方案如下:To achieve the above object, the specific scheme of the present invention is as follows:

一种基于虚拟仿真平台的单片机模块化实验实训系统,包括:虚拟仿真部分和实验箱实训部分;A single-chip modularized experimental training system based on a virtual simulation platform, comprising: a virtual simulation part and an experimental box training part;

所述虚拟仿真部分包括:与实验箱各实验模块相匹配的若干个独立的虚拟仿真实验电路;与实验箱相匹配的不同实验模块组合的整体虚拟仿真实验电路;The virtual simulation part includes: several independent virtual simulation experimental circuits matched with each experimental module of the experimental box; the overall virtual simulation experimental circuit of the combination of different experimental modules matched with the experimental box;

通过所述独立的虚拟仿真实验电路或者整体虚拟仿真实验电路进行虚拟仿真实验;或者通过各独立的虚拟仿真实验电路搭建所需要的虚拟仿真实验电路进行虚拟仿真实验;Carry out the virtual simulation experiment through the independent virtual simulation experiment circuit or the whole virtual simulation experiment circuit; or build the required virtual simulation experiment circuit through each independent virtual simulation experiment circuit to carry out the virtual simulation experiment;

所述实验箱实训部分包括:IC锁紧插座,在所述IC锁紧插座上分别设置单片机最小系统模块、数码管显示模块、LED指示灯模块、电源模块、USB下载模块、串口下载模块、数据存储模块、数据转换模块、时钟模块以及自主开发模块;多个双排排针经拨码开关引出单片机的所有引脚,所述数码管显示模块、LED指示灯模块、电源模块、USB下载模块、串口下载模块、数据存储模块、数据转换模块和时钟模块分别通过拨码开关与单片机相应引脚连接;对每一个模块分别配备相应模块的电路图以及模块使用时拨码开关的状态;The training part of the experiment box includes: an IC locking socket, on which the minimum system module of a single chip microcomputer, a digital tube display module, an LED indicator module, a power supply module, a USB download module, a serial port download module, Data storage module, data conversion module, clock module and self-developed module; a plurality of double-row pins lead out all the pins of the single-chip microcomputer through the dial switch, the digital tube display module, LED indicator module, power module, USB download module , serial port download module, data storage module, data conversion module and clock module are respectively connected to the corresponding pins of the single-chip microcomputer through the dial switch; each module is equipped with a circuit diagram of the corresponding module and the status of the dial switch when the module is in use;

所述单片机最小系统模块的每一个I/O口分别连接拨码开关,通过选择拨码开关引出相应的I/O口线,通过改变拨码开关的接线策略,实现不同的模块组合;Each I/O port of the minimum system module of the single-chip microcomputer is respectively connected to a dial switch, and the corresponding I/O port line is drawn by selecting the dial switch, and different module combinations are realized by changing the wiring strategy of the dial switch;

在所述自主开发模块上搭建自主设计的实验电路,通过选择拨码开关,将所述实验电路与单片机最小系统模块的I/O口线连接,使得所述实验电路使能。A self-designed experimental circuit is built on the self-developed module, and the experimental circuit is connected to the I/O port line of the minimum system module of the single-chip microcomputer by selecting a dial switch, so that the experimental circuit is enabled.

进一步地,还包括:五线四相步进电机模块、四线双极性步进电机模块、RS-485通信模块,继电器模块、点阵模块、矩阵键盘模块、独立按键模块、蜂鸣器模块、138译码电路模块、光敏模块、热敏模块、红外模块、温度传感器模块、LCD1602模块、TFT彩屏模块以及交通灯模块;上述模块分别通过拨码开关与单片机最小系统模块连接;每一个模块使能时,模块指示灯亮。Further, it also includes: five-wire four-phase stepping motor module, four-wire bipolar stepping motor module, RS-485 communication module, relay module, dot matrix module, matrix keyboard module, independent button module, buzzer module , 138 decoding circuit module, photosensitive module, thermal module, infrared module, temperature sensor module, LCD1602 module, TFT color screen module and traffic light module; the above modules are respectively connected with the minimum system module of the single chip microcomputer through the dial switch; each module uses When enabled, the module indicator light is on.

进一步地,所述实验箱实训部分的USB下载模块和串口下载模块分别通过4线3档拨码开关与单片机最小系统模块的I/O口线连接,通过选择4线3档拨码开关的接通状态,分别实现USB下载模式、串口下载模式以及正常使用I/O口模式。Further, the USB download module and the serial port download module of the training part of the experiment box are respectively connected to the I/O port line of the minimum system module of the single-chip microcomputer through a 4-wire 3-speed dial switch, and by selecting the 4-wire 3-speed dial switch In the connected state, the USB download mode, the serial port download mode and the normal use of the I/O port mode are respectively realized.

进一步地,所述数码管显示模块包括动态数码管显示单元和静态数码管显示单元;所述动态数码管显示单元包括:Further, the digital tube display module includes a dynamic digital tube display unit and a static digital tube display unit; the dynamic digital tube display unit includes:

锁存器的输入端经拨码开关Sleds2P1与单片机最小系统模块的P1口相连,锁存器的输出端与7段码显示器的段选相连,同时经拨码开关Sled与8个LED指示灯相连;所述7段码显示器的位选经过拨码开关SledbitP0与单片机最小系统模块的P0口相连;锁存器的使能端经拨码开关SLE与电源模块相连;The input end of the latch is connected to the P1 port of the minimum system module of the single-chip microcomputer through the dial switch Sleds2P1, and the output end of the latch is connected to the segment selection of the 7-segment code display, and connected to 8 LED indicators through the dial switch Sled The position selection of the 7-segment code display is connected to the P0 port of the minimum system module of the single-chip microcomputer through the dial switch SledbitP0; the enabling end of the latch is connected to the power supply module through the dial switch SLE;

拨码开关SLE、Sleds2P1和SledbitP0接通时,完成7段码显示器的使用;拨码开关SLE、Sleds2P1、Sled接通时,完成跑马灯的练习。When the DIP switches SLE, Sleds2P1 and SledbitP0 are connected, the use of the 7-segment display is completed; when the DIP switches SLE, Sleds2P1, and Sled are connected, the practice of the marquee is completed.

进一步地,所述自主开发模块将单片机最小系统模块的PO、P1、P2、P3四个I/O口分别经4个8位拨码开关引出4组8位信号线连接至4组8位双排排针上;所述自主开发模块上提供自主设计的实验电路的电源以及接地端。Further, the self-developed module connects the PO, P1, P2, and P3 four I/O ports of the minimum system module of the single-chip microcomputer through four 8-bit DIP switches to lead 4 groups of 8-bit signal lines to 4 groups of 8-bit dual On the row of pins; the self-developed module provides the power supply and ground terminal of the self-designed experimental circuit.

进一步地,所述自主开发模块具有若干组结构相同的排座,每一排座具有若干横排条,每一个横排条包括5个排座孔,所述每一个横排条上的排座孔在电气上相互连通,若干横排条之间相互隔离。Further, the self-developed module has several groups of rows of seats with the same structure, and each row of seats has several horizontal rows, and each row of rows includes 5 rows of seat holes, and the rows of seats on each of the horizontal rows The holes are electrically connected to each other, and the several rows of bars are isolated from each other.

进一步地,进行实验实训学习时,先通过虚拟仿真部分选择或者搭建虚拟仿真实验电路进行仿真实验,调试成功后,根据虚拟仿真实验电路在实验箱实训部分上搭建实际电路;利用仿真实验电路驱动程序对实际电路进行驱动,验证实验效果;如若达不到预期的仿真效果,检查实际电路是否与虚拟仿真实验电路一致,检查所用元器件参数是否准确。Further, when conducting experimental training and learning, first select or build a virtual simulation experimental circuit for simulation experiments through the virtual simulation part. After successful debugging, build an actual circuit on the training part of the experimental box according to the virtual simulation experimental circuit; use the simulation experimental circuit The driver drives the actual circuit to verify the experimental effect; if the expected simulation effect cannot be achieved, check whether the actual circuit is consistent with the virtual simulation experimental circuit, and check whether the parameters of the components used are accurate.

一种基于虚拟仿真平台的单片机模块化实验实训系统的使用方法,包括:A method for using a single-chip modular experiment training system based on a virtual simulation platform, comprising:

(1)通过虚拟仿真部分选择或者搭建虚拟仿真实验电路,编写实验电路驱动程序,生成HEX文件,进行仿真实验;(1) Select or build a virtual simulation experimental circuit through the virtual simulation part, write the experimental circuit driver, generate a HEX file, and carry out the simulation experiment;

(2)虚拟仿真实验电路调试成功后,根据虚拟仿真实验电路在实验箱实训部分上搭建实际电路;确定每一个实验模块所需要连接的I/O口,采用拨码开关为每一个实验模块分配I/O口;(2) After the virtual simulation experimental circuit is debugged successfully, build the actual circuit on the training part of the experimental box according to the virtual simulation experimental circuit; determine the I/O port that each experimental module needs to connect, and use the dial switch for each experimental module Allocate I/O ports;

(3)通过选择拨码开关的连接状态,选择串口下载模式或者USB下载模式;进行实验电路驱动程序下载;(3) By selecting the connection state of the DIP switch, select the serial download mode or the USB download mode; download the experimental circuit driver;

(4)在实验实训平台上波动拨码开关使相应的实验模块处于使能状态;(4) Fluctuate the DIP switch on the experimental training platform to enable the corresponding experimental module;

(5)验证实验效果;如若达不到预期的仿真效果,检查实际电路是否与虚拟仿真实验电路一致,检查所用元器件参数是否准确以及实际电路驱动程序是否准确。(5) Verify the experimental effect; if the expected simulation effect cannot be achieved, check whether the actual circuit is consistent with the virtual simulation experimental circuit, check whether the parameters of the components used are accurate and whether the actual circuit driver is accurate.

进一步地,进行自主设计试验时,确定实验所需的实验模块,为每一个实验模块分配需要连接的I/O口;Further, when conducting self-designed experiments, determine the experimental modules required for the experiment, and assign the I/O ports that need to be connected to each experimental module;

对于实验实训平台上已有的实验模块,通过拨码开关连接至相应的I/O口,拨动拨码开关使得上述模块使能;For the existing experimental modules on the experimental training platform, connect to the corresponding I/O port through the dial switch, and toggle the dial switch to enable the above modules;

对于自主设计的实验模块,分别使用杜邦线将自主设计模块的电源线和接地线与自主开发模块的电源和接地排针连接,将自主设计模块的中间模拟数据输出线通过拨码开关与自主开发模块的I/O口线连接;拨动拨码开关使上述I/O口处于连通状态。For the self-designed experimental module, use Dupont wires to connect the power line and ground line of the self-designed module to the power and ground pins of the self-developed module, and connect the intermediate analog data output line of the self-designed module to the self-developed module through a dial switch. The I/O port of the module is connected; dial the code switch to make the above I/O port in the connected state.

本发明的有益效果:Beneficial effects of the present invention:

(1)在实验箱开展独立模块实验之前,先使用虚拟仿真平台调出虚拟仿真电路图,可以直观的看到实验电路图,编写完成驱动程序,在虚拟仿真上实现实验效果。在PC机上方便直观的看到实验电路,方便了驱动程序的编写;使用软件的虚拟仿真,不必在实际硬件电路上反复下载调试程序,节约了时间,避免设备的损耗,延长设备使用时间。(1) Before carrying out independent module experiments in the experimental box, use the virtual simulation platform to call out the virtual simulation circuit diagram, you can intuitively see the experimental circuit diagram, write the driver program, and realize the experimental effect on the virtual simulation. It is convenient and intuitive to see the experimental circuit on the PC, which facilitates the writing of the driver program; using the virtual simulation of the software, it is not necessary to repeatedly download the debugging program on the actual hardware circuit, which saves time, avoids equipment loss, and prolongs the use of equipment.

(2)在开展综合实验之前,第一步,根据设定的功能效果,使用实验箱相匹配的各个实验模块组合的虚拟仿真电路,在相关虚拟仿真模块电路间简单的连线及拨动虚拟拨码开关,编写软件程序,模拟出实际功能,然后通过其分析改进,从而实现电路的优化设计。第二步,依据优化好的电路在实验箱上实现。此过程,节约开发设计时间,直观易懂。(2) Before carrying out the comprehensive experiment, the first step is to use the virtual simulation circuit of each experimental module combination matched with the experimental box according to the set function effect, and simply connect and toggle the virtual simulation circuit between the relevant virtual simulation module circuits. DIP switch, write software program, simulate the actual function, and then improve it through its analysis, so as to realize the optimal design of the circuit. The second step is to realize it on the experimental box according to the optimized circuit. This process saves development and design time and is intuitive and easy to understand.

(3)在实验箱实训平台中使用拨码开关,①避免由于传统跳线使得实验箱连线杂乱,②避免跳线的接头接触不良,影响实验效果。(3) Use the dial switch in the experimental box training platform to ① avoid the messy connection of the experimental box due to the traditional jumper, and ② avoid poor contact of the connector of the jumper, which will affect the experimental effect.

(4)基于虚拟仿真平台与实验箱实训平台相结合的单片机实验实训系统,各实验模块能够独立使用,也可以通过采用不同的拨码开关连线策略,改变硬件组合形式;预留自主开发模块,使用者能够在现有实验模块的基础上,通过自主搭建硬件电路进行工程实训,实现自主创新性实验。(4) Based on the single-chip experimental training system combined with the virtual simulation platform and the experimental box training platform, each experimental module can be used independently, and the hardware combination form can also be changed by adopting different dial switch connection strategies; With the development module, users can carry out engineering training by building hardware circuits independently on the basis of the existing experimental modules, and realize independent innovative experiments.

(5)为每一个实验模块配备相应的电路结构图,在需要的时候进行调用,能够使使用者充分了解每一个模块的电路结构,以便于在进行设计时,合理设计连接引脚。(5) Equip each experimental module with a corresponding circuit structure diagram, which can be called when needed, so that users can fully understand the circuit structure of each module, so that they can reasonably design the connection pins when designing.

附图说明Description of drawings

图1为本发明的平台基本框架图;Fig. 1 is a basic frame diagram of the platform of the present invention;

图2为本发明的单片机最小系统核心模块电路图;Fig. 2 is the minimum system core module circuit diagram of the single-chip microcomputer of the present invention;

图3(a)为本发明的串口下载电路图;Fig. 3 (a) is the serial port download circuit diagram of the present invention;

图3(b)为本发明的USB下载电路图;Fig. 3 (b) is the USB download circuit diagram of the present invention;

图4为本发明8位动态数码管显示模块电路图;Fig. 4 is 8 dynamic nixie tube display module circuit diagrams of the present invention;

图5为本发明的32k的外扩数据存储区模块电路图;Fig. 5 is the module circuit diagram of the external expansion data storage area of 32k of the present invention;

图6为本发明自主设计模块示意图。Fig. 6 is a schematic diagram of the independent design module of the present invention.

具体实施方式:detailed description:

下面结合附图对本发明进行详细说明:The present invention is described in detail below in conjunction with accompanying drawing:

一种基于虚拟仿真平台的单片机模块化实验实训系统,包括:虚拟仿真部分和实验箱实训部分;A single-chip modularized experimental training system based on a virtual simulation platform, comprising: a virtual simulation part and an experimental box training part;

虚拟仿真部分包括:与实验箱各实验模块相匹配的若干个独立的虚拟仿真实验电路;与实验箱相匹配的不同实验模块组合的整体虚拟仿真实验电路;通过独立的虚拟仿真实验电路或者整体虚拟仿真实验电路进行虚拟仿真实验;或者通过各独立的虚拟仿真实验电路搭建所需要的虚拟仿真实验电路进行虚拟仿真实验。使用者在使用实验箱实训平台操作时,可先用虚拟仿真电路,在虚拟仿真的CPU加载程序,仿真将要在实验箱上要进行的实验项目,调试实验程序,了解实际电路原理。The virtual simulation part includes: several independent virtual simulation experimental circuits that match the experimental modules of the experimental box; the overall virtual simulation experimental circuit of different experimental module combinations that match the experimental box; The simulation experiment circuit is used for virtual simulation experiment; or the required virtual simulation experiment circuit is constructed through each independent virtual simulation experiment circuit for virtual simulation experiment. When using the experimental box training platform, the user can first use the virtual simulation circuit, load the program on the virtual simulated CPU, simulate the experimental items to be carried out on the experimental box, debug the experimental program, and understand the actual circuit principle.

实验箱实训部分如图1所示,包括:IC锁紧插座,易于更换不同型号的单片机,多个双线排针经拨码开关引出单片机的所有引脚;使用者自主搭建电路模块、单片机最小系统核心模块、5v电源模块、USB下载模块、串口下载模块,五线四相步进电机模块、四线双极性步进电机模块、RS-485通信模块,继电器模块、16*16点阵模块、4*4矩阵键盘模块、8个独立按键模块、蜂鸣器模块、138译码电路模块、8位动态数码管显示模块、2位静态数码管模块、32k的外扩数据存储区模块、AD/DA/光敏、热敏模块、红外模块、温度传感器模块、实时时钟模块、LCD1602模块、TFT彩屏模块、交通灯模块、8位数码管显示模块以及外电源模块,各个模块在被选择使用时,均有LED指示灯指示。The training part of the experimental box is shown in Figure 1, including: IC locking socket, easy to replace different types of single-chip microcomputers, multiple double-wire pins lead out all pins of the single-chip microcomputer through the dial switch; users independently build circuit modules, single-chip microcomputers Minimum system core module, 5v power supply module, USB download module, serial port download module, five-wire four-phase stepper motor module, four-wire bipolar stepper motor module, RS-485 communication module, relay module, 16*16 dot matrix module, 4*4 matrix keyboard module, 8 independent button modules, buzzer module, 138 decoding circuit module, 8-digit dynamic digital tube display module, 2-digit static digital tube module, 32k external expansion data storage module, AD/DA/photosensitive, thermal module, infrared module, temperature sensor module, real-time clock module, LCD1602 module, TFT color screen module, traffic light module, 8-digit digital tube display module and external power supply module, when each module is selected for use , are indicated by LED indicators.

上述模块分别通过拨码开关与单片机相应引脚连接;对每一个模块分别配备相应模块的电路图以及该模块使用时拨码开关的状态。The above-mentioned modules are respectively connected to the corresponding pins of the single-chip microcomputer through the dial switch; each module is equipped with a circuit diagram of the corresponding module and the status of the dial switch when the module is in use.

单片机最小系统模块的每一个I/O口分别连接拨码开关,通过选择拨码开关引出相应的I/O口线,通过改变拨码开关的接线策略,实现不同的模块组合;在自主开发模块上搭建自主设计的实验电路,通过选择拨码开关,将实验电路与单片机最小系统模块的I/O口线连接,使得所述实验电路使能。Each I/O port of the smallest system module of the single-chip microcomputer is respectively connected to a code switch, and the corresponding I/O port line is drawn out by selecting the code switch, and different module combinations are realized by changing the wiring strategy of the code switch; in the self-developed module A self-designed experimental circuit is built on the above, and the experimental circuit is connected to the I/O port line of the smallest system module of the single-chip microcomputer by selecting the dial switch, so that the experimental circuit is enabled.

本发明的单片机最小系统核心模块电路图。如图2所示。The circuit diagram of the core module of the minimum system of the single-chip microcomputer of the present invention. as shown in picture 2.

本模块包括复位电路、振荡电路、为增加I/O驱动能力而增添的电路。晶振不直接焊接在PCB板上,晶振位置焊接晶振插座,可方便根据需要更换晶振;复位电路,可以上电复位,也可按下复位键复位;各个I/O为增加驱动能力均加10K上拉电阻。This module includes a reset circuit, an oscillation circuit, and a circuit added to increase I/O drive capability. The crystal oscillator is not directly welded on the PCB board, but the crystal oscillator socket is welded to the crystal oscillator position, which is convenient for replacing the crystal oscillator according to needs; the reset circuit can be reset by power-on or by pressing the reset button; each I/O is increased by 10K to increase the driving capacity pull resistor.

本发明的USB下载模块电路和串口下载模块电路图如图3(a)和图3(b)所示。The circuit diagrams of the USB download module circuit and the serial port download module of the present invention are shown in Fig. 3(a) and Fig. 3(b).

USB下载模块与从USB取电,利用USB线从pc机取+5v电,经滤波再经USB转串口芯片CH340G输出给单片机供电。USB转串口芯片CH340G输出的RXD-U、TXD-U信号连接图3(a)中的3档4线拨码开关的RXD-U、TXD-U端,当选用USB下载时,拨码开关拨至此端。在本模块,自锁按键为整个系统的总开关。The USB download module takes power from the USB, uses the USB cable to get +5v power from the PC, and then outputs power to the microcontroller through the USB-to-serial chip CH340G after filtering. The RXD-U and TXD-U signals output by the USB-to-serial chip CH340G are connected to the RXD-U and TXD-U terminals of the 3-speed 4-wire DIP switch in Figure 3 (a). So far. In this module, the self-locking button is the master switch of the whole system.

本发明的串口下载模块使用MAX232A芯片加外围电路,进行CMOS电平到TTL电平转化,MAX232A为DIP-8,在实际PCB板上焊接底座,方便MAX232A芯片更换。The serial download module of the present invention uses a MAX232A chip plus peripheral circuits to convert from CMOS level to TTL level. The MAX232A is DIP-8, and the base is welded on the actual PCB board to facilitate the replacement of the MAX232A chip.

在本发明中可用串口下载,也可用USB下载,所以使用4线3档拨码开关,4线3档拨码开关拨至TXD-R和RXD-R端为串口下载;4线3档拨码开关拨至TXD-U和RXD-U端为为USB自动下载;4线3档拨码开关中间档为正常使用I/O口。In the present invention, the serial port download can be used, and the USB download can also be used, so the 4-wire 3-speed DIP switch is used, and the 4-wire 3-speed DIP switch is dialed to the TXD-R and RXD-R terminals for serial port download; 4-wire 3-speed DIP switch Turn the switch to the TXD-U and RXD-U terminals for USB automatic download; the middle position of the 4-wire 3-position DIP switch is for normal use of the I/O port.

本发明8位动态数码管及8位LED模块电路图如图4所示:The circuit diagram of the 8-bit dynamic digital tube and the 8-bit LED module of the present invention is shown in Figure 4:

锁存器输入端M74HC573B1R加10K下拉电阻,经拨码开关Sleds2P1与P1口相连,输出端与7段码显示器的段选相连,同时经拨码开关与8个LED相连;P0口8根线径拨码开关SledbitP0与7段码显示器的位选选相连;锁存器M74HC573B1R使能端经拨码开关SLE与电源相连,当连接使能端时,模块指示灯亮。The input terminal of the latch is M74HC573B1R plus a 10K pull-down resistor, connected to the P1 port through the dial switch Sleds2P1, the output port is connected to the segment selection of the 7-segment code display, and connected to 8 LEDs through the dial switch; the P0 port has 8 wire diameters The dial switch SledbitP0 is connected to the bit selection of the 7-segment code display; the enable terminal of the latch M74HC573B1R is connected to the power supply through the dial switch SLE, and when the enable terminal is connected, the module indicator light is on.

本模块选择不同的拨码开关组合可以完成不同的实验,SLE、Sleds2P1、SledbitP0组合可完成7段码显示器的使用;SLE、Sleds2P1、Sled组合可完成跑马灯的练习。In this module, different combinations of DIP switches can be selected to complete different experiments. The combination of SLE, Sleds2P1, and SledbitP0 can complete the use of a 7-segment display; the combination of SLE, Sleds2P1, and Sled can complete the practice of the marquee.

图5为本发明的4k的外扩数据存储区以及并行I/O接口扩展模块电路图。Fig. 5 is a circuit diagram of a 4k externally expanded data storage area and a parallel I/O interface expansion module of the present invention.

MCS-51单片机内部只有128B数据RAM,当应用中需要更多的RAM时,只能在外部扩展。本发明实验实训平台外扩了4K的RAM,,MCS-51单片机内部共有4个8位并行的I/O口,扩展外部存储器后只有P1口和P3口的6位可用,因此须扩展I/O接口。本平台在工程实训中如需使用扩展I/O口其引线可以从排针BUSA1、BUA2、BUSC、BUSAD分别引出地址线、控制线、数据线。外部数据RAM地址范围为0000H----0FFFH,I/O地址为1000H-FFFFH范围内。本模块只是在扩展内存及I/O时,由程序选定,74LS373的使能由地址锁存信号ALE控制。在不使用扩展的情况下,其他模块的使用不会让该模块使能,所以本模块无需用拨码开关。There is only 128B data RAM inside the MCS-51 single-chip microcomputer. When more RAM is needed in the application, it can only be expanded externally. The experimental training platform of the present invention has expanded the RAM of 4K, and there are 4 8 parallel I/O ports in the MCS-51 single-chip microcomputer, after expanding the external memory, only 6 bits of the P1 port and the P3 port are available, so it is necessary to expand the I/O port. /O interface. If the platform needs to use the extended I/O port in the engineering training, its lead wires can lead out the address lines, control lines, and data lines from the pin headers BUSA1, BUA2, BUSC, and BUSAD respectively. The external data RAM address range is 0000H----0FFFH, and the I/O address is within the range of 1000H-FFFFH. This module is only selected by the program when expanding the memory and I/O, and the enabling of 74LS373 is controlled by the address latch signal ALE. In the case of no expansion, the use of other modules will not enable this module, so this module does not need to use a code switch.

本发明实验实训平台的电源模块可提供+5V、-5V、+12V、-12V、+3.3V、-3.3V,6种电压,本实验实训平台为+5V供电,在使用者自搭扩展电路时可根据实际需要选择电源,在每种电源上经滤波后焊接排针方便向外供电。实验实训平台也可3.3V供电,只需要把3线2档拨码开关拨至3.3V端。The power supply module of the experimental training platform of the present invention can provide +5V, -5V, +12V, -12V, +3.3V, -3.3V, 6 kinds of voltages. When expanding the circuit, the power supply can be selected according to the actual needs, and the pin headers are welded on each power supply to facilitate external power supply after filtering. The experimental training platform can also be powered by 3.3V, just turn the 3-wire 2-speed DIP switch to 3.3V.

所有模块可以独立使用完成基本实验,也可以综合使用完成创新设计实验。单片机可控的模块很多,不可能在一个实验板上都能涉及到。为有一定单片机基础的使用者以及工程实训开设创新实验设计的要求,本发明设计自主开发模块,供使用者自主搭建电路,结合实验实训平台已有的资源,开展创新性设计。All modules can be used independently to complete basic experiments, and can also be used comprehensively to complete innovative design experiments. There are many modules that can be controlled by a single-chip microcomputer, and it is impossible to involve all of them on a test board. In order to meet the requirements of innovative experimental design for users who have a certain single-chip foundation and engineering training, the invention designs an independent development module for users to build circuits independently, and combines the existing resources of the experimental training platform to carry out innovative designs.

自主开发模块电路如图6所示,本模块把PO、P1、P2、P3四个I/O口全部经4个8位拨码开关引出至四个双排排针上。本模块提供了搭建电路所需要的6种电源和接地端。本模块经拨码开关从核心模块引出已加上拉电阻的P0,P1,P2,P34组I/O口线,分别引至4组8*2的排针,供自组模块时使用。排针间距为标准的直插式芯片的引脚间距2.5mm。本模块还提供6组3*2的排针,分别提供+5V,-5v,+12v,-12V,以及接地点位。本模块提供13cm*11cm的区域,如图:该区域有5组功能结构相同的排座,每组之间的距离为2.54mm*3。在每一组里面,每一个横排条里的5个排座在电气上相互连通,横排条之间相互隔离。每个排座孔距为2.54mm。这种设计方便引脚间距为2.54mm的单列或双列直插式的芯片直接插入使用。The self-developed module circuit is shown in Figure 6. This module leads the four I/O ports PO, P1, P2, and P3 to four double-row pins through four 8-bit DIP switches. This module provides 6 kinds of power and ground terminals needed to build the circuit. This module leads out the I/O port lines of P0, P1, P2, and P34 groups with pull-up resistors from the core module through the DIP switch, and leads them to 4 groups of 8*2 pin headers for self-assembly of the module. The pin spacing is 2.5mm for standard in-line chips. This module also provides 6 sets of 3*2 pin headers, providing +5V, -5v, +12v, -12V, and ground points respectively. This module provides an area of 13cm*11cm, as shown in the figure: there are 5 groups of seats with the same functional structure in this area, and the distance between each group is 2.54mm*3. Within each group, the five rows of seats in each row are electrically connected to each other, and the rows are isolated from each other. The pitch of each seat row is 2.54mm. This design facilitates the direct insertion and use of single-row or dual-in-line chips with a pin pitch of 2.54mm.

下面对基于虚拟仿真平台的单片机模块化实验实训系统的使用方法介绍如下:The method of using the single-chip modular experiment training system based on the virtual simulation platform is introduced as follows:

1.独立实验项目验证性实验使用方法步骤。1. The method steps of the verification experiment of the independent experimental project.

①在虚拟仿真平台上,调取该模块的仿真电路图,确定实验模块所需要连接的仿真I/O口,使用虚拟电子器件拨码开关为实验模块分配仿真I/O口,配置好虚拟仿真电路图;① On the virtual simulation platform, retrieve the simulation circuit diagram of the module, determine the simulation I/O port that the experimental module needs to connect to, use the virtual electronic device dial switch to assign the simulation I/O port to the experimental module, and configure the virtual simulation circuit diagram ;

②编写调试实验驱动程序,生成HEX文件,给虚拟仿真的CPU加载程序;② Write and debug experimental driver program, generate HEX file, and load program to virtual simulation CPU;

③观察实验结果,没有达到虚拟实验效果,回到步骤②,达到实验效果进行下一步;③Observe the experimental results, if the virtual experiment effect is not achieved, go back to step ②, and proceed to the next step when the experimental effect is achieved;

④配置实验箱实训平台:对照配置好的虚拟仿真电路图,拨动拨码开关配置好实验箱的实验实训项目连接;④ Configure the experimental box training platform: compare the configured virtual simulation circuit diagram, toggle the dial switch to configure the experimental training project connection of the experimental box;

⑤通过选择拨码开关的连接状态选择串口下载模式或者USB下载模式,控制程序下载到实验箱;⑤ Select the serial port download mode or USB download mode by selecting the connection status of the DIP switch, and download the control program to the experiment box;

⑥观察是否达到实验效果。如没有达到预期效果,回到步骤④检查;直到出现理想实验效果。⑥ Observe whether the experimental effect is achieved. If the expected effect is not achieved, go back to step ④ to check; until the ideal experimental effect appears.

⑦实验完成后,整理实验箱实验实训平台,断开所有的拨码开关。⑦ After the experiment is completed, tidy up the experimental training platform of the experimental box and disconnect all the dial switches.

需要注意的是,在实验实训过程中,避免选择使用RXD/P3.0TXD/P3.1两个端口,因为下载用到这两个口。如不能避免,下载程序时,可将要用到的模块RXD/P3.0TXD/P3.1口处于非使能状态,程序下载完成,再把该模块的RXD/P3.0TXD/P3.1口处于使能状态。It should be noted that during the experimental training process, avoid using the RXD/P3.0TXD/P3.1 ports, because these two ports are used for downloading. If it cannot be avoided, when downloading the program, the RXD/P3.0TXD/P3.1 port of the module to be used can be disabled. After the program is downloaded, the RXD/P3.0TXD/P3.1 port of the module can be enable state.

2.使用已有的电路模块进行综合性、创新性试验项目使用方法步骤。本系统可用几个模块联合使用,开发综合性实验。举例:使用DS18B20模块,LCD的显示模块,键盘模块,声音模块。综合实验,LCD可以显示DS18B20的实时温度,键盘可以设定一个温度上限或下限,当实时温度超过设定范围,可以使用声音模块出现报警或提示音。2. Use existing circuit modules to carry out comprehensive and innovative test project usage steps. This system can be used in conjunction with several modules to develop comprehensive experiments. For example: use DS18B20 module, LCD display module, keyboard module, sound module. For comprehensive experiments, the LCD can display the real-time temperature of DS18B20, and the keyboard can set an upper or lower temperature limit. When the real-time temperature exceeds the set range, the sound module can be used to generate an alarm or prompt.

①在虚拟仿真平台上,调取与实验箱电路结构完全相同的整体虚拟仿真电路,确定综合创新性实验所需的实验模块,使用虚拟电子元件拨码开关选择使用的仿真模块,配置好虚拟仿真电路图;① On the virtual simulation platform, retrieve the overall virtual simulation circuit with the same circuit structure as the experimental box, determine the experimental modules required for the comprehensive innovative experiment, use the virtual electronic component dial switch to select the simulation module used, and configure the virtual simulation circuit diagram;

②在第三方提供的软件上编写程序(如keil,IAR),生成HEX文件,给虚拟仿真的CPU加载程序;② Write a program on the software provided by a third party (such as keil, IAR), generate a HEX file, and load the program to the virtual simulation CPU;

③观察实验结果,没有达到虚拟实验效果,回到步骤①,重新检查是硬件配置问题,还是程序问;达到实验效果进行下一步;③Observe the experimental results, if the virtual experiment effect is not achieved, go back to step ①, recheck whether it is a hardware configuration problem or a program problem; if the experimental effect is reached, proceed to the next step;

④配置实验箱实训平台:对照配置好的虚拟仿真电路图,在实验实训平台上分配LCD1602的控制端、DS18B20、蜂鸣器供选择的I/O口为P2口,因此,利用拨码开关给LCD1602分配P25,P26,P27;DS18B20分配为P20;蜂鸣器分配为P21;LCD1602的8条数据端口用拨码开关用P0口,矩阵键盘选用P1口。使各模块处于使能状态。④ Configure the experimental box training platform: compare the configured virtual simulation circuit diagram, and allocate the control terminal of LCD1602, DS18B20, and buzzer on the experimental training platform. The I/O port for selection is P2. Therefore, use the dial switch Assign P25, P26, and P27 to LCD1602; assign P20 to DS18B20; assign P21 to the buzzer; use P0 port for the 8 data ports of LCD1602, and use P1 port for the matrix keyboard. Make each module in enable state.

⑤通过选择拨码开关的连接状态选择串口下载模式或者USB下载模式,控制程序下载到实验箱;⑤ Select the serial port download mode or USB download mode by selecting the connection status of the DIP switch, and download the control program to the experiment box;

⑥观察是否达到实验效果。如没有达到预期效果,回到步骤④检查;若在虚拟仿真平台上达不到理想效果,则程序有错误,回到步骤②修改程序,直到虚拟仿真出现理想效果。⑥ Observe whether the experimental effect is achieved. If the expected effect is not achieved, go back to step ④ to check; if the desired effect cannot be achieved on the virtual simulation platform, there is an error in the program, go back to step ② to modify the program until the virtual simulation shows the desired effect.

⑦实验完成后,整理实验箱实验实训平台,断开所有的拨码开关。⑦ After the experiment is completed, tidy up the experimental training platform of the experimental box and disconnect all the dial switches.

3.使用自主开发模块,搭建本系统没有的实验项目的使用方法步骤。3. Use the self-developed module to build the usage steps of the experimental project that this system does not have.

虚拟仿真实验平台是个开放的平台,在此平台上很容易搭建系统没有的实验模块。The virtual simulation experiment platform is an open platform, on which it is easy to build experimental modules that the system does not have.

①虚拟仿真平台上,搭建实验项目虚拟仿真电路图,①On the virtual simulation platform, build the virtual simulation circuit diagram of the experimental project,

②编写调试实验驱动程序,生成HEX文件,给虚拟仿真的CPU加载程序;② Write and debug experimental driver program, generate HEX file, and load program to virtual simulation CPU;

③观察实验结果,没有达到虚拟实验效果,回到步骤②,重新检查是硬件配置问题,还是程序问题,达到实验效果进行下一步;③Observe the experimental results, if the effect of the virtual experiment is not achieved, go back to step ②, recheck whether it is a hardware configuration problem or a program problem, and proceed to the next step if the experimental effect is achieved;

④在实验箱实训平台上搭建实际的实验项目电路图;④ Build the circuit diagram of the actual experimental project on the experimental box training platform;

⑤通过选择拨码开关的连接状态选择串口下载模式或者USB下载模式,控制程序下载到实验箱;⑤ Select the serial port download mode or USB download mode by selecting the connection status of the DIP switch, and download the control program to the experiment box;

⑥观察是否达到实验效果。如没有达到预期效果,回到步骤③检查;直到出现理想效果。⑥ Observe whether the experimental effect is achieved. If the expected effect is not achieved, go back to step ③ to check; until the desired effect appears.

4.使用自主开发模块,增添实验系统没有的模块开设创新性项目。4. Use self-developed modules to add modules that are not in the experimental system to create innovative projects.

①虚拟仿真平台上,调取与实验箱电路结构完全相同的整体虚拟仿真电路,确定自主开发项目要使用的已有模块,及需要增设的模块;①On the virtual simulation platform, retrieve the overall virtual simulation circuit with the same circuit structure as the experimental box, and determine the existing modules to be used in the self-developed project and the modules that need to be added;

②在虚拟仿真平台上自主设计增设的模块;② Self-designed additional modules on the virtual simulation platform;

③使用拨码开关选择使用的模块,配置好虚拟仿真电路图;③Use the DIP switch to select the module to be used, and configure the virtual simulation circuit diagram;

④编写调试实验驱动程序,生成HEX文件,给虚拟仿真的CPU加载程序;④ Write and debug the experimental driver, generate HEX files, and load the program to the virtual simulation CPU;

观察实验结果,没有达到虚拟实验效果,回到步骤②,重新检查是硬件配置问题,还是程序程序问题,达到实验效果进行下一步;Observe the experimental results, if the virtual experiment effect is not achieved, go back to step ②, recheck whether it is a hardware configuration problem or a program problem, and proceed to the next step if the experimental effect is achieved;

⑤配置实验箱实训平台:对照配置好的虚拟仿真电路图,拨动拨码开关配置好实验箱的已有模块,在自主开发的模块上搭建增设的模块;⑤ Configure the experimental box training platform: compare the configured virtual simulation circuit diagram, toggle the dial switch to configure the existing modules of the experimental box, and build additional modules on the self-developed modules;

⑥通过选择拨码开关的连接状态选择串口下载模式或者USB下载模式;⑥ Select the serial port download mode or USB download mode by selecting the connection status of the DIP switch;

⑦控制程序下载到实验箱;⑦ Download the control program to the experiment box;

⑧观察是否达到实验效果。如没有达到预期效果,回到步骤⑤检查;直到出现理想效果。⑧ Observe whether the experimental effect is achieved. If the expected effect is not achieved, go back to step ⑤ to check; until the desired effect appears.

下面通过具体实施例对平台爱使用方法进行说明。The method of using the platform love will be described below through specific embodiments.

1.通过使用者自主搭建模块可以独立完成一个实验。1. Users can independently complete an experiment by building modules independently.

插8个发光二极管,插8个440欧姆限流电阻,限流电阻使用杜邦线另一端接一个I/O口,发光二极管公共端接地,按独立模块使用说明方法,可完成跑马灯的实验。Insert 8 LEDs and 8 440 ohm current-limiting resistors. The other end of the current-limiting resistors is connected to an I/O port with a Dupont wire, and the common terminal of the LEDs is grounded. Follow the instructions of the independent module to complete the marquee experiment.

2.结合实验箱实训板上的资源,加上在本模块搭建的电路完成创新的实训任务。2. Combining the resources on the training board of the experiment box and the circuit built in this module to complete innovative training tasks.

举例如下,使用红外测距模块,测量被测物体,使用实验实训板上已有的资源七段码LED显示器,显示被测物体的与传感器的距离,当被测物体与传感器的距离小于设定值时报警。For example, use the infrared distance measuring module to measure the measured object, and use the seven-segment code LED display on the experimental training board to display the distance between the measured object and the sensor. When the distance between the measured object and the sensor is less than the set Alarm when set value.

实验实训平台已有显示与声音模块。需在使用者自主设计的模块中连接上红外测距模块。经研究显示模块电路图,显示模块可经拨码开关使用P0,P1口,拨动该模块的使能开关,使显示模块处于使能状态。声音模块经拨码开关选择P2口的任意一根口线,如选择P21;红外测距模块有3根连线,一根地线,一根电源线使用杜邦线分别连至使用者自主搭建模块区域的+5v和GND接线排针上。中间模拟数据输出线使用杜邦线连接至本模块的排针座的P22上,拨动拨码开关使P22处于连通状态。The experimental training platform has display and sound modules. The infrared distance measuring module needs to be connected to the module designed by the user. After studying the circuit diagram of the display module, the display module can use the P0 and P1 ports through the dial switch, and toggle the enable switch of the module to make the display module in the enabled state. The sound module selects any port line of the P2 port through the dial switch, such as P21; the infrared distance measuring module has 3 connections, a ground wire, and a power line are respectively connected to the user-built module with Dupont wires The +5v and GND wiring pins in the area. The intermediate analog data output line is connected to P22 of the pin header of this module with a DuPont line, and the dial switch is used to make P22 in a connected state.

其他步骤按独立模块使用说明方法的实验步骤,可完成本实验实训实验。For other steps, follow the experimental steps in the instructions of the independent module to complete the experimental training experiment.

在本例中,如果使用的单片机没有集成AD转换模块。可以调取分析本实验实训平台提供的A/D转换电路图,把红外测距模块的模拟输出端接该模块的一个模拟量输入端即可。In this example, if the microcontroller used does not have an integrated AD conversion module. The A/D conversion circuit diagram provided by this experimental training platform can be retrieved and analyzed, and the analog output terminal of the infrared distance measuring module can be connected to an analog input terminal of the module.

上述虽然结合附图对本发明的具体实施方式进行了描述,但并非对本发明保护范围的限制,所属领域技术人员应该明白,在本发明的技术方案的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或变形仍在本发明的保护范围以内。Although the specific implementation of the present invention has been described above in conjunction with the accompanying drawings, it does not limit the protection scope of the present invention. Those skilled in the art should understand that on the basis of the technical solution of the present invention, those skilled in the art do not need to pay creative work Various modifications or variations that can be made are still within the 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 Pending 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 Pending 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 (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106548691A (en) * 2017-01-19 2017-03-29 焦作大学 A kind of single-chip microcomputer experiment system
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
CN108520683A (en) * 2018-04-11 2018-09-11 广东松山职业技术学院 Multi-core shared single-platform experimental teaching device
CN108538161A (en) * 2018-04-18 2018-09-14 黄淮学院 A kind of New Type of Chip Microcomputer practicing teaching system
CN108802656A (en) * 2018-07-20 2018-11-13 国网湖北省电力有限公司宜昌供电公司 High voltage electroscope starts detector
CN109118916A (en) * 2018-11-01 2019-01-01 四川工商学院 A kind of single chip computer experiment actual training device
CN111599241A (en) * 2020-05-28 2020-08-28 广西民族师范学院 A virtual simulation system for Internet of things teaching
CN111613112A (en) * 2020-06-02 2020-09-01 广东石油化工学院 A circuit optimization method and system for a course virtual-real integration experiment platform
CN112596818A (en) * 2020-12-30 2021-04-02 上海众源网络有限公司 Application program control method, system and device
CN112820182A (en) * 2021-03-04 2021-05-18 华南农业大学 Experiment teaching device for cooling circulation system of automobile engine and using method
CN116453405A (en) * 2023-03-28 2023-07-18 大连理工大学 Virtual-real combined switching power supply simulation practice platform and method
CN117037576A (en) * 2023-08-09 2023-11-10 江苏信息职业技术学院 Portable virtual instrument experiment development board

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 仲恺农业工程学院 Singlechip 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 仲恺农业工程学院 Singlechip 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 (17)

* 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
CN106548691A (en) * 2017-01-19 2017-03-29 焦作大学 A kind of single-chip microcomputer experiment system
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
CN108520683A (en) * 2018-04-11 2018-09-11 广东松山职业技术学院 Multi-core shared single-platform experimental teaching device
CN108538161A (en) * 2018-04-18 2018-09-14 黄淮学院 A kind of New Type of Chip Microcomputer practicing teaching system
CN108802656B (en) * 2018-07-20 2024-01-16 国网湖北省电力有限公司宜昌供电公司 High voltage electroscope start detector
CN108802656A (en) * 2018-07-20 2018-11-13 国网湖北省电力有限公司宜昌供电公司 High voltage electroscope starts detector
CN109118916A (en) * 2018-11-01 2019-01-01 四川工商学院 A kind of single chip computer experiment actual training device
CN111599241A (en) * 2020-05-28 2020-08-28 广西民族师范学院 A virtual simulation system for Internet of things teaching
CN111599241B (en) * 2020-05-28 2022-11-25 广西民族师范学院 A virtual simulation system for Internet of Things teaching
CN111613112A (en) * 2020-06-02 2020-09-01 广东石油化工学院 A circuit optimization method and system for a course virtual-real integration experiment platform
CN112596818A (en) * 2020-12-30 2021-04-02 上海众源网络有限公司 Application program control method, system and device
CN112596818B (en) * 2020-12-30 2023-12-05 上海众源网络有限公司 Application program control method, system and device
CN112820182A (en) * 2021-03-04 2021-05-18 华南农业大学 Experiment teaching device for cooling circulation system of automobile engine and using method
CN116453405A (en) * 2023-03-28 2023-07-18 大连理工大学 Virtual-real combined switching power supply simulation practice platform and method
CN117037576A (en) * 2023-08-09 2023-11-10 江苏信息职业技术学院 Portable virtual instrument experiment development board

Similar Documents

Publication Publication Date Title
CN105913739A (en) Single-chip microcomputer modularization experiment training system and method based on virtual simulation platform
CN101281697A (en) Multifunctional MCU experimental development board
CN102306462B (en) Simulation teaching system for single-chip microcomputer curriculum
CN104900121B (en) A kind of Digital Electronics Experiment system and method based on intelligent Evaluation
CN201374128Y (en) Traffic signal control integrated experimental teaching device
CN112114899A (en) Chip debugging system and debugger
CN201069618Y (en) PLC simulation teaching device
CN217306014U (en) Non-code hand-held programming device
CN202171892U (en) Teaching platform for digital system design
CN204990920U (en) Digital electronic technique experimental system based on intelligence evaluation
CN202268115U (en) Portable dual-platform digital logic experiment device
CN202871158U (en) Experiment teaching and development board for one-chip microcomputers
CN201465353U (en) Demonstration device for terminating fault of twisted pair
CN211506896U (en) Digital electronic technology experiment system
CN103354053A (en) Divided FPGA (Field Programmable Gate Array) experimental box
CN2555547Y (en) Opening mono chip processor tester
CN214586487U (en) System with multifunctional chip development and test
CN203085040U (en) Singlechip learning development plate
CN207097308U (en) A kind of Multifunctional microprocessor and PLD experimental box
CN200993840Y (en) USB single-chip computer simulating experimental instrument
CN104064091A (en) Electronic building block type simulation device
CN211827329U (en) Arduino-based virtual reality teaching platform
CN206460699U (en) A kind of real integration experiment case of monolithic mechanism
CN203535872U (en) Experiment platform integrated with DSP, single-chip microcomputer and CPLD
CN201749600U (en) Single chip microcomputer comprehensive design experiment box

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

Application publication date: 20160831

RJ01 Rejection of invention patent application after publication