Portable universal 51 teaching experimental instrument for single chip microcomputers
Technical field
The utility model relates to a kind of teaching and experiment equipment, especially carries out the portable universal experiment instrument of 51 single-chip microcomputer comprehensive exploitations.
Background technology
Single-chip microcomputer is a specialized courses that integrates computer hardware technology and software engineering, in the specialties such as the electronics of universities and colleges, computing machine, robotization, electromechanical integration consequence is arranged.This Curriculum Practice is very strong, and the experiment that only depends on teaching programme to arrange is very limited to the raising of students ' practical ability, innovation ability and overall qualities, is difficult to satisfy the demand of employing unit.For effectively improving student's single-chip microcomputer application expertise, the student should have more experimental implementation and debug time, and single chip computer experiment carries out at hardware experiment platform usually, traditional experimental box volume greatly, not portable, expensive, damage easily, maintenance, difficult management are difficult to popularize.And basically all do not have download online and copying, need to join in addition programmable device, emulator etc., inconvenient student's study.
For above problem, simple type 51 singlechip experimental facilities have appearred on the recent market, link to each other with PC by RS232 serial port or parallel ports of printer and to download, the power supply of use external power supply, when interface connects, generally mainframe box need to be taken out of from computer, could be connected with cabinet RS232 serial port or parallel port behind, at least use 2 to 3 cables (power lead, parallel or serial port downloading wire etc.), and unit or school's Training Room machine are more fixing, mobile very inconvenient, how line also is not easy to the student is carried.
The USB USB (universal serial bus), the main flow machine has this interface now.Most notebook and main flow desktop computer have all been cast out serial ports and parallel port, even also can't realize downloading so experiment instrument leaves the serial or parallel download mouth of RS232, the single USB interface of using this experiment instrument realizes that serial ports is downloaded or download the parallel port, and can provide power supply for single-chip microcomputer work, not only solved the problem of downloading without string, parallel port, also simplified the experiment instrument Wiring device, downloaded and carry and all have stronger convenience.
Summary of the invention
The purpose of this utility model is exactly the experiment device for teaching that integrates editor, compiles, downloads and debug that provides a cover to be connected with PC by USB interface to the scholar, and this experimental provision has versatility and portability.
The technical solution adopted in the utility model is: experiment instrument is by kernel control module, peripheral module and download module three parts form, kernel control module is made of the STC89C/SXX series of STC Corporation and AT89C/SXX series main control chip and the minimum support circuit of atmel corp, download module mainly is made of CH341A chip and support circuit thereof, and peripheral module is mainly by usb interface module, power module, the diode lampet, keyboard, the LED charactron, the LCD liquid crystal, ultrasonic sensor, temperature sensor, the HALL sensor, the infrared emission receiving circuit, current/voltage and power amplification circuit, A/D or D/A change-over circuit, signal driver and amplifying circuit, eeprom memory, clock, timer circuit, Control, light sensor, direct current generator and stepper motor module composition.
Specifically, the main control singlechip of this experiment instrument is the direct insertion chip of 40 pin of the AT89C/SXX series of the STC89C/SXX series of STC Corporation and atmel corp, it is main control chip that download module is selected the ooze CH341 of permanent company of Nanjing, can realize that the USB mouth turns serial ports or download the parallel port, thereby realize many moneys single-chip microcomputer of this series is carried out online programming and download, temperature sensor chip is DS18B20, A/D or D/A change-over circuit main control chip are PCF8591, current/voltage and power amplification circuit chip are LM324, eeprom memory chip AT24C02, clock chip is DS1302, character LCD liquid crystal is selected LCD1602, Chinese character LCD liquid crystal is selected LCD12864, signal driver and amplifying circuit are selected ULN2003 drive amplification chip, the ultrasonic sensor circuit is comprised of ultrasound wave emitting head and Receiver, the ultrasound wave decoding chip is CX20106A, the infrared emission receiving circuit is selected infrared integrated head 1838 and infrared transmitting tube, photosensitive sensor module is selected CDS photo-resistor, direct current generator, stepper motor and relay rated operational voltage are 5V.
This experiment instrument can be finished diode lampet, keyboard, LED charactron, LCD liquid crystal, ultrasonic sensor, temperature sensor, HALL sensor, infrared emission receiving circuit, current/voltage and power amplification circuit, A/D or D/A change-over circuit, eeprom memory, clock, timer circuit, Control, light sensor, direct current generator and the experiment of stepper motor peripheral interface; During experiment if with the downloading wire USB mouth of this experiment instrument with after the USB mouth of PC links to each other, according to the objective chip model downloading mode wire jumper is set, under the KEIL environment, write experiment instrument peripheral circuit driver, after direct editing, the compiling, can carry out download online and debugging by USB interface.
The utility model has the advantage of:
1), experiment instrument is supported online programming, download and the debugging of the mainstream chip of well-known 51 single-chip microcomputer manufacturers more than 2;
2), the experiment instrument download interface is the USB mouth, solved present notebook and desktop computer substantially without serial ports and parallel port and can't realize the problem downloaded;
3) the experiment instrument volume is little, and communicating by letter with PC only needs a USB line, and the main control chip plug is convenient, from the PC work to take power, need not external power supply by the USB mouth.
Description of drawings
Fig. 1 is surface structure synoptic diagram of the present utility model.
Embodiment
By reference to the accompanying drawings the utility model experiment instrument is described in further detail now.These accompanying drawings are the synoptic diagram of simplification, basic structure of the present utility model only is described in a schematic way, so it only show the structure relevant with the utility model.
As shown in Figure 1 be the integral structure layout of experiment instrument, turn serial ports and parallel port circuit, temperature sensor, A/D or D/A change-over circuit, keyboard circuit, LCD interface, LED display circuit, ultrasonic circuit, infrared receiving/transmission circuit, HALL sensor, operational amplification circuit and signal drive circuit etc. form by USB interface, USB; The 5V power supply that experiment instrument adopts usb bus to provide, single-chip microcomputer can be selected the STC89C/SXX series of STC Corporation, the AT89C/SXX series of atmel corp or the direct insertion chip of 40 pin of the P89V51 of Philips company series; USB converting interface circuit uses the ooze CH341A chip of permanent company of Nanjing, the USB general-purpose interface is converted to serial ports to the CH341A control chip or download the parallel port, different according to the objective chip downloading mode during download, the SDA pin level of controlling CH341A by the mode of wire jumper realizes the downloading mode conversion, the unsettled then USB of SDA pin mouth turns the serial ports downloading mode, SDA pin ground connection then USB mouth turns the parallel port downloading mode, light emitting diode light on and off indication USB device connection status.
Digital temperature sensor is selected DS18B20, and unibus links to each other with the I/O mouth of single-chip microcomputer, can measure in real time Current Temperatures, and precision is high, and switching time is short, does not need outside analog to digital conversion; A/D, D/A change by PCF8591 as main control chip, realize the information acquisition of 4 tunnel analog input amounts, four kinds of different acquisition modes are arranged, be used the automatic switch experiment that can realize the street lamp at night with photoresistance, be used the function that can realize industrial instrument, voltage table with LM324 and realize, pass through I
2The C bus mode can realize the modulus amount transmission, read and storage operation, also can finish the conversion of the external analog quantity of experiment instrument; Ultrasound wave uses the 74HC04 chip to consist of the driving circuit of emission, receives ultrasound wave by CX20106A decoding chip circuit, can finish the ultrasonic ranging experiment, such as reverse radar system, ultrasound wave gate control system; Infrared transmitting tube sends sightless infrared light by the carrier wave of 38khz, is received and is processed corresponding function code by 1838 infrared receiving tubes, realizes decoding and the control system exploitation of diverse telepilot; The NE555 squarer also can be designed to timer, can produce accurately square wave, can do the test of PWM waveform; Also design AT24C02 memory circuit, DS1302 real time clock circuit and audio amplifier circuit on the experiment instrument, can finish relevant serial experiment and development system.
Most of module can concurrent working in the experiment instrument, and using 3 74HC573 parallel port latchs is that single-chip microcomputer P0 mouth has expanded 32 output pins, drives respectively 8 LED lampets, 24 common anode charactron; Connect NUL2003 by a 74HC573 latch and drive the chip controls hummer, relay, external loudspeaker, external stepper motor and external direct current generator, and the P0 pin is multiplexing control LCD12864 and two LCDs of LCD1602 also, and by expanding these abundant input and output pin resources, experiment instrument can concurrently be finished exploitation and the experiment of a plurality of integrated projects, and can guarantee that whole system is safe and reliable to operation, interference-free.
The just embodiment of this experiment instrument of describing in the above instructions, the various fleshes and bloods that illustrate not this experiment instrument are construed as limiting, the person of an ordinary skill in the technical field after having read instructions can to before described embodiment make an amendment or be out of shape, and do not deviate from essence and the scope of utility model.