CN2904109Y - Pocket 51 series single chip machine simulator - Google Patents

Pocket 51 series single chip machine simulator Download PDF

Info

Publication number
CN2904109Y
CN2904109Y CN 200620095654 CN200620095654U CN2904109Y CN 2904109 Y CN2904109 Y CN 2904109Y CN 200620095654 CN200620095654 CN 200620095654 CN 200620095654 U CN200620095654 U CN 200620095654U CN 2904109 Y CN2904109 Y CN 2904109Y
Authority
CN
China
Prior art keywords
circuit
usb
single chip
chip
emulator
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.)
Expired - Fee Related
Application number
CN 200620095654
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.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
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 Wuhan University WHU filed Critical Wuhan University WHU
Priority to CN 200620095654 priority Critical patent/CN2904109Y/en
Application granted granted Critical
Publication of CN2904109Y publication Critical patent/CN2904109Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Microcomputers (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The utility model discloses a mini 51 series single chip simulator, relating to a single chip simulator. The utility model takes the electric circuit 3 of the single chip machine as the core, the electric circuit 3 of the single chip machine are separately connected to the returning circuit 1, the inner and outer crystal oscillation changeover circuit 2, the USB to RS 232 interface circuit 4, the pin protection circuit 5; The USB to RS232 interface circuit 4 is also connected to the PC machine 6, characterized in that: 1) 64K+8K super simulation function; 2) USB communication function; 3) convenience function; 4) the inner and outer crystal oscillation changeover function; 5) the pin protection function. In a word, the utility model has the advantage of small volume, light weight, high reliability, low price and no additional power source because the USB interface technology is applied, so the utility model has extensive application prospect.

Description

