CN102194351A - 8051-or-AVR-based multi-core singlechip teaching experimental platform - Google Patents
8051-or-AVR-based multi-core singlechip teaching experimental platform Download PDFInfo
- Publication number
- CN102194351A CN102194351A CN 201110140985 CN201110140985A CN102194351A CN 102194351 A CN102194351 A CN 102194351A CN 201110140985 CN201110140985 CN 201110140985 CN 201110140985 A CN201110140985 A CN 201110140985A CN 102194351 A CN102194351 A CN 102194351A
- Authority
- CN
- China
- Prior art keywords
- avr
- chip microcomputer
- atmega32
- interface
- chip
- 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
Links
Images
Landscapes
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
本发明公开了一种基于8051或AVR的多核心单片机教学实验平台,属于嵌入式计算机领域。该平台的硬件包括主板和AVR转接板两块电路板,8051单片机采用AT89S52,AVR单片机采用ATMEGA32。AT89S52可直接插入主板工作,此时平台工作在8051模式下;ATMEGA32可通过AVR转接板插入主板工作,转接板完成从ATMEGA32引脚封装形式到AT89S52引脚封装形式的转换,此时平台工作在AVR模式下。主板由电源、基本功能部分和接口通信部分组成。平台软件系统分为两层,驱动层完成对两种单片机硬件资源的封装,应用层是包含14个实验的综合演示程序,在驱动层支持下运行,具有硬件无关特性。
The invention discloses an 8051 or AVR-based multi-core microcontroller teaching experiment platform, which belongs to the field of embedded computers. The hardware of the platform includes two circuit boards, the main board and the AVR adapter board. The 8051 single-chip microcomputer adopts AT89S52, and the AVR single-chip microcomputer adopts ATMEGA32. AT89S52 can be directly plugged into the motherboard to work, and the platform works in 8051 mode at this time; ATMEGA32 can be inserted into the motherboard through the AVR adapter board to work, and the adapter board completes the conversion from the ATMEGA32 pin package to the AT89S52 pin package, and the platform works at this time In AVR mode. The motherboard is composed of power supply, basic function part and interface communication part. The platform software system is divided into two layers. The driver layer completes the encapsulation of two kinds of single-chip hardware resources. The application layer is a comprehensive demonstration program including 14 experiments. It runs under the support of the driver layer and has hardware-independent characteristics.
Description
技术领域technical field
本发明属于嵌入式计算机领域,涉及一种基于8051/AVR的多核心单片机教学实验平台。The invention belongs to the field of embedded computers and relates to an 8051/AVR-based multi-core microcontroller teaching experiment platform.
背景技术Background technique
在目前高校的单片机课程教学中存在实验设备重复购置、设备功能与社会需求脱节等问题。一方面,单片机应用范围很广,不同场合适用不同类型的单片机,这些单片机之间存在较大差异,为了让学生能够适应社会的不同需要,高校往往需要购置多种类型单片机设备,这些设备之间有功能重叠部分,势必造成一定程度的浪费。另一方面,嵌入式计算机技术发展一日千里,各种单片机和外设型号不断推陈出新,在众多的选择中如何确定一套最适宜学生使用的实验设备,在复杂性、典型性、方便性、可靠性以及设备成本间如何取得最佳均衡是一个需要教育工作者认真研究的问题。经过大量调研,发现目前国内应用最广泛的是8051系列单片机和AVR系列单片机,如能设计一套教学实验平台,在涵盖各种常用典型设备的基础上,同时支持这两种单片机,即可达到一套设备承担两门实验课程的目的,有效降低设备成本,节约教学资源。In the current single-chip microcomputer course teaching in colleges and universities, there are problems such as repeated purchase of experimental equipment, and the disconnection between equipment functions and social needs. On the one hand, single-chip microcomputers have a wide range of applications, and different types of single-chip microcomputers are suitable for different occasions. There are large differences between these single-chip microcomputers. In order to enable students to adapt to different needs of society, colleges and universities often need to purchase multiple types of single-chip microcomputer equipment. There are overlapping functions, which will inevitably cause a certain degree of waste. On the other hand, with the rapid development of embedded computer technology, various single-chip microcomputers and peripheral models are constantly being introduced, how to determine a set of experimental equipment that is most suitable for students to use among many choices, in terms of complexity, typicality, convenience, and reliability And how to achieve the best balance between equipment costs is a problem that educators need to study carefully. After a lot of research, it is found that 8051 series single-chip microcomputers and AVR series single-chip microcomputers are the most widely used in China. If a teaching experiment platform can be designed to support these two kinds of single-chip microcomputers at the same time on the basis of covering various commonly used typical equipment, you can achieve One set of equipment undertakes the purpose of two experimental courses, effectively reducing equipment costs and saving teaching resources.
发明内容Contents of the invention
本发明要解决的技术问题是设计一块电路主板、一块AVR转接板,以及基于两种单片机的一套软件系统。该系统适用于单片机相关的教学和科研场合。The technical problem to be solved by the present invention is to design a circuit board, an AVR adapter board, and a set of software systems based on two single-chip microcomputers. The system is suitable for teaching and scientific research occasions related to single-chip microcomputer.
本发明的技术方案:Technical scheme of the present invention:
基于8051/AVR的多核心单片机教学实验平台,硬件包括主板和AVR转接板两块电路板,8051系列单片机采用AT89S52,AVR系列单片机采用ATMEGA32。软件包括基于AT89S52和ATMEGA32两种单片机的驱动层软件和应用层软件。Based on 8051/AVR multi-core single-chip teaching experiment platform, the hardware includes two circuit boards, the main board and the AVR adapter board, the 8051 series single-chip microcomputer adopts AT89S52, and the AVR series single-chip microcomputer adopts ATMEGA32. The software includes driver layer software and application layer software based on AT89S52 and ATMEGA32 MCUs.
基于8051/AVR的多核心单片机教学实验平台有两种工作模式,称为8051模式和AVR模式:The multi-core MCU teaching experiment platform based on 8051/AVR has two working modes, called 8051 mode and AVR mode:
1.8051模式:将AT89S52单片机插入主板的单片机插座,主板通过接口向单1.8051 mode: Insert the AT89S52 MCU into the MCU socket of the motherboard, and the
片机供电,单片机通过插座控制主板的所有硬件模块;在PC机的集成开发Chip microcomputer power supply, the single chip microcomputer controls all the hardware modules of the motherboard through the socket; in the integrated development of PC
环境控制下,可调试、下载程序到多核心单片机教学实验平台。Under environmental control, the program can be debugged and downloaded to the multi-core microcontroller teaching experiment platform.
2.AVR模式:AVR转接板上设计有40引脚单片机插座,将ATMEGA32单片2. AVR mode: The AVR adapter board is designed with a 40-pin single-chip socket, and the ATMEGA32 single-chip
机插入其中,再将AVR转接板插入主板单片机插座,由主板通过转接板向Insert the computer into it, and then insert the AVR adapter board into the socket of the motherboard single-chip microcomputer, and the motherboard will send
单片机供电,单片机通过转接板控制主板的所有硬件模块;在PC机的集成Single-chip microcomputer power supply, the single-chip microcomputer controls all hardware modules of the main board through the adapter board; in the integration of PC
开发环境控制下,可调试、下载程序到多核心单片机教学实验平台。Under the control of the development environment, the program can be debugged and downloaded to the multi-core microcontroller teaching experiment platform.
主板由电源、基本功能部分和接口通信部分组成。电源部分支持USB供电和外接直流供电两种方式,采用LM7805三端稳压器和LM1117-3.3集成稳压芯片为实验平台提供5V和3.3V电源,并包含按键复位电路。基本功能部分包括基准源模块、键盘输入模块、语音输入模块、语音输出模块、显示模块和蜂鸣器模块。基准源由LM336芯片提供,输出稳定的5V电压信号;键盘输入模块包括一个2*3小键盘;语音输入模块采用专业语音芯片ISD4004实现声音的录放;语音输出模块通过LM386芯片将语音信号放大后送至扬声器;显示模块包括发光二极管、共阴极4位8段数码管、8*8LED点阵和OCM12864液晶显示器;蜂鸣器采用HYDZ型,用NPN型三极管驱动。接口通信部分包括单片机插座、ISP程序下载接口、DS18B20温度传感器接口、MAX232串行接口、红外通信接口、继电器输出接口和步进电机接口。The motherboard is composed of power supply, basic function part and interface communication part. The power supply part supports two ways of USB power supply and external DC power supply. The LM7805 three-terminal voltage regulator and LM1117-3.3 integrated voltage regulator chip are used to provide 5V and 3.3V power supplies for the experimental platform, and include a button reset circuit. The basic function part includes reference source module, keyboard input module, voice input module, voice output module, display module and buzzer module. The reference source is provided by the LM336 chip, which outputs a stable 5V voltage signal; the keyboard input module includes a 2*3 keypad; the voice input module uses a professional voice chip ISD4004 to record and play the voice; the voice output module amplifies the voice signal through the LM386 chip and sends it to the To the speaker; the display module includes light-emitting diodes, common cathode 4-digit 8-segment digital tubes, 8*8 LED dot matrix and OCM12864 liquid crystal display; the buzzer adopts HYDZ type and is driven by NPN type transistor. The interface communication part includes single chip socket, ISP program download interface, DS18B20 temperature sensor interface, MAX232 serial interface, infrared communication interface, relay output interface and stepper motor interface.
AVR转接板的功能是完成从ATMEGA32引脚封装形式到AT89S52引脚封装形式的转换。AT89S52和ATMEGA32都采用DIP40封装,但二者的引脚次序不同。实验平台的主板电路按照AT89S52单片机的引脚定义进行设计,为了能将ATMEGA32单片机插入主板的单片机插座,必须通过AVR转接板调整ATMEGA32单片机的引脚次序。转接板将ATMEGA32单片机的32个I/O口——P0.0至P3.7映射至AT89S52的P0.0至P3.7,将ATMEGA32的2个晶振接口XTAL1、XTAL2映射至AT89S52的XTAL1、XTAL2,将ATMEGA32的VCC、GND和RESET引脚映射至AT89S52的VCC、GND和RESET,将ATMEGA32的AVCC和AREF引脚映射至AT89S52的和VPP引脚,将ATMEGA32的31号引脚GND接地,AT89S52的30号引脚悬空。The function of the AVR adapter board is to complete the conversion from ATMEGA32 pin package to AT89S52 pin package. Both AT89S52 and ATMEGA32 are packaged in DIP40, but the pin order of the two is different. The mainboard circuit of the experimental platform is designed according to the pin definition of the AT89S52 single-chip microcomputer. In order to insert the ATMEGA32 single-chip microcomputer into the mainboard single-chip microcomputer socket, the pin sequence of the ATMEGA32 single-chip microcomputer must be adjusted through the AVR adapter board. The adapter board maps the 32 I/O ports of the ATMEGA32 MCU - P0.0 to P3.7 to the P0.0 to P3.7 of the AT89S52, and maps the two crystal interfaces XTAL1 and XTAL2 of the ATMEGA32 to the XTAL1 and XTAL2 of the AT89S52. XTAL2, map VCC, GND and RESET pins of ATMEGA32 to VCC, GND and RESET of AT89S52, map AVCC and AREF pins of ATMEGA32 to AT89S52 and VPP pin, ground the 31st pin GND of ATMEGA32, and the 30th pin of AT89S52 dangling.
软件系统包括驱动层软件和应用层软件两部分,驱动层完成对硬件的封装,使应用层具有硬件无关性。由于实验平台支持8051和AVR两种单片机,因此驱动层软件包含对应的两个版本:基于8051的驱动层软件和基于AVR的驱动层软件。驱动层软件包括所有硬件模块和接口的驱动程序,以函数库形式存在,并向上层软件提供统一的调用接口。应用层软件调用驱动层软件接口,完成对硬件的控制,实现了一个综合演示程序,系统上电时会在LCD上显示一个顶层功能演示菜单,由用户通过按键选择要演示的模块功能,演示完毕后,可退回至顶层菜单。The software system includes two parts: the driver layer software and the application layer software. The driver layer completes the packaging of the hardware, making the application layer hardware-independent. Because the experimental platform supports 8051 and AVR two single-chip microcomputers, the driver layer software includes two corresponding versions: 8051-based driver layer software and AVR-based driver layer software. The driver layer software includes drivers for all hardware modules and interfaces, exists in the form of a function library, and provides a unified call interface to the upper layer software. The application layer software calls the driver layer software interface to complete the control of the hardware and implement a comprehensive demonstration program. When the system is powered on, a top-level function demonstration menu will be displayed on the LCD. The user can select the module function to be demonstrated by pressing the button, and the demonstration is completed. After that, you can return to the top menu.
本发明的有益效果在于可使用不同的单片机控制主板硬件资源,在实验教学中,使用同一套设备,根据不同的课程需求更换不同的单片机,实现多门实验课程共用一套设备,有效降低了设备购置费和师资培训费。The beneficial effect of the present invention is that different single-chip microcomputers can be used to control the hardware resources of the main board. In the experimental teaching, the same set of equipment is used, and different single-chip microcomputers are replaced according to different course requirements, so that multiple experimental courses share a set of equipment, effectively reducing the equipment cost. Acquisition fees and teacher training fees.
附图说明Description of drawings
图1是本发明的系统结构图。Fig. 1 is a system structure diagram of the present invention.
图2是本发明的主板结构框图。Fig. 2 is a structural block diagram of the motherboard of the present invention.
图3是本发明的AVR转接板示意图。Fig. 3 is a schematic diagram of the AVR adapter board of the present invention.
其中:1ATMEGA32单片机引脚;2AT89S52单片机;3引脚间电路连线。Among them: 1ATMEGA32 single-chip microcomputer pin; 2AT89S52 single-chip microcomputer; 3-pin circuit connection.
图4是本发明的软件结构框图。Fig. 4 is a software structural block diagram of the present invention.
具体实施方式Detailed ways
以下结合发明内容和说明书附图详细说明本发明的具体实施方式。The specific embodiments of the present invention will be described in detail below in combination with the summary of the invention and the accompanying drawings.
如图1所示,基于8051/AVR的多核心单片机教学实验平台包括3个组成部分:主板、转接板,以及软件系统。As shown in Figure 1, the 8051/AVR-based multi-core MCU teaching experiment platform includes three components: main board, adapter board, and software system.
(1)主板(1) Motherboard
基于8051/AVR的多核心单片机教学实验平台的主板硬件资源,按照功能可划分为电源、基本功能部分和接口通信部分三部分,如图2所示。The motherboard hardware resources of the 8051/AVR-based multi-core MCU teaching experiment platform can be divided into three parts according to the functions: power supply, basic function part and interface communication part, as shown in Figure 2.
电源部分设置有两个可选的电源输入方式,分别为USB供电与外接直流供电,通过单刀双掷开关来选择。USB供电方式中,直接将PC机USB接口的5V直流电引入实验平台;外接直流供电方式中,为实验平台引入9V直流电压,使用LM7805三端稳压器将电压稳定为5V。实验平台还需要一个3.3V电源,在前述两种供电方式下,使用LM1117-3.3稳压芯片将5V电压稳定在3.3V。供电端接有熔断电流为500mA的自恢复保险丝,可保护电路板上的硬件模块不会被瞬时大电流破坏。同时,实验平台设计有电源引出端子,可将实验平台的5V电源和3.3V电源引出,供其他设备使用。AT89S52和ATMEGA32单片机的复位引脚电平恰好相反,实验平台为这两种单片机各设计了一个复位按键,通过一个三位跳线器选择复位AT89S52或者复位ATMAGE32。The power supply part is provided with two optional power input methods, which are USB power supply and external DC power supply, which are selected by a single-pole double-throw switch. In the USB power supply mode, the 5V DC from the USB interface of the PC is directly introduced into the experimental platform; in the external DC power supply mode, a 9V DC voltage is introduced into the experimental platform, and the voltage is stabilized to 5V by using the LM7805 three-terminal voltage regulator. The experimental platform also needs a 3.3V power supply. In the aforementioned two power supply modes, use the LM1117-3.3 voltage regulator chip to stabilize the 5V voltage at 3.3V. The power supply terminal is connected with a self-recovery fuse with a fusing current of 500mA, which can protect the hardware modules on the circuit board from being damaged by instantaneous high current. At the same time, the experimental platform is designed with power lead-out terminals, which can lead out the 5V power supply and 3.3V power supply of the experimental platform for use by other equipment. The reset pin levels of AT89S52 and ATMEGA32 microcontrollers are just opposite. The experimental platform has designed a reset button for each of these two microcontrollers, and a three-position jumper can be used to choose to reset AT89S52 or reset ATMAGE32.
基本功能模块包括基准源模块、键盘输入模块、语音输入模块、语音输出模块、显示模块和蜂鸣器模块。基准源电路由LM336芯片配合电容电阻实现,为ATMEGA32单片机提供5V基准电压。实验平台设计有2*3按键的小键盘,采用行列扫描方式检测按键,采用软件延时20毫秒的方式处理按键抖动。语音输入模块采用ISD4004语音芯片,接受咪头的声音信号并存储在片内Flash存储器中,并可同步送往语音输出模块。语音输出模块接收语音输入模块提供的音频信号,将其输出到音频放大芯片LM386的正向输入端,通过10K的滑动电阻可调节放大20-200倍,最后将语音信号经由扬声器接口输出。显示输出模块包含4个发光二极管、共阴极4位8段数码管、8*8LED点阵和OCM12864液晶显示器。其中,4个发光二极管的颜色分别为红、黄、蓝、白;LED点阵由两片74HC595锁存器控制;OCM12864液晶显示器由一片74HC595锁存器控制。数码管和12864液晶屏由7个相同的单片机I/O口控制,为了避免数据冲突,数码管工作时,液晶屏不可同时插接在12864接口中;测试液晶屏时,只需拔下数码管的跳线帽开关。蜂鸣器采用HYDZ型号,用NPN型三极管控制,三极管的基极通过一个跳线器连接至单片机的I/O口。The basic function modules include a reference source module, a keyboard input module, a voice input module, a voice output module, a display module and a buzzer module. The reference source circuit is realized by LM336 chip with capacitor and resistor, which provides 5V reference voltage for ATMEGA32 microcontroller. The experimental platform is designed with a small keyboard with 2*3 buttons. The row and column scanning method is used to detect the buttons, and the software delay of 20 milliseconds is used to deal with the button jitter. The voice input module adopts the ISD4004 voice chip, which receives the voice signal from the microphone and stores it in the on-chip Flash memory, and sends it to the voice output module synchronously. The voice output module receives the audio signal provided by the voice input module, and outputs it to the positive input terminal of the audio amplifier chip LM386, which can be adjusted and amplified by 20-200 times through a 10K sliding resistor, and finally outputs the voice signal through the speaker interface. The display output module includes 4 light-emitting diodes, 4-digit 8-segment digital tube with common cathode, 8*8 LED dot matrix and OCM12864 liquid crystal display. Among them, the colors of the four light-emitting diodes are red, yellow, blue, and white; the LED dot matrix is controlled by two 74HC595 latches; the OCM12864 liquid crystal display is controlled by a 74HC595 latch. The digital tube and the 12864 LCD screen are controlled by 7 identical single-chip I/O ports. In order to avoid data conflicts, when the digital tube is working, the LCD screen cannot be plugged into the 12864 interface at the same time; when testing the LCD screen, just unplug the digital tube jumper cap switch. The buzzer adopts the HYDZ model and is controlled by an NPN transistor. The base of the transistor is connected to the I/O port of the microcontroller through a jumper.
接口通信部分包括单片机插座、ISP程序下载接口、温度传感器接口、串行接口、红外通信接口、继电器输出接口与步进电机接口。实验平台设置有40针单片机插座,可以插入AT89S52单片机或AVR转接板。ISP程序下载接口符合ATMEL标准,通过编程器与PC机的USB接口相连,可实现程序在线下载,并可同时支持AT89S52和ATMEGA32两种单片机。温度传感器接口可安装DS18B20测温芯片,通过一线总线方式完成温度测量、转换与传输,总线接有4.7KΩ上拉电阻。串行接口采用RS232C标准九针接口,由MAX3232控制芯片实现数据收发与电平转换。红外通信接口可安装一体化红外线探头,完成红外控制相关实验。继电器输出接口包括一个SRS-05VDC-SL型继电器,耐压30V,能够输出开关量。步进电机接口使用MC1413达林顿管作为驱动芯片,7个输入和输出端口全部用排针接出,工作时用杜邦线灵活转接,可以控制多种步进电机,同时也可控制直流电机;电机电源部分接有高容量钽电容作为电机滤波器,减少对主板的信号干扰。The interface communication part includes single-chip microcomputer socket, ISP program download interface, temperature sensor interface, serial interface, infrared communication interface, relay output interface and stepping motor interface. The experimental platform is equipped with a 40-pin microcontroller socket, which can be inserted into an AT89S52 microcontroller or an AVR adapter board. The ISP program download interface conforms to the ATMEL standard, and the program can be downloaded online by connecting the programmer to the USB interface of the PC, and can simultaneously support AT89S52 and ATMEGA32 single-chip microcomputers. The temperature sensor interface can be installed with a DS18B20 temperature measurement chip, and the temperature measurement, conversion and transmission can be completed through a one-line bus. The bus is connected with a 4.7KΩ pull-up resistor. The serial interface adopts RS232C standard nine-pin interface, and the MAX3232 control chip realizes data sending and receiving and level conversion. The infrared communication interface can be installed with an integrated infrared probe to complete experiments related to infrared control. The relay output interface includes a SRS-05VDC-SL relay with a withstand voltage of 30V and can output switching values. The stepper motor interface uses MC1413 Darlington tube as the driver chip, and the 7 input and output ports are all connected by pin headers. When working, they can be flexibly switched with Dupont wires, which can control a variety of stepper motors, and can also control DC motors ; The motor power supply part is connected with a high-capacity tantalum capacitor as a motor filter to reduce signal interference to the main board.
主板各模块与单片机引脚的对应关系如下表所示:The corresponding relationship between each module on the motherboard and the pins of the microcontroller is shown in the following table:
(2)AVR转接板(2) AVR adapter board
基于8051/AVR的多核心单片机教学实验平台的AVR转接板如图3所示,负责将ATMEGA32单片机引脚映射至AT89S52单片机的引脚位置。这两款单片机都采用DIP40封装形式,只需通过电路连接功能相同的引脚,从而控制主板资源。具体连接方式为,AVR转接板将ATMEGA32单片机的32个I/O口P0.0至P3.7映射至AT89S52的对应I/O口,将前者的2个晶振接口XTAL1、2映射至后者的对应接口,将前者的VCC、GND和RESET引脚映射至后者的对应引脚,将前者的AVCC和AREF引脚映射至后者的和引脚,另外,ATMEGA32单片机的31号引脚GND接地,AT89S52的30号引脚悬空。The AVR adapter board of the multi-core MCU teaching experiment platform based on 8051/AVR is shown in Figure 3, which is responsible for mapping the pins of the ATMEGA32 MCU to the pin positions of the AT89S52 MCU. These two single-chip microcomputers are both in DIP40 package, and only need to connect the pins with the same function through the circuit to control the resources of the motherboard. The specific connection method is that the AVR adapter board maps the 32 I/O ports P0.0 to P3.7 of the ATMEGA32 microcontroller to the corresponding I/O ports of the AT89S52, and maps the two crystal oscillator interfaces XTAL1 and 2 of the former to the latter The corresponding interface of the former, the VCC, GND and RESET pins of the former are mapped to the corresponding pins of the latter, and the AVCC and AREF pins of the former are mapped to the latter’s and In addition, pin 31 of ATMEGA32 MCU is GND grounded, and pin 30 of AT89S52 dangling.
转接板的引脚对应关系详情如下表所示:The details of the pin correspondence of the adapter board are shown in the table below:
(3)软件系统(3) Software system
基于8051/AVR的多核心单片机教学实验平台,通过软件系统实现对实验平台资源的完全控制,软件系统分为两个层次,底层的驱动层和上层的应用层。驱动层包括基于AT89S52的一套驱动函数库,以及基于ATMAGE32的一套驱动函数库。驱动层直接与硬件交互,通过封装底层硬件的功能,为上层软件提供统一的编程接口;应用层包含一个综合演示程序,利用驱动层提供的编程接口控制实验平台硬件资源,具有硬件无关特性。当使用8051单片机时,驱动层基于8051设计;当使用AVR单片机时,驱动层基于AVR设计。两种类型的驱动层向上层提供统一的接口函数调用形式,故系统的应用层对于两种单片机来说是一致的。软件系统结构框图如图4所示。Based on the 8051/AVR multi-core microcontroller teaching experiment platform, the complete control of the resources of the experiment platform is realized through the software system. The software system is divided into two levels, the bottom driver layer and the upper application layer. The driver layer includes a set of driver function libraries based on AT89S52 and a set of driver function libraries based on ATMAGE32. The driver layer directly interacts with the hardware, and provides a unified programming interface for the upper-layer software by encapsulating the functions of the underlying hardware; the application layer includes a comprehensive demonstration program, which uses the programming interface provided by the driver layer to control the hardware resources of the experimental platform, and has hardware-independent characteristics. When using 8051 microcontroller, the driver layer is based on 8051 design; when using AVR microcontroller, the driver layer is based on AVR design. The two types of driver layers provide a unified interface function call form to the upper layer, so the application layer of the system is consistent for the two types of single-chip microcomputers. The block diagram of the software system is shown in Figure 4.
驱动层包含的主要模块与主板硬件一一对应,模块以函数库形式存在,具体包括12个:蜂鸣器驱动、按键驱动、语音输入驱动、语音输出驱动、数码管驱动、点阵驱动、液晶显示器驱动、红外接口驱动、串行接口驱动、步进电机驱动、温度传感器驱动、继电器驱动。The main modules contained in the driver layer correspond to the motherboard hardware one by one. The modules exist in the form of a function library, specifically including 12: buzzer driver, button driver, voice input driver, voice output driver, digital tube driver, dot matrix driver, LCD Display driver, infrared interface driver, serial interface driver, stepper motor driver, temperature sensor driver, relay driver.
应用层包括一个综合演示程序,该程序包含多个功能,每个功能是一个实验演示程序,向使用者展示对应硬件部分的操作方式。系统上电时,液晶显示器显示一个顶层功能演示菜单,由用户通过按键选择要演示的模块功能,演示完毕后,软件流程自动退回至顶层菜单。The application layer includes a comprehensive demonstration program, which includes multiple functions, and each function is an experimental demonstration program to show the user the operation mode of the corresponding hardware part. When the system is powered on, the LCD displays a top-level function demonstration menu, and the user selects the module function to be demonstrated by pressing the buttons. After the demonstration is completed, the software process automatically returns to the top-level menu.
顶层菜单所包含的功能项如下表所示:The function items contained in the top-level menu are shown in the table below:
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110140985 CN102194351A (en) | 2011-05-30 | 2011-05-30 | 8051-or-AVR-based multi-core singlechip teaching experimental platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110140985 CN102194351A (en) | 2011-05-30 | 2011-05-30 | 8051-or-AVR-based multi-core singlechip teaching experimental platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102194351A true CN102194351A (en) | 2011-09-21 |
Family
ID=44602341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110140985 Pending CN102194351A (en) | 2011-05-30 | 2011-05-30 | 8051-or-AVR-based multi-core singlechip teaching experimental platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102194351A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103473649A (en) * | 2013-09-17 | 2013-12-25 | 国家电网公司 | Intelligent tool selection device based on single-chip microcomputer and method thereof |
CN103646585A (en) * | 2013-12-17 | 2014-03-19 | 张玉馥 | Embedded single-chip microcomputer application technology project training system |
CN104240566A (en) * | 2013-06-18 | 2014-12-24 | 北京航天芯光科技有限公司 | Electronic information comprehensive experiment system and experiment method |
CN106426288A (en) * | 2016-11-21 | 2017-02-22 | 丁可 | Robot training device |
CN108073543A (en) * | 2016-11-12 | 2018-05-25 | 北京迪文科技有限公司 | A kind of 8051 processors realize multinuclear interconnection SOC |
CN108682246A (en) * | 2018-07-18 | 2018-10-19 | 江苏华维电力科技有限公司 | A kind of multifunction test instrument |
CN109446563A (en) * | 2018-09-25 | 2019-03-08 | 大连理工大学 | A kind of test method using single-chip microcontroller state verification pen |
CN111489618A (en) * | 2020-06-17 | 2020-08-04 | 北京赛思博雅科技有限公司 | Card-inserting type single-chip microcomputer suite for computer programming teaching |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667168A (en) * | 2009-06-19 | 2010-03-10 | 深圳市鸥鹏科技有限公司 | Experimental development board of multi-functional single chip |
-
2011
- 2011-05-30 CN CN 201110140985 patent/CN102194351A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667168A (en) * | 2009-06-19 | 2010-03-10 | 深圳市鸥鹏科技有限公司 | Experimental development board of multi-functional single chip |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104240566A (en) * | 2013-06-18 | 2014-12-24 | 北京航天芯光科技有限公司 | Electronic information comprehensive experiment system and experiment method |
CN103473649A (en) * | 2013-09-17 | 2013-12-25 | 国家电网公司 | Intelligent tool selection device based on single-chip microcomputer and method thereof |
CN103646585A (en) * | 2013-12-17 | 2014-03-19 | 张玉馥 | Embedded single-chip microcomputer application technology project training system |
CN103646585B (en) * | 2013-12-17 | 2016-05-18 | 张玉馥 | Embedded scm application technology Item Practice Training system |
CN108073543A (en) * | 2016-11-12 | 2018-05-25 | 北京迪文科技有限公司 | A kind of 8051 processors realize multinuclear interconnection SOC |
CN106426288A (en) * | 2016-11-21 | 2017-02-22 | 丁可 | Robot training device |
CN108682246A (en) * | 2018-07-18 | 2018-10-19 | 江苏华维电力科技有限公司 | A kind of multifunction test instrument |
CN109446563A (en) * | 2018-09-25 | 2019-03-08 | 大连理工大学 | A kind of test method using single-chip microcontroller state verification pen |
CN109446563B (en) * | 2018-09-25 | 2023-04-18 | 大连理工大学 | Test method using single chip microcomputer state test pen |
CN111489618A (en) * | 2020-06-17 | 2020-08-04 | 北京赛思博雅科技有限公司 | Card-inserting type single-chip microcomputer suite for computer programming teaching |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102194351A (en) | 8051-or-AVR-based multi-core singlechip teaching experimental platform | |
KR101933597B1 (en) | Coding Tool Kit | |
CN101281697A (en) | Multifunctional MCU experimental development board | |
CN206574350U (en) | A kind of teaching experiment board based on double-core | |
CN105913739A (en) | Single-chip microcomputer modularization experiment training system and method based on virtual simulation platform | |
CN104571991A (en) | Control panel, illumination equipment and illumination method | |
CN101211516B (en) | Single chip machine integrated experiment platform facing embedded system | |
KR20170135481A (en) | Coding Tool Kit | |
CN204348194U (en) | A kind of single-chip microcomputer and experimental panel for programmable logic device | |
CN109949671A (en) | A Teaching Experiment Platform Based on STM32 SCM | |
CN202033911U (en) | Singlechip interactive teaching system | |
CN202650370U (en) | Embedded System Design Teaching Platform | |
CN200993840Y (en) | USB single-chip computer simulating experimental instrument | |
CN108564859A (en) | SCM Based Multifunctional experiment development system | |
CN113760256A (en) | Non-code programming method and hand-held programming device using same | |
CN202171892U (en) | Teaching platform for digital system design | |
CN201837865U (en) | Development board for single chip computer teaching | |
CN110796939A (en) | Programming learning development board with unified extended interface | |
CN202352145U (en) | Single chip microcomputer experiment system based on Proteus | |
CN212933911U (en) | Learning experiment board of internet of things based on Esp8266 | |
CN211786698U (en) | Lower computer experimental device based on C # programming | |
CN204303203U (en) | Microcontroller experiment development device | |
CN202600683U (en) | Freescale series microcontroller embedded system development platform | |
CN218647542U (en) | Singlechip development board | |
CN202189493U (en) | 89S51 ISP singlechip modularized experiment development platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110921 |