CN103902332A - Device for downloading programs of single-chip microcomputer and debugging method - Google Patents
Device for downloading programs of single-chip microcomputer and debugging method Download PDFInfo
- Publication number
- CN103902332A CN103902332A CN201410037330.8A CN201410037330A CN103902332A CN 103902332 A CN103902332 A CN 103902332A CN 201410037330 A CN201410037330 A CN 201410037330A CN 103902332 A CN103902332 A CN 103902332A
- Authority
- CN
- China
- Prior art keywords
- chip
- chip microcomputer
- program
- parts
- debugging apparatus
- 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
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention belongs to the field of single-chip microcomputer application and provides a device for downloading programs of a single-chip microcomputer and a debugging method. The device comprises a file opening member, a file storing member, an eraser, a write-in device, a reader, a calibrator, an operation member, a stopping member, a reset member and a connection monitoring member. By means of the above members, the programs designed under the development environment of the single-chip microcomputer can perform operation such as write-in and erasion on chips, and control on operation of the single-chip microcomputer can be achieved. Therefore, the device has the advantages of being visualized and dynamic in operation, easy to operate, and suitable for being used by developers of all single-chip microcomputers.
Description
Technical field
The invention belongs to single-chip microcomputer application, be specifically related to a kind of device and adjustment method that realizes Single Chip Microcomputer (SCM) program download function.
Background technology
At present, single-chip microcomputer, with plurality of advantages such as its volume are little, lightweight, antijamming capability is strong, cheap, is widely used in the various fields such as Industry Control, instrument and meter, electromechanical equipment, communicator and even the household electrical appliance of the many industries of China.Because single chip circuit is relatively simple for structure, do not possess from development function, now widely used brassboard, experimental box can only meet the design concept of detail programming function, could not on the basis of single-chip microcomputer, build the system platform that can carry out mcu programming exploitation, realize and utilize the dynamic debugging of single-chip microcomputer to chip development program and the function such as write.
Summary of the invention
The object of this invention is to provide a kind of motherboard and can dynamically realize the device that Single Chip Microcomputer (SCM) program is downloaded in the exploitation of AT89 series monolithic.
Another object of the present invention is to provide a kind of this and realizes the adjustment method that Single Chip Microcomputer (SCM) program is downloaded.
The technical solution used in the present invention is: this realizes the device that Single Chip Microcomputer (SCM) program is downloaded, it is characterized in that: comprise the parts that open file, preserve file parts, eraser, write device, reader, checker, operation parts, stop component, reset components be connected monitoring component, the described parts that open file, preserve file parts, eraser, write device, reader, checker, operation parts, stop component, reset components be connected monitoring component and all carry out communication with single-chip microcomputer and be connected, the parts that open file are realized respectively opening and preserving of singlechip chip source program with preservation file parts, eraser is for wiping chip, write device is for being written in chip the chip program of exploitation, reader is for reading the program in chip, checker is for the write-in program in calibrating chip, operation parts are for starting the operation of single-chip microcomputer, stop component is for stopping the operation of single-chip microcomputer, reset components is for the reset to single-chip microcomputer, connecting test parts are for testing the connection state of single-chip microcomputer and other circuit.
This realizes the adjustment method that Single Chip Microcomputer (SCM) program is downloaded, and it is characterized in that having followed these steps to:
(1). according to the operating circuit of specific experiment, single-chip microcomputer and other experimental facilities thereof are coupled together;
(2). download debugging apparatus is installed on computing machine;
(3). by USB interface, computing machine is connected with single-chip microcomputer, single-chip microcomputer is provided with the USB communication interface of the communication that is connected with computing machine;
(4). start and download debugging apparatus;
(5). the automatic download function of downloading in debugging apparatus is set, in this download debugging apparatus, is built-in with the button that arranges of automatic download function;
(6). compiling, editor's single-chip microcomputer source program are machine code, under the source program development environment to singlechip chip, designed chip program are compiled, are edited;
(7). download debugging apparatus machine code is packed in it, by the parts that open file in device, compiled machine code file is called in;
(8). download debugging apparatus machine code is downloaded in chip, by the write device of downloading in debugging apparatus, machine code file is written in corresponding chip;
Through test adjustment, if designed chip program could not meet the requirements completely, can modify to designed program since (6) step, download debugging apparatus can dynamically be wiped the former program writing in chip the machine code of newly compiling is written in chip again, and realization dynamically updates;
(9). close download debugging apparatus and can complete the write operation to chip.
The present invention is owing to adopting technique scheme, utilization realizes single-chip microcomputer download apparatus and adjustment method, can dynamically be written in real time the inside of chip to the machine code that under singlechip chip development environment, editor, compiling generate, and the function that can dynamically debug in conjunction with experimental provision chip, there is visual, the mobilism of operation, and simple to operate, be applicable to all kinds of microcomputer development librarian uses.
Brief description of the drawings
Fig. 1 represents that the present invention realizes the process flow diagram of single-chip microcomputer download adjustment method;
Fig. 2 represents that the present invention realizes single-chip microcomputer and downloads the device block scheme of debugging.
Embodiment
A kind of device of single-chip microcomputer download function and embodiment of adjustment method of realizing of the present invention, referring to Fig. 1, Fig. 2, the device that the singlechip chip that is AT89 series to motherboard is downloaded, comprise the parts that open file, preserve file parts, eraser, write device, reader, checker, operation parts, stop component, reset components be connected monitoring component, the described parts that open file, preserve file parts, eraser, write device, reader, checker, operation parts, stop component, reset components be connected monitoring component and all carry out communication with single-chip microcomputer and be connected, the parts that open file are realized respectively opening and preserving of singlechip chip source program with preservation file parts, eraser is for wiping chip, write device is for being written in chip the chip program of exploitation, reader is for reading the program in chip, checker is for the write-in program in calibrating chip, operation parts are for starting the operation of single-chip microcomputer, stop component is for stopping the operation of single-chip microcomputer, reset components is for the reset to single-chip microcomputer, connecting test parts are for testing the connection state of single-chip microcomputer and other circuit.
An adjustment method that realizes single-chip microcomputer download function, comprises the following steps:
1. according to the operating circuit of specific experiment, single-chip microcomputer and other experimental facilities thereof are coupled together;
2. download debugging apparatus is installed on computing machine;
3. by USB interface, computing machine is connected with single-chip microcomputer, single-chip microcomputer is provided with the USB communication interface of the communication that is connected with computing machine;
4. start and download debugging apparatus;
5. the automatic download function of downloading in debugging apparatus is set, in this download debugging apparatus, is built-in with the button that arranges of automatic download function;
6. compiling, editor's single-chip microcomputer source program are machine code, under the source program development environment to singlechip chip, as under Keil uVision3 development environment, designed chip program are compiled, are edited;
7. download debugging apparatus machine code is packed in it, by the parts that open file in device, compiled machine code file is called in;
8. download debugging apparatus machine code is downloaded in chip, by the write device of downloading in debugging apparatus, machine code file is written in corresponding chip;
Through test adjustment, if designed chip program could not meet the requirements completely, can modify to designed program since the 6th step, download debugging apparatus can dynamically be wiped the former program writing in chip the machine code of newly compiling is written in chip again, and realization dynamically updates;
9. close download debugging apparatus and can complete the write operation to chip.
This device and adjustment method can dynamically be written to the inside of chip in real time to the machine code that under singlechip chip development environment, editor, compiling generate, and the function that can dynamically debug in conjunction with experimental provision chip, there is visual, the mobilism of operation, and simple to operate, be applicable to all kinds of microcomputer development librarian uses.
Claims (2)
1. realize the device that Single Chip Microcomputer (SCM) program is downloaded for one kind, it is characterized in that: comprise the parts that open file, preserve file parts, eraser, write device, reader, checker, operation parts, stop component, reset components be connected monitoring component, described in the parts that open file, preserve file parts, eraser, write device, reader, checker, operation parts, stop component, reset components be connected monitoring component and all carry out communication with single-chip microcomputer and be connected, parts and preserve file parts and realize respectively opening and preserving of singlechip chip source program open file; Eraser is for wiping chip; Write device is for being written in chip the chip program of exploitation; Reader is for reading the program in chip; Checker is for the write-in program in calibrating chip; Operation parts are for starting the operation of single-chip microcomputer; Stop component is for stopping the operation of single-chip microcomputer; Reset components is for the reset to single-chip microcomputer; Connecting test parts are for testing the connection state of single-chip microcomputer and other circuit.
2. realize the adjustment method that Single Chip Microcomputer (SCM) program is downloaded, it is characterized in that having followed these steps to:
(1). according to the operating circuit of specific experiment, single-chip microcomputer and other experimental facilities thereof are coupled together;
(2). download debugging apparatus is installed on computing machine;
(3). by USB interface, computing machine is connected with single-chip microcomputer, single-chip microcomputer is provided with the USB communication interface of the communication that is connected with computing machine;
(4). start and download debugging apparatus;
(5). the automatic download function of downloading in debugging apparatus is set, in this download debugging apparatus, is built-in with the button that arranges of automatic download function;
(6). compiling, editor's single-chip microcomputer source program are machine code, under the source program development environment to singlechip chip, designed chip program are compiled, are edited;
(7). download debugging apparatus machine code is packed in it, by the parts that open file in device, compiled machine code file is called in;
(8). download debugging apparatus machine code is downloaded in chip, by the write device of downloading in debugging apparatus, machine code file is written in corresponding chip;
Through test adjustment, if designed chip program could not meet the requirements completely, can modify to designed program since (6) step, download debugging apparatus can dynamically be wiped the former program writing in chip the machine code of newly compiling is written in chip again, and realization dynamically updates;
(9). close download debugging apparatus and can complete the write operation to chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410037330.8A CN103902332A (en) | 2014-04-16 | 2014-04-16 | Device for downloading programs of single-chip microcomputer and debugging method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410037330.8A CN103902332A (en) | 2014-04-16 | 2014-04-16 | Device for downloading programs of single-chip microcomputer and debugging method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103902332A true CN103902332A (en) | 2014-07-02 |
Family
ID=50993671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410037330.8A Pending CN103902332A (en) | 2014-04-16 | 2014-04-16 | Device for downloading programs of single-chip microcomputer and debugging method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103902332A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978221A (en) * | 2015-06-09 | 2015-10-14 | 北京远特科技有限公司 | Method and system for implementing downloading and deleting of program |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101042815A (en) * | 2007-01-19 | 2007-09-26 | 华南理工大学 | Single chip computer teaching experimental device based on on-line programmable logic device |
CN202159445U (en) * | 2011-07-24 | 2012-03-07 | 刘纯利 | Singlechip experimental board |
-
2014
- 2014-04-16 CN CN201410037330.8A patent/CN103902332A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101042815A (en) * | 2007-01-19 | 2007-09-26 | 华南理工大学 | Single chip computer teaching experimental device based on on-line programmable logic device |
CN202159445U (en) * | 2011-07-24 | 2012-03-07 | 刘纯利 | Singlechip experimental board |
Non-Patent Citations (3)
Title |
---|
ADMIN: "第2课 keil软件及工程文件的建立", 《HTTP://WWW.51HEI.COM/BBS/DPJ-23975-1.HTML》 * |
徐金增: "单片机编程仿真实验系统的设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
程颖等: "一种新的单片机程序下载方法", 《传感器技术》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978221A (en) * | 2015-06-09 | 2015-10-14 | 北京远特科技有限公司 | Method and system for implementing downloading and deleting of program |
CN104978221B (en) * | 2015-06-09 | 2018-04-27 | 北京远特科技股份有限公司 | Realize the method and system that the download of program is deleted |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9898388B2 (en) | Non-intrusive software verification | |
CN100386743C (en) | Debugging method of embedded system and its system | |
CN105204913A (en) | Method and system for running Linux application on Android operating system and system | |
JP2016537619A (en) | Programmable interface-based verification and debugging | |
CN104035803A (en) | Method, device and programmer for updating CPLD/FPGA firmware | |
CN103365751A (en) | Main board testing device and changeover module thereof | |
CN100557532C (en) | A kind of quick control prototype system | |
CN101706750A (en) | Detective pole acquiring method based on embedded type simulator | |
CN104503898A (en) | Method and system for checking embedded software debugging parameter in real time | |
CN102231128A (en) | Online debugging method and debugging host | |
US8930923B2 (en) | Generating debugging extension source code utilizing debugging information | |
CN113157508B (en) | Test method, system, device, equipment and storage medium of embedded system | |
US9117018B2 (en) | Method of debugging software and corresponding computer program product | |
CN106502695A (en) | One kind is based on embedded software development method | |
CN102722438B (en) | Kernel debugging method and equipment | |
CN108304313B (en) | Device, client and method for data testing | |
US10430200B2 (en) | Slave processor within a system-on-chip | |
CN103440133A (en) | Development method and system of chip testing software | |
CN111338753B (en) | System for realizing hardware simulation of electronic control unit based on computer | |
CN103902332A (en) | Device for downloading programs of single-chip microcomputer and debugging method | |
CN103729202A (en) | DSP reliable on-line FLASH programming method based on GEL script | |
Borycki | Programming for the Internet of Things: Using Windows 10 IoT Core and Azure IoT Suite | |
US20180357150A1 (en) | System for development and emulation of embedded systems | |
CN111175632A (en) | Single board testing system based on python | |
CN101751492A (en) | Micro-controller and simulation system thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140702 |