Pocket 51 series monolithic emulators
Technical field
The utility model relates to a kind of singlechip emulator, relates in particular to a kind of pocket 51 series monolithic emulators.
Background technology
In recent years, single-chip microcomputer has obtained in fields such as industrial process control, instrument and meter for automation, intelligent electric appliances using widely.
Singlechip emulator is to be used for substituting the developing instrument that single-chip microcomputer carries out hardware and software debugging in product development process.Use singlechip emulator can carry out debugging such as single step, breakpoint, the variation of scrutiny program single-chip microcomputer RAM in service, content of registers, the ruuning situation of procedures of observation to Single Chip Microcomputer (SCM) program; Meanwhile can also carry out real-time debug to hardware circuit.Use that singlechip emulator can be found rapidly, the mistake in the correction program, shorten cycle of microcomputer development greatly.If do not use singlechip emulator, and utilize single-chip programmer (fever writes) repeatedly the programming single-chip microcomputer develop, to the bug patch in the program design, just can only be by analysis, modification of program, programming again, test is finished once more, so just increased the difficulty of debugging greatly, prolonged the construction cycle, particularly difficult for the developer that the microcomputer development experience is not enriched especially.
The SST89E564RD single-chip microcomputer of American SS T company is a kind of in 51 series monolithics, has ISP (on-line system is able to programme) function, the program serializable is downloaded, inside has FLASH ROM can be erasable repeatedly, 0000~FFFFH wherein, amounting to 64K is the user program space, and 10000~11FFFH 8K altogether is that the emulator watchdog routine is used.Because the memory construction of SST89E564RD uniqueness makes SST89E564RD not only can be used as 51 general single-chip microcomputers, and is equipped with a spot of peripheral circuit, can make 51 series monolithic emulators.Combine with powerful Keil software,, can finish the design of most of 51 series monolithic application systems for the microcomputer development slip-stick artist provides the real-time simulation development environment.
USB (Universal Serial Bus) interface is easy to use, supports hot plug, and its equipment uses the reservation of oneself to interrupt separately, can not fight for the PC resource with miscellaneous equipment, does not relate to the IRQ conflict problem, but its driver and application software self-starting.The interface transfer rate of USB2.0 standard is enough to satisfy rate requirement up to 480Mbps.USB interface provides built-in power, and 5 volts power supply can independently be provided to low-voltage equipment.
Most of on the market low side emulators, exist little such as poor anti jamming capability, sheet internal program storage space, be difficult for erasable repeatedly, serial-port communication speed is slow, volume greatly, shortcoming such as not portable, have a strong impact on the development of Single Chip Microcomputer (SCM) system.Along with the widespread use of single-chip microcomputer in fields such as industrial process control, instrument and meter for automation, intelligent electric appliances, market presses for the better emulator of performance.
Summary of the invention
The purpose of this utility model just is to overcome the above-mentioned shortcoming and defect that prior art exists, and provides a kind of performance better pocket 51 series monolithic emulators.
The purpose of this utility model is achieved in that
With single-chip microcomputer SST89E564RD is monitoring chip, cooperates USB to change peripheral circuits such as RS-232 interface chip, reset circuit, pin holding circuit, inside and outside crystal oscillator commutation circuit, realizes single-chip microcomputer simulation hardware function.
Specifically, as Fig. 1, the utility model is made up of reset circuit 1, single chip circuit 3, USB RS 232 interface circuit 4, pin holding circuit 5; With single chip circuit 3 is core, and single chip circuit 3 is connected with reset circuit 1, inside and outside crystal oscillator commutation circuit 2, USB RS 232 interface circuit 4, pin holding circuit 5 respectively; USB RS 232 interface circuit 4 also is connected with PC 6.
Described reset circuit 1 is for the whole simulation device provides reset function.In the time of need resetting, only need the reset button on the flicking panel.
Described inside and outside crystal oscillator commutation circuit 2 carries the selection of two kinds of crystal oscillators for the emulation user provides custom system crystal oscillator and emulator systems, has made things convenient for developer's use.
Characteristics such as described single chip circuit 3, chip are selected the SST89E564RD chip of American SS T company for use, and it is strong to have an interference performance, but programming often, and number of run is many are the core circuit of emulator, are responsible for the operation of simulation objectives code.
Described USB RS 232 interface circuit 4 adopts the Cygnal private communication chip CP2101 of company.Realize the conversion of data between USB and UART form,, realize the USB interface of PC and being connected of single-chip microcomputer RS232 mouth further by upper computer software.
Described pin holding circuit 5 promptly has the pin of annexation to emulator and external user system, add holding circuit, the damage of the emulator that causes to avoid user's improper use or external system fault.
The employing of USB interface technology has improved PC 6 and transfer rate of the present utility model, and the power supply of power supply of the present utility model employing USB interface, has saved extra power supply.
The SSTFlashFlex51 software loading that the 89E564RD emulator watchdog routine SoftIce564.hex that SST company provides can provide by SST company is in the monitoring chip SST89E564RD of emulator.Watchdog routine is changeed the RS-232 interface chip by the serial port of single-chip microcomputer through USB, carries out communication with computing machine.When debugging person begins emulation by single-chip microcomputer Integrated Development Environment (Keil UVision2 software), need the Single Chip Microcomputer (SCM) program object code of debugging to send monitoring chip to through USB commentaries on classics RS-232 interface chip, and monitored program burn writing is in the program storage of monitoring chip by USB interface of computer.In the process of debugging Single Chip Microcomputer (SCM) program, watchdog routine reaches the purpose that breakpoint, single step run are set by rewriting debugged program at any time.Program is after running into the breakpoint stop execution, and watchdog routine is taken over the control of CPU, and in Integrated Development Environment can observe the various states of single-chip microcomputer RAM, content of registers and single-chip microcomputer inside by the USB interface communication this moment.All increased holding circuit at each the pin place that contacts with Target Board, can effectively prevent because the damage that mistake behaviour brings to emulator.Reset circuit 1 can carry out reset processing to monitoring chip.Inside and outside crystal oscillator commutation circuit 2 can make the user freely select crystal oscillator frequency, and is not subjected to the restriction of emulator self crystal oscillator.By the cooperation of these peripheral circuits, realize, high performance emulation stable to single-chip microcomputer.
The utlity model has following advantage and good effect:
1, adopt super emulation chip SST89E564RD as monitoring chip, can emulation 63K byte program space; Can the repetition loading program, and need not to wipe in advance the user program space; The single-chip microcomputer of 51 kernels such as 89C51,89C52 that can simulation standard, 89C53; The external data memory that has 768 bytes on the sheet can use when emulation.
2, adopt powerful KEIL simulation software can observe all variablees easily, mouse is placed on the instantaneous value that will demonstrate it on certain variable immediately.
3, realize USB communication completely and power supply, dispense with outer connecting power, profile is small and exquisite, in the very convenient insertion user plate.Emulator can be selected for use and carry crystal oscillator, also can select to use user's crystal oscillator, brings great convenience to the user.
4, effective pin has been increased defencive function, can effectively prevent because maloperation to the damage that emulator brings, has improved the life-span of emulator.
5, super emulation chip SST89E564RD select for use and USB interface self-powered, make this emulator compared with on the market product of the same type, more cheap on price.
In a word, because the utility model adopted the USB interface technology, have that volume is little, in light weight, reliability is high, price is low, do not need additionally to provide advantage such as power supply, therefore wide application prospect is arranged.
Description of drawings
Fig. 1-structured flowchart of the present utility model;
The circuit theory diagrams of Fig. 2-reset, inside and outside crystal oscillator switching, single-chip microcomputer, USB RS 232 interface;
The circuit theory diagrams of Fig. 3-pin protection.
Wherein:
The 1-reset circuit; The inside and outside crystal oscillator commutation circuit of 2-; The 3-single chip circuit;
4-USB RS 232 interface circuit; 5-pin holding circuit; The 6-PC machine.
Embodiment
The utility model is with the power supply of the USB port of computing machine, constitutes pocket 51 singlechip emulators with the SST89E564RD single-chip microcomputer together as peripheral circuits such as the core of hardware circuit and usb circuits.The SSTFlashFlex51 software loading that the 89E564RD emulator watchdog routine SoftIce564.hex that SST company provides can provide by SST company is in the monitoring chip of emulator, and watchdog routine is by the serial port and the computing machine communication of single-chip microcomputer.When debugging person begins emulation by single-chip microcomputer Integrated Development Environment (Keil UVision2 software), need the Single Chip Microcomputer (SCM) program object code of debugging to be transmitted to monitoring chip, and monitored program burn writing is in the program storage of monitoring chip by serial ports.In the process of debugging Single Chip Microcomputer (SCM) program, watchdog routine reaches the purpose that breakpoint, single step run are set by rewriting debugged program at any time.Program is after running into the breakpoint stop execution, and watchdog routine is taken over the control of CPU, and in Integrated Development Environment can observe the various states of single-chip microcomputer RAM, content of registers and single-chip microcomputer inside by serial port communication this moment.The emulation plug of emulator directly inserts the CPU socket on the Target Board; USB cable connects the USB interface of emulator and the USB interface of PC, and emulator is communicated by letter with PC, can also power for emulator; Pilot lamp on the power supply post-simulation device is lighted; Carry out emulation, debugging by Keil UVision2 software download user program to emulator.Emulator crystal oscillator side has two groups of wire jumpers to be used for switching inner crystal oscillator and user's lath shakes, and when two short-circuit blocks were positioned at " inside " side, acquiescence was used the crystal oscillator on the emulator; When two short-circuit blocks " outside " side, use the crystal oscillator of user's plate, need to adjust the setting of communication baud rate this moment according to the size of the crystal oscillator of user's plate; Also have one group of serial ports to select wire jumper, inside is used for emulator and PC communication, and normal state simulation must be positioned at inside, and the outside is used for emulator and is connected with user's plate, only after full speed running, just can skip to the outside.The reset terminal of emulator can make the SST89E564RD single-chip microcomputer reset.When emulator was inserted the USB mouth, operating system can be pointed out install driver, and driving-disc is inserted CD-ROM drive, clicked according to prompting and determined to get final product successful installation.This driver divides two parts, and one is that USB drives, and one is serial port drive, needs complete installation.
Describe in detail below in conjunction with drawings and Examples:
1, about hardware components
1) single chip circuit
As Fig. 2, single chip circuit 3 adopts super emulation chip SST89E564RD (64K+8K) as core component, antijamming capability is extremely strong, 100% of inner Flash rewrites the life-span greater than 10,000 times, the simulation run number of times is greater than 100,000 times, the theoretical life-span of single step emulation is to adopt common chip to make more than 10 times of emulator life-span up to 1,000,000 times.After chip expires serviceable life, changes 89E564, can be used as new emulator again and use.63K byte program space can be carried out online program updates at any time in the sheet, and debugging reaches the large program of several thousand row.
2) USB RS 232 interface circuit
As Fig. 2, USB RS 232 interface circuit 4 adopts private communication chip---the CP2101 of a high integration of Cygnal company release.The function of this chip is to realize the conversion of data between USB and UART form, can be used for USB RS 232/RS485/RS422 Serial Adaptation Unit, digital camera and PC USB communication, mobile phone and PC USB communication, PDA and PC the USB communication, reach USB bar code reader interface etc.CP2101 is the single-chip solution that brand-new USB changes UART.Asynchronous serial data bus (being applicable to the RS-232 agreement) that meets full speed function control device, EEPROM, the impact damper of USB2.0 standard and have the modem interface signal that this chip is integrated, have an integrated internal clocking and USB transceiver simultaneously, need not other external USB circuit components.High performance CP2101 compares with the similar chip of other models that power consumption is lower, volume is littler, integrated level higher (need not outward element).CP2101 is that USB changes the ideal selection that serial ports is used.
3) reset circuit
As Fig. 2, reset circuit 1 adopts the button reset circuit, if will reset, only needs to press the RESET key among Fig. 2, and this moment, power supply VCC was through resistance R 1, R2 dividing potential drop, produced the high level that resets at the RESET end.
4) inside and outside crystal oscillator commutation circuit
As Fig. 2, the external crystal oscillator of the emulation chip of inside and outside crystal oscillator commutation circuit 2 makes emulator carry crystal oscillator, can select crystal oscillator or user's crystal oscillator of emulator self by button, enlarges the scope of selectable crystal oscillator frequency.
5) pin holding circuit
The electric principle of pin holding circuit 5 when passing through high pressure on the pin, is carried out dividing potential drop by resistance as shown in Figure 3, during by negative pressure, can make diode current flow, forms the loop with the earth, can effectively prevent like this because the damage that maloperation brings emulator.
6) annexation
Serial input and output in the single chip circuit 3 " 10,11 " pin correspondence connects serial output input " 26, the 25 " pin in the USB RS 232 interface circuit 4; External crystal oscillator pin " 19,18 " correspondence in the single chip circuit 3 connects external crystal oscillator two ends or the user's lath two ends that shake, and selects by the switching in the inside and outside crystal oscillator commutation circuit 2; Reset pin in the single chip circuit 3 " 9 " correspondence connects the RESET end in the reset circuit 1; Other pins except that " 9,18,19,20,31,40 " pin in the single chip circuit 3 are all to adapter pin holding circuit 5.
7) double-decker
The utility model is a double-decker, and the upper strata is reset circuit (1), inside and outside crystal oscillator commutation circuit (2), USB RS 232 interface circuit (4), and lower floor is single chip circuit (3), pin holding circuit (5) and artificial head socket.
2, about funtion part
1) the program storage physical space 64K+8K of the super copying SST89E564RD of 64K+8K chip, its simulation space can carry out emulation to 89S51,89C51,89S52,89C52,89C2051 or the like 51 family's chips like a cork near the maximum address scope 0000~FFFFH of 8 single-chip microcomputers of 51 series.This chip internal has FLASH ROM, can be repeatedly erasable repeatedly.
2) the usb communication function adopts the USB universal serial port to be connected communication with PC, the transfer rate height, and good in anti-interference performance, unfailing performance height, and dispense with outer connecting power are particularly suitable for battery powered notebook computer out using.
3) make things convenient for function odt circuit structure Design, make this utility model profile small and exquisite, and can directly insert in user's plate, for the user brings great convenience.
4) inside and outside crystal oscillator handoff functionality can also can select to use user's crystal oscillator with the crystal oscillator of emulator self, supports the 0-40MHz crystal oscillator frequency.
5) the pin defencive function has increased defencive function to effective pin, can effectively prevent because the damage that maloperation brings emulator.

