CN104461633A - Single-chip offline programming unit and offline programming method - Google Patents
Single-chip offline programming unit and offline programming method Download PDFInfo
- Publication number
- CN104461633A CN104461633A CN201410758380.5A CN201410758380A CN104461633A CN 104461633 A CN104461633 A CN 104461633A CN 201410758380 A CN201410758380 A CN 201410758380A CN 104461633 A CN104461633 A CN 104461633A
- Authority
- CN
- China
- Prior art keywords
- microcontroller
- interface
- chip
- programmed
- offline programmer
- 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
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a single-chip offline programming unit and an offline programming method. The offline programming unit comprises a microcontroller, an upper computer communication port and a program downloading port, a nonvolatile memory medium is packaged in the microcontroller, the microcontroller is connected with the upper computer communication port and the program downloading port respectively and used for storing program files, the upper computer communication port is used for being connected with an external device, and the program files are transmitted to the microcontroller; the program downloading port is used for being connected with a device to be programmed, and the device to be programmed is programmed. The single-chip offline programming unit has the advantages of simple circuit, small size and high data safety.
Description
Technical field
The present invention relates to programmable device field, particularly relate to a kind of single-chip offline programmer and off-line programing method.
Background technology
Programmable device is a kind of instrument to programming device write data, is mainly used in upgrading to the chip of single-chip microcomputer, storer and so on.The appearance of offline programmer, solving online programming device needs when programming to be connected with computing machine, thus lacks the shortcoming of portability.
At present, the offline programmer carrying out off-line programing at the scene to device to be programmed can be realized, in order to storage program file, have two kinds of modes to select: the first is external storage chip in offline programmer; Another kind is by USB (USB (universal serial bus), Universal Serial Bus) interface or SDIO (secure digital input and output, Secure Digital Input and Output) the external U (USB (universal serial bus) of interface, USB) dish or SD (secure data, Secure Digital) card.But above-mentioned two kinds of methods all need offline programmer to have corresponding circuit and space to support the normal work of external equipment, such that the circuit of offline programmer is more complicated and volume is larger.All there is the potential safety hazard that storage medium and MCU (micro-control unit, MicroControl Unit) chip makes physical are separated simultaneously, make the security of data poor.
Summary of the invention
The object of the invention is to propose a kind of single-chip offline programmer and off-line programing method, this offline programmer can solve the problem that existing offline programmer circuit is complicated, volume is large and data security is poor.
For reaching this object, the present invention by the following technical solutions:
First aspect, the invention discloses a kind of single-chip offline programmer, comprising: microcontroller, communication interface with pc and download program interface, be packaged with non-volatile memory medium in described microcontroller,
Described microcontroller is connected with described communication interface with pc and described download program interface respectively, and described microcontroller is used for storage program file;
Described program file, for connecting external device, is transferred in described microcontroller by described communication interface with pc;
Described download program interface, for connecting device to be programmed, is programmed to described device to be programmed.
Further, also comprise:
Power module, described power module is connected with described microcontroller, for providing power supply.
Further, also comprise:
Pilot lamp, described pilot lamp is connected with described microcontroller, for show programme use program file, programming different phase and whether programme successfully.
Further, the different phase of described programming comprises erasing, downloads and verification.
Further, also comprise:
Button, described button is connected with described microcontroller, for described microcontroller input control order.
Further, described steering order comprises startup programming instruction, the program file selecting described programming to use and stops programming instruction.
Further, described communication interface with pc is universal synchronous/asynchronous serial reception/sender interface.
Further, described download program interface is string line debugging interface or universal synchronous/asynchronous serial reception/sender interface.
Second aspect, the invention discloses a kind of off-line programing method of offline programmer, and described offline programmer is the offline programmer described in above-mentioned any one, comprising:
Communication interface with pc is connected external device and download program interface is unsettled;
By described communication interface with pc, program file is transferred in microcontroller;
Download program interface is connected device to be programmed and communication interface with pc is unsettled;
Described device to be programmed is programmed.
Single-chip offline programmer of the present invention and off-line programing method are by adopting the microcontroller storage program file being packaged with non-volatile memory medium, do not need extra memory device, simplify the circuit of offline programmer, reduce the volume of offline programmer, and non-volatile memory medium is not separated physically with microcontroller, thus improve the security of the data of storage.
Accompanying drawing explanation
In order to the technical scheme of exemplary embodiment of the present is clearly described, one is done to the accompanying drawing used required for describing in embodiment below and simply introduce.Obviously, the accompanying drawing introduced is the accompanying drawing of a part of embodiment that the present invention will describe, instead of whole accompanying drawings, for those of ordinary skill in the art, under the prerequisite not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the structural drawing of the single-chip offline programmer that the embodiment of the present invention one provides.
Fig. 2 is the process flow diagram of the off-line programing method of the single-chip offline programmer that the embodiment of the present invention two provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below with reference to the accompanying drawing in the embodiment of the present invention, by embodiment, technical scheme of the present invention is intactly described.Obviously; described embodiment is a part of embodiment of the present invention, instead of whole embodiments, based on embodiments of the invention; the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all falls within protection scope of the present invention.
Embodiment one:
Fig. 1 is the structural drawing of the single-chip offline programmer that the embodiment of the present invention one provides.As shown in Figure 1, this offline programmer comprises:
Microcontroller 101, is packaged with non-volatile memory medium in microcontroller 101, for storage program file.
In the present embodiment, storage medium can be hard disk or flash memory.The program file stored can be multiple.
Communication interface with pc 102, is connected with microcontroller 101, for connecting external device, is transferred to by program file in microcontroller 101.
In the present embodiment, communication interface with pc can be universal synchronous/asynchronous serial reception/transmitter (USART, Universal Synchronous/Asynchronous Receiver/Transmitter) interface.USART interface is a full duplex universal synchronous/asynchronous serial transceiver module, and this interface is the serial communication device of a high flexible.
Download program interface 103, is connected with microcontroller 101, for connecting device to be programmed, treating programming device and programming.
In the present embodiment, download program interface can be string line debugging (SWD, serial wire debug) interface or universal synchronous/asynchronous serial reception/sender interface.
Power module 104, is connected with microcontroller 101, for providing power supply.
In the present embodiment, power module is that whole single-chip offline programmer is powered.
Pilot lamp 105, is connected with microcontroller 101, for show programme use program file, programming different phase and whether programme successfully.
In the present embodiment, concrete one in the multiple program files stored in the microcontroller that pilot lamp uses when can show programming, the different phase of programming comprises to be treated original program file in programming device and carries out wiping, downloaded in device to be programmed and to the program file downloaded in device to be programmed by the program file stored verify in microcontroller.Whether pilot lamp can have multiple, use the combination of the different situations of this multiple pilot lamp to show the different phase of programming and to programme successfully; Also can only have one, by the different state of this lamp, as bright, go out, glimmer, show the different phase of programming and whether programme successfully.
Button 106, is connected with microcontroller 101, for microcontroller 101 input control order.
In the present embodiment, steering order comprises and starts that programming instruction treats that programming device carries out programming, selects the programme program file used and the stopping programming instruction treating after programming device completes programming in multiple program files of storing from microcontroller.
The single-chip offline programmer that the embodiment of the present invention one provides is packaged with the microcontroller storage program file of non-volatile memory medium by adopting, do not need extra memory device, simplify the circuit of offline programmer, reduce the volume of offline programmer, and non-volatile memory medium is not separated physically with microcontroller, thus improve the security of the data of storage.
Embodiment two:
Fig. 2 is the process flow diagram of the off-line programing method of the single-chip offline programmer that the embodiment of the present invention two provides.The off-line programing method of described single-chip offline programmer is treated programming device for the single-chip offline programmer using the embodiment of the present invention one and provide and is carried out off-line programing, and as shown in Figure 2, the method comprises:
201, communication interface with pc is connected external device and download program interface is unsettled.
In this step, external device can be computing machine or other microcontroller.Download program interface is unsettled refers to what equipment download program interface does not take over.
202, by communication interface with pc, program file is transferred in microcontroller.
In this step, the mode transferred to by program file in microcontroller can be in-system programming mode or in-service units mode.Pilot lamp on single-chip offline programmer can show the progress of transmission.Such as, when pilot lamp only has one, the representative of going out of this pilot lamp does not start transmission procedure file; This pilot lamp flicker representative is just at transmission procedure file; The bright representative of this pilot lamp completes transmission procedure file.
203, download program interface is connected device to be programmed and communication interface with pc is unsettled.
In this step, download program interface connected device to be programmed and communication interface with pc is unsettled device to be programmed is on-the-spot.Communication interface with pc is unsettled refers to what equipment communication interface with pc does not take over.
204, treat programming device to programme.
In this step, can programming process be started by the button on single-chip offline programmer and select the program file used of programming, can the program file of selection, the different phase of programming be checked by pilot lamp and whether programme successfully; Programming process can be stopped by the button on single-chip offline programmer after programming terminates.
The off-line programing method of the single-chip offline programmer described in the invention process two is packaged with the microcontroller storage program file of non-volatile memory medium in programming process by employing, do not need extra memory device, simplify the circuit of offline programmer, reduce the volume of offline programmer, and non-volatile memory medium is not separated physically with microcontroller, thus improve the security of the data of storage.
The know-why that above are only preferred embodiment of the present invention and use.The invention is not restricted to specific embodiment described here, the various significant changes can carried out for a person skilled in the art, readjust and substitute all can not depart from protection scope of the present invention.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by the scope of claim.
Claims (9)
1. a single-chip offline programmer, is characterized in that, comprising: microcontroller, communication interface with pc and download program interface, be packaged with non-volatile memory medium in described microcontroller,
Described microcontroller is connected with described communication interface with pc and described download program interface respectively, and described microcontroller is used for storage program file;
Described program file, for connecting external device, is transferred in described microcontroller by described communication interface with pc;
Described download program interface, for connecting device to be programmed, is programmed to described device to be programmed.
2. single-chip offline programmer according to claim 1, is characterized in that, also comprise:
Power module, described power module is connected with described microcontroller, for providing power supply.
3. single-chip offline programmer according to claim 2, is characterized in that, also comprise:
Pilot lamp, described pilot lamp is connected with described microcontroller, for show programme use program file, programming different phase and whether programme successfully.
4. single-chip offline programmer according to claim 3, is characterized in that, the different phase of described programming comprises erasing, downloads and verification.
5. single-chip offline programmer according to claim 3, is characterized in that, also comprise:
Button, described button is connected with described microcontroller, for described microcontroller input control order.
6. single-chip offline programmer according to claim 5, is characterized in that, described steering order comprises startup programming instruction, the program file selecting described programming to use and stops programming instruction.
7., according to the arbitrary described single-chip offline programmer of claim 1-6, it is characterized in that, described communication interface with pc is universal synchronous/asynchronous serial reception/sender interface.
8., according to the arbitrary described single-chip offline programmer of claim 1-6, it is characterized in that, described download program interface is string line debugging interface or universal synchronous/asynchronous serial reception/sender interface.
9. an off-line programing method for single-chip offline programmer, described offline programmer is the single-chip offline programmer described in any one of claim 1-8, it is characterized in that, comprising:
Communication interface with pc is connected external device and download program interface is unsettled;
By described communication interface with pc, program file is transferred in microcontroller;
Download program interface is connected device to be programmed and communication interface with pc is unsettled;
Described device to be programmed is programmed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410758380.5A CN104461633A (en) | 2014-12-10 | 2014-12-10 | Single-chip offline programming unit and offline programming method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410758380.5A CN104461633A (en) | 2014-12-10 | 2014-12-10 | Single-chip offline programming unit and offline programming method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104461633A true CN104461633A (en) | 2015-03-25 |
Family
ID=52907738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410758380.5A Pending CN104461633A (en) | 2014-12-10 | 2014-12-10 | Single-chip offline programming unit and offline programming method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104461633A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105487890A (en) * | 2015-11-25 | 2016-04-13 | 天津航空机电有限公司 | Firmware downloading method based on C51 series single chip microcomputer kernel |
CN106201630A (en) * | 2016-07-23 | 2016-12-07 | 惠州市华阳光电技术有限公司 | A kind of hand-held programmer for LED drive power and programmed method thereof |
CN110262372A (en) * | 2019-06-12 | 2019-09-20 | 深圳市顾美科技有限公司 | PLC offline programming device, method, terminal and storage medium |
CN117250483A (en) * | 2023-11-17 | 2023-12-19 | 深圳市航顺芯片技术研发有限公司 | Chip test system and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201035558Y (en) * | 2007-02-12 | 2008-03-12 | 北京飞天诚信科技有限公司 | Safety online/offline dual-purpose programming instrument |
US20080098380A1 (en) * | 2006-10-18 | 2008-04-24 | Toby Klusmeyer | System, method, and device for updating programmable electronic equipment with a transport device from a deployment server via the internet or other communication medium |
US20080208375A1 (en) * | 2007-02-27 | 2008-08-28 | Rockwell Automation Technologies, Inc. | On-line editing associated with controller engine instances |
CN101452745A (en) * | 2007-11-30 | 2009-06-10 | 无锡华润矽科微电子有限公司 | Programmer and programming method thereof |
CN104156250A (en) * | 2014-08-20 | 2014-11-19 | 深圳市安邦信电子有限公司 | Handheld off-line programmer and off-line programming method |
-
2014
- 2014-12-10 CN CN201410758380.5A patent/CN104461633A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080098380A1 (en) * | 2006-10-18 | 2008-04-24 | Toby Klusmeyer | System, method, and device for updating programmable electronic equipment with a transport device from a deployment server via the internet or other communication medium |
CN201035558Y (en) * | 2007-02-12 | 2008-03-12 | 北京飞天诚信科技有限公司 | Safety online/offline dual-purpose programming instrument |
US20080208375A1 (en) * | 2007-02-27 | 2008-08-28 | Rockwell Automation Technologies, Inc. | On-line editing associated with controller engine instances |
CN101452745A (en) * | 2007-11-30 | 2009-06-10 | 无锡华润矽科微电子有限公司 | Programmer and programming method thereof |
CN104156250A (en) * | 2014-08-20 | 2014-11-19 | 深圳市安邦信电子有限公司 | Handheld off-line programmer and off-line programming method |
Non-Patent Citations (1)
Title |
---|
OZONETECH: "NXP ARM离线下载器 脱机编程器使用说明书", 《HTTPS://WENKU.BAIDU.COM/VIEW/04BF4207E45C3B3566EC8B1B.HTML》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105487890A (en) * | 2015-11-25 | 2016-04-13 | 天津航空机电有限公司 | Firmware downloading method based on C51 series single chip microcomputer kernel |
CN106201630A (en) * | 2016-07-23 | 2016-12-07 | 惠州市华阳光电技术有限公司 | A kind of hand-held programmer for LED drive power and programmed method thereof |
CN110262372A (en) * | 2019-06-12 | 2019-09-20 | 深圳市顾美科技有限公司 | PLC offline programming device, method, terminal and storage medium |
CN117250483A (en) * | 2023-11-17 | 2023-12-19 | 深圳市航顺芯片技术研发有限公司 | Chip test system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102053850A (en) | Method for on-line FPGA logic upgrade | |
CN104461633A (en) | Single-chip offline programming unit and offline programming method | |
CN103745167B (en) | The IAP method and device of single-chip microcomputer | |
CN110494855A (en) | System and method for restoring trusted system firmware condition | |
CN106547574A (en) | The outside download system and method for a kind of DSP programs and FPGA programs | |
CN101211266A (en) | FPGA automatic downloading and on-line upgrading process | |
CN104679559A (en) | Single chip microcomputer on-line programming method | |
CN103605542A (en) | Online updater of FPGA configuration files | |
CN110187909B (en) | Single-chip microcomputer firmware upgrading method based on android system | |
JP2010140266A (en) | Electronic device system and electronic device | |
CN105760191A (en) | Embedded system equipment programming mass production method | |
CN108153541A (en) | FPGA online upgrading methods based on 1553B buses | |
CN103838591A (en) | Upgrading method and device of multiple single-chip microcomputers based on serial buses | |
CN106303707A (en) | A kind of version method for burn-recording, system and terminal | |
CN102520961A (en) | Off-chip online programmable SOC (system on a chip) and control method for same | |
CN105487890A (en) | Firmware downloading method based on C51 series single chip microcomputer kernel | |
CN103677814A (en) | Program acquisition method, device and system | |
WO2016197883A1 (en) | Method and system for updating program of microcontroller online | |
CN204256722U (en) | A kind of single-chip offline programmer | |
CN105718416A (en) | Method for upgrading configuration file of FPGA (Field Programmable Gate Array) and upgrading device | |
CN104573567A (en) | Chip programming encryption protecting method and system | |
CN105930284A (en) | Method and device for loading FPGA | |
CN112925569A (en) | Firmware data processing method, device, equipment and storage medium | |
CN104503905B (en) | The adjustment method and debugging system of a kind of embedded system | |
CN115495136B (en) | BMC quick online upgrading method based on domestic Feiteng platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150325 |