Claims (4)

1, a kind of pocket 51 series monolithic emulators is characterized in that:
With single chip circuit (3) is core, and single chip circuit (3) is connected with reset circuit (1), inside and outside crystal oscillator commutation circuit (2), USB RS 232 interface circuit (4), pin holding circuit (5) respectively; USB RS 232 interface circuit (4) also is connected with PC (6).
2, a kind of pocket 51 series monolithic emulators according to claim 1 is characterized in that:
Single chip circuit (3) adopts super emulation chip SST89E564RD.
3, a kind of pocket 51 series monolithic emulators according to claim 1 is characterized in that:
USB RS 232 interface circuit (4) adopts private communication chip CP2101.
4, a kind of pocket 51 series monolithic emulators according to claim 1 is characterized in that:
Be double-decker, the upper strata is reset circuit (1), inside and outside crystal oscillator commutation circuit (2), USB RS 232 interface circuit (4), and lower floor is single chip circuit (3), pin holding circuit (5) and artificial head socket.
CN 200620095654 2006-03-16 2006-03-16 Pocket 51 series single chip machine simulator Expired - Fee Related CN2904109Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200620095654 CN2904109Y (en) 2006-03-16 2006-03-16 Pocket 51 series single chip machine simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200620095654 CN2904109Y (en) 2006-03-16 2006-03-16 Pocket 51 series single chip machine simulator

Publications (1)

Publication Number Publication Date
CN2904109Y true CN2904109Y (en) 2007-05-23

Family

ID=38079522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200620095654 Expired - Fee Related CN2904109Y (en) 2006-03-16 2006-03-16 Pocket 51 series single chip machine simulator

Country Status (1)

Country Link
CN (1) CN2904109Y (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963934A (en) * 2010-10-27 2011-02-02 山东大学 Method for debugging 8051 core-based system on chip (SOC) on line
CN108287799A (en) * 2017-12-28 2018-07-17 深圳科瑞技术股份有限公司 A kind of AGT data coupling process realized based on serial communication
CN108932200A (en) * 2018-07-12 2018-12-04 珠海市中科蓝讯科技有限公司 A kind of test circuit and software debugging method
CN109828792A (en) * 2018-12-29 2019-05-31 苏州中晟宏芯信息科技有限公司 A kind of control device and method of server
WO2020103107A1 (en) * 2018-11-22 2020-05-28 北京比特大陆科技有限公司 Data processing apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963934A (en) * 2010-10-27 2011-02-02 山东大学 Method for debugging 8051 core-based system on chip (SOC) on line
CN101963934B (en) * 2010-10-27 2012-08-08 山东大学 Method for debugging 8051 core-based system on chip (SOC) on line
CN108287799A (en) * 2017-12-28 2018-07-17 深圳科瑞技术股份有限公司 A kind of AGT data coupling process realized based on serial communication
CN108932200A (en) * 2018-07-12 2018-12-04 珠海市中科蓝讯科技有限公司 A kind of test circuit and software debugging method
CN108932200B (en) * 2018-07-12 2021-10-15 深圳市中科蓝讯科技股份有限公司 Test circuit and software debugging method
WO2020103107A1 (en) * 2018-11-22 2020-05-28 北京比特大陆科技有限公司 Data processing apparatus
CN109828792A (en) * 2018-12-29 2019-05-31 苏州中晟宏芯信息科技有限公司 A kind of control device and method of server

Similar Documents

Publication Publication Date Title
CN100495479C (en) Single chip computer teaching experimental device based on on-line programmable logic device
CN2904109Y (en) Pocket 51 series single chip machine simulator
CN102508753B (en) IP (Internet protocol) core verification system
CN103136028A (en) FLASH memorizer long-distance on-line upgrade method based on field programmable gate array (FPGA)
CN105930186B (en) The method for loading software of multi -CPU and software loading apparatus based on multi -CPU
CN101004707A (en) Embedded type software debugging device, and method for implementing debugging
CN101267623A (en) A booting construction method for a mobile phone
CN101162438A (en) Regulating technology of built-in processor
CN104503594A (en) PS/2 keyboard-mouse remote switching system
CN102621977A (en) Intelligent online diagnosis calibration controller for ECU (electronic control unit)
CN106354598A (en) One-time programmable microcontroller debugging method based on flash memory
CN101329650B (en) Smart card emulator
CN100533424C (en) Single line transmission interface and single byte operational keyboard display module
CN110413550B (en) Chip serial port program downloading control circuit
CN208873142U (en) A kind of FPGA development board
Oliveira et al. Extending memory capacity in consumer devices with emerging non-volatile memory: An experimental study
CN206058176U (en) A kind of automobile-used BootLoader commissioning devices and test automobile
CN1219254C (en) IC card hardware simulator based on FPGA-51 kernel
CN208384555U (en) Processor chips emulator
CN202748777U (en) On-line singlechip debugging system
CN209267552U (en) The control circuit of keyboard
CN201166843Y (en) Emulator for dual-purpose singlechip
CN101604285B (en) Embedded system signal tracing method based on bus
Li et al. Development of data communication system applied to electrical instruments based on USB interface
CN201210294Y (en) Simple micro-controller simulating apparatus

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee