CN102156420A - Device for accelerating downloading of data from computer to target memory of singlechip - Google Patents

Device for accelerating downloading of data from computer to target memory of singlechip Download PDF

Info

Publication number
CN102156420A
CN102156420A CN 201010601550 CN201010601550A CN102156420A CN 102156420 A CN102156420 A CN 102156420A CN 201010601550 CN201010601550 CN 201010601550 CN 201010601550 A CN201010601550 A CN 201010601550A CN 102156420 A CN102156420 A CN 102156420A
Authority
CN
China
Prior art keywords
pin
connect
circuit
chip
capacitor
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.)
Granted
Application number
CN 201010601550
Other languages
Chinese (zh)
Other versions
CN102156420B (en
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.)
Wei Qichao
Original Assignee
Tianjin University of Technology
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 Tianjin University of Technology filed Critical Tianjin University of Technology
Priority to CN2010106015500A priority Critical patent/CN102156420B/en
Publication of CN102156420A publication Critical patent/CN102156420A/en
Application granted granted Critical
Publication of CN102156420B publication Critical patent/CN102156420B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The invention discloses a device for accelerating downloading of data from a computer to a target memory of a singlechip. The device comprises a power supply switching circuit, a P1.0/P1.1 state selecting circuit, a serial port level conversion circuit and an automatic cold start circuit; the power supply switching circuit is used for switching a 5V power supply and a 3.3V power supply of a downloading device; the P1.0/P1.1 state selecting circuit is used for selecting whether the P1.0/P1.1 is needed to be grounded; the serial port level conversion circuit is used for serial communication between the computer and the singlechip; and the automatic cold start circuit is used for finishing the action of powering up again in a downloading process of a STC singlechip program. The downloading device is featured by automatic downloading in batches and high downloading efficiency.

Description

The device of quickening from the downloaded data to the single-chip microcomputer target memory
Technical field
The present invention relates to a kind of single-chip microcomputer download apparatus, specifically, relate to a kind of single-chip microcomputer batch download apparatus that Shenzhen macrocrystalline company produces that is used for.
Background technology
At present, support plate under the single-chip microcomputer that Shenzhen macrocrystalline company (abbreviating " STC Corporation " as) produces faces the control program and serial ports of computers carries out the burning process that program is finished in data communication by ISP.Under using the STC single-chip microcomputer during support plate, there is a problem---be exactly in each downloading process, that will carry out all that single-chip microcomputer re-powers restarts action firmly, brought inconvenience for actual application, if change 10000 secondary programs, will cut off the power supply 10000 times, single is exactly very big loss concerning switching device, seriously reduced the efficient of the source code that downloads in batches, slowed down the transfer velocity of program source code greatly from computing machine to the single-chip microcomputer target memory, simultaneously, also there is the drawback manually power on, can't automatic batch to download.
Summary of the invention
At the deficiencies in the prior art, the objective of the invention is to be to provide the device of a kind of quickening from the downloaded data to the single-chip microcomputer target memory, utilize automatic cold start-up circuit, realized re-powering action automatically in the STC single-chip microcomputer downloading process, have the automatic batch download function, improved the download efficiency of program source code from computing machine to the single-chip microcomputer target memory.
Technical scheme of the present invention is: the device of accelerating from the downloaded data to the single-chip microcomputer target memory comprises power supply switch circuit, P1.0/P1.1 state selecting circuit, serial ports level shifting circuit and automatic cold start-up circuit.
Described power supply switch circuit comprises supply socket J2, D.C. regulated power supply chip U3, single-pole double-throw (SPDT) self-lock switch S1, resistance R 11, light emitting diode D9, capacitor C 19 and C20; Supply socket J2 is directly from the USB interface of computer power taking; Resistance R 11 and light emitting diode D9 form power indicating circuit; The 1 pin ground connection of D.C. regulated power supply chip U3, voltage input end 3 pin of U3 connect 1 pin of supply socket J2, and 2 pin of U3 connect an end of capacitor C 20, voltage output end 4 pin of U3 connect an end of capacitor C 19, the common end grounding of C19 and C20, the input voltage of U3 are 5V, and output voltage is 3.3V; 1 pin of single-pole double-throw (SPDT) self-lock switch S1 connects 1 pin of supply socket J2, and 2 pin of S1 connect 4 pin of D.C. regulated power supply chip U3, and 6 pin of S1 connect the power end VCC of download apparatus.
Described P1.0/P1.1 state selecting circuit comprises a single-pole double-throw (SPDT) self-lock switch S2, and 1 pin of S2 and 4 pin are ground connection all, and 6 pin of S2 distribute with 5 pin and are connected the P1.0 and the P1.1 of STC single-chip microcomputer.
Described serial ports level shifting circuit serial communication integrated chip U1, D type connector J1, capacitor C 1, C2, C3 and C8.D type connector J1 is installed in the COM port of computing machine, and 2 pin of J1 connect 14 pin of serial communication integrated chip U1, and 3 pin of J1 connect 13 pin of U1, and 7 pin of J1 connect 8 pin of U1, the 5 pin ground connection of J1; 11 pin of serial communication integrated chip U1,12 pin are connected with P3.1 pin, the P3.0 pin of STC single-chip microcomputer respectively, and 9 pin of serial communication integrated chip U1 connect 1 pin of integrated chip U2A, are used to transmit the serial ports handshake between computing machine and the single-chip microcomputer.
Described automatic cold start-up circuit comprises integrated chip U2A, relay K 1, capacitor C 5 and C9, resistance R 2, transistor Q1; Common port 1 pin and 2 pin of the B utmost point of triode Q1 and capacitor C 5, C9, potentiometer R2 link together jointly, the other end ground connection of capacitor C 9,6 pin of the C utmost point of triode Q1 and single-pole double-throw (SPDT) self-lock switch S1 link together, the E utmost point of triode Q1 is connected with coil one end of relay K 1, the coil other end ground connection of relay K 1, normally closed contact 6 pin of relay K 1 are connected with 6 pin of single-pole double-throw (SPDT) self-lock switch S1, and common port 1 pin of K1 and the power control terminal VCCkey of download apparatus are connected; Input end 1 pin of integrated chip U2A is connected with 9 pin of serial communication integrated chip U1, and output terminal 2 pin of U2A and the positive pole of capacitor C 5 are connected.
Compared with prior art, beneficial effect of the present invention is:
STC Single Chip Microcomputer (SCM) program source code download apparatus efficient height of the present invention has been accelerated the transfer velocity of program source code from computing machine to the single-chip microcomputer target memory, can robotization batch loading source code.On the basis of support plate under the existing STC single-chip microcomputer, increase an automatic cold start-up circuit, utilize the conducting and the shutoff of differentiating circuit control triode, and then the switch of pilot relay normally closed contact, finish single-chip microcomputer outage earlier, after the process that powers on, just re-power process, realized the robotization source code function that downloads in batches.
Description of drawings
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Fig. 1 is circuit theory diagrams of the present invention.Wherein: 1-power supply switch circuit, 2-P1.0/P1.1 state selecting circuit, 3-serial ports level shifting circuit, the automatic cold start-up circuit of 4-.
Fig. 2 (a) is the 7 pin handshake waveforms of D type connector J1, and Fig. 2 (b) is the 9 pin signal waveforms of serial communication integrated chip U1, and Fig. 2 (c) is the output terminal 2 pin signal waveforms of integrated chip U2A, and Fig. 2 (d) is the B utmost point signal waveform of triode Q1.
Embodiment
As shown in Figure 1, the present invention comprises power supply switch circuit (1), P1.0/P1.1 state selecting circuit (2), serial ports level shifting circuit (3) and automatic cold start-up circuit (4).Power supply switch circuit (1) is used for the switching of download apparatus 5V and 3.3V power supply; P1.0/P1.1 state selecting circuit (2) is used for selecting P1.0/P1.1 whether to need ground connection; Serial ports level shifting circuit (3) is used for the serial communication of computing machine and single-chip microcomputer; Automatically cold start-up circuit (4) is used for finishing the action that STC Single Chip Microcomputer (SCM) program downloading process re-powers.
Power supply switch circuit (1) comprises supply socket J2, D.C. regulated power supply chip U3, single-pole double-throw (SPDT) self-lock switch S1, resistance R 11, light emitting diode D9, capacitor C 19 and C20.Supply socket J2 is directly from the USB interface of computer power taking; Resistance R 11 and light emitting diode D9 form power indicating circuit; The 1 pin ground connection of D.C. regulated power supply chip U3, voltage input end 3 pin of U3 connect 1 pin of supply socket J2, and 2 pin of U3 connect an end of capacitor C 20, voltage output end 4 pin of U3 connect an end of capacitor C 19, the common end grounding of C19 and C20, the input voltage of U3 are 5V, and output voltage is 3.3V; 1 pin of single-pole double-throw (SPDT) self-lock switch S1 connects 1 pin of supply socket J2,2 pin of S1 connect 4 pin of D.C. regulated power supply chip U3,6 pin of S1 connect the power end VCC of download apparatus, when the download device needs the 5V power supply, closed S1,1 pin of supply socket J2 and 6 pin of S1 are communicated with, and promptly can be download apparatus 5V is provided power supply; Disconnect S1,4 pin of D.C. regulated power supply chip U3 and 6 pin of S1 are communicated with, and promptly can be download apparatus 3.3V is provided power supply.
P1.0/P1.1 state selecting circuit (2) comprises a single-pole double-throw (SPDT) self-lock switch S2, and 1 pin of S2 and 4 pin are ground connection all, and 6 pin of S2 distribute with 5 pin and are connected the P1.0 and the P1.1 of STC single-chip microcomputer.In downloading process, choose " P1.0/P1.1 equals 0/0 and just can download " when downloading option, with single-pole double-throw (SPDT) self-lock switch S2 closure, 6 pin of S2 and 1 pin are communicated with, 5 pin of S2 and 4 pin are communicated with, and P1.0 and P1.1 be ground connection, and can enter the loading source code steps this moment; Choose " P1.0/P1.1 is irrelevant with download " when downloading option, S2 opens with the single-pole double-throw (SPDT) self-lock switch, and 6 pin of S2 and 1 pin disconnect, 5 pin of S2 and 4 pin disconnect, P1.0 and P1.1 are in vacant state, and can enter the loading source code steps this moment, and do not influence the level state of P1.0/P1.1.
Serial ports level shifting circuit (3) comprises serial communication integrated chip U1, D type connector J1, capacitor C 1, C2, C3 and C8.D type connector J1 is installed in the COM port of computing machine, and 2 pin of J1 connect 14 pin of serial communication integrated chip U1, and 3 pin of J1 connect 13 pin of U1, and 7 pin of J1 connect 8 pin of U1, the 5 pin ground connection of J1; 11 pin of serial communication integrated chip U1,12 pin are connected with P3.1 pin, the P3.0 pin of STC single-chip microcomputer respectively, and 9 pin of serial communication integrated chip U1 connect 1 pin of integrated chip U2A, are used to transmit the serial ports handshake between computing machine and the single-chip microcomputer.2 pin of D type connector J1 are RxD ends of computing machine, be responsible for receiving level signal from single-chip microcomputer, 3 pin are TxD ends of computing machine, be responsible for to single-chip microcomputer transmission level signal, 7 pin are serial ports handshake, shown in Fig. 2 (a), when starting download action, 7 pin can produce the negative skip signal of one 232 level.
Automatically cold start-up circuit (4) comprises integrated chip U2A, relay K 1, capacitor C 5 and C9, resistance R 2, transistor Q1.Common port 1 pin and 2 pin of the B utmost point of triode Q1 and capacitor C 5, C9, potentiometer R2 link together jointly, the other end ground connection of capacitor C 9,6 pin of the C utmost point of triode Q1 and single-pole double-throw (SPDT) self-lock switch S1 link together, the E utmost point of triode Q1 is connected with coil one end of relay K 1, the coil other end ground connection of relay K 1, normally closed contact 6 pin of relay K 1 are connected with 6 pin of single-pole double-throw (SPDT) self-lock switch S1, and common port 1 pin of K1 and the power control terminal VCCkey of download apparatus are connected; Input end 1 pin of integrated chip U2A is connected with 9 pin of serial communication integrated chip U1, and output terminal 2 pin of U2A and the positive pole of capacitor C 5 are connected.When starting download action, 7 pin of D type connector J1 produce the negative saltus step handshake of 232 level shown in Fig. 2 (a), behind serial communication integrated chip U1, handshake becomes the negative skip signal of the Transistor-Transistor Logic level shown in Fig. 2 (b), after passing through integrated chip U2A again, the positive transition signal of a Transistor-Transistor Logic level shown in Fig. 2 (c) of output on output terminal 2 pin, the differentiating circuit that this positive transition signal is formed by capacitor C 5 and resistance R 2, at spike pulse signal shown in Fig. 2 (d) of the B of triode Q1 utmost point moment generation, be positioned at π tPulse height in the time zone is higher than the B of Q1, PN junction trigger voltage between the E utmost point, triode Q1 conducting, the coil of relay K 1 is started working, normally closed contact 6 pin of K1 and common port 1 pin disconnect, at this moment 6 pin of the power control terminal VCCkey of download apparatus and single-pole double-throw (SPDT) self-lock switch S1 disconnect, the download apparatus outage, then, be carried in the high level process resistance R 2 of the B utmost point of triode Q1, the coil discharge of relay K 1 becomes low level after a period of time, the C of Q1, disconnect between the E utmost point, the coil of relay K 1 quits work, normally closed contact 6 pin of K1 and common port 1 pin are communicated with, at this moment the 6 pin conductings of the power control terminal VCCkey of download apparatus and single-pole double-throw (SPDT) self-lock switch S1, download apparatus powers on.Whole process is utilized handshake, differentiating circuit and the relay of serial ports, finish single-chip microcomputer outage earlier, after the process that powers on, just re-power the process of (cold start-up again), realized download the in batches function of source code of robotization.

Claims (5)

1. the device of a quickening from the downloaded data to the single-chip microcomputer target memory comprises power supply switch circuit, P1.0/P1.1 state selecting circuit, serial ports level shifting circuit, it is characterized in that, also comprises automatic cold start-up circuit.
2. the device of quickening according to claim 1 from the downloaded data to the single-chip microcomputer target memory, it is characterized in that, described power supply switch circuit comprises supply socket J2, D.C. regulated power supply chip U3, single-pole double-throw (SPDT) self-lock switch S1, resistance R 11, light emitting diode D9, capacitor C 19 and C20; Supply socket J2 is directly from the USB interface of computer power taking; Resistance R 11 and light emitting diode D9 form power indicating circuit; The 1 pin ground connection of D.C. regulated power supply chip U3, voltage input end 3 pin of U3 connect 1 pin of supply socket J2, and 2 pin of U3 connect an end of capacitor C 20, voltage output end 4 pin of U3 connect an end of capacitor C 19, the common end grounding of C19 and C20, the input voltage of U3 are 5V, and output voltage is 3.3V; 1 pin of single-pole double-throw (SPDT) self-lock switch S1 connects 1 pin of supply socket J2, and 2 pin of S1 connect 4 pin of D.C. regulated power supply chip U3, and 6 pin of S1 connect the power end VCC of download apparatus.
3. the device of quickening according to claim 1 from the downloaded data to the single-chip microcomputer target memory, it is characterized in that, described P1.0/P1.1 state selecting circuit comprises a single-pole double-throw (SPDT) self-lock switch S2,1 pin of S2 and 4 pin are ground connection all, and 6 pin of S2 distribute with 5 pin and are connected the P1.0 and the P1.1 of STC single-chip microcomputer.
4. the device of quickening according to claim 1 from the downloaded data to the single-chip microcomputer target memory is characterized in that, described serial ports level shifting circuit serial communication integrated chip U1, D type connector J1, capacitor C 1, C2, C3 and C8; D type connector J1 is installed in the COM port of computing machine, and 2 pin of J1 connect 14 pin of serial communication integrated chip U1, and 3 pin of J1 connect 13 pin of U1, and 7 pin of J1 connect 8 pin of U1, the 5 pin ground connection of J1; 11 pin of serial communication integrated chip U1,12 pin are connected with P3.1 pin, the P3.0 pin of STC single-chip microcomputer respectively, and 9 pin of serial communication integrated chip U1 connect 1 pin of integrated chip U2A, are used to transmit the serial ports handshake between computing machine and the single-chip microcomputer.
5. the device of quickening according to claim 1 from the downloaded data to the single-chip microcomputer target memory is characterized in that, described automatic cold start-up circuit comprises integrated chip U2A, relay K 1, capacitor C 5 and C9, resistance R 2, transistor Q1; Common port 1 pin and 2 pin of the B utmost point of triode Q1 and capacitor C 5, C9, potentiometer R2 link together jointly, the other end ground connection of capacitor C 9,6 pin of the C utmost point of triode Q1 and single-pole double-throw (SPDT) self-lock switch S1 link together, the E utmost point of triode Q1 is connected with coil one end of relay K 1, the coil other end ground connection of relay K 1, normally closed contact 6 pin of relay K 1 are connected with 6 pin of single-pole double-throw (SPDT) self-lock switch S1, and common port 1 pin of K1 and the power control terminal VCCkey of download apparatus are connected; Input end 1 pin of integrated chip U2A is connected with 9 pin of serial communication integrated chip U1, and output terminal 2 pin of U2A and the positive pole of capacitor C 5 are connected.
CN2010106015500A 2010-12-23 2010-12-23 Device for accelerating downloading of data from computer to target memory of singlechip Expired - Fee Related CN102156420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106015500A CN102156420B (en) 2010-12-23 2010-12-23 Device for accelerating downloading of data from computer to target memory of singlechip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106015500A CN102156420B (en) 2010-12-23 2010-12-23 Device for accelerating downloading of data from computer to target memory of singlechip

Publications (2)

Publication Number Publication Date
CN102156420A true CN102156420A (en) 2011-08-17
CN102156420B CN102156420B (en) 2012-11-07

Family

ID=44437962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106015500A Expired - Fee Related CN102156420B (en) 2010-12-23 2010-12-23 Device for accelerating downloading of data from computer to target memory of singlechip

Country Status (1)

Country Link
CN (1) CN102156420B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708770A (en) * 2015-11-12 2017-05-24 中车大连电力牵引研发中心有限公司 Program downloading device
CN107562664A (en) * 2017-09-18 2018-01-09 深圳市泰比特科技有限公司 A kind of microcontroller serial port update device and its circuit
CN110413550A (en) * 2018-04-27 2019-11-05 北京天诚同创电气有限公司 A kind of chip serial ports program downloading control circuit
US11628160B2 (en) 2017-09-15 2023-04-18 Azevan Pharmaceuticals, Inc. Compositions and methods for treating brain injury

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211516A (en) * 2007-12-21 2008-07-02 浙江大学 Single chip machine integrated experiment platform facing embedded system
CN101526931A (en) * 2009-04-02 2009-09-09 华东师范大学 Universal serial bus in-system programmer of single chip microcomputer
CN201421668Y (en) * 2009-05-31 2010-03-10 深圳市高技能人才公共实训管理服务中心 Single chip computer control system training box
CN201638042U (en) * 2009-09-21 2010-11-17 汪烈军 Small universal singlechip system based on serial port downloading

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211516A (en) * 2007-12-21 2008-07-02 浙江大学 Single chip machine integrated experiment platform facing embedded system
CN101526931A (en) * 2009-04-02 2009-09-09 华东师范大学 Universal serial bus in-system programmer of single chip microcomputer
CN201421668Y (en) * 2009-05-31 2010-03-10 深圳市高技能人才公共实训管理服务中心 Single chip computer control system training box
CN201638042U (en) * 2009-09-21 2010-11-17 汪烈军 Small universal singlechip system based on serial port downloading

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708770A (en) * 2015-11-12 2017-05-24 中车大连电力牵引研发中心有限公司 Program downloading device
US11628160B2 (en) 2017-09-15 2023-04-18 Azevan Pharmaceuticals, Inc. Compositions and methods for treating brain injury
CN107562664A (en) * 2017-09-18 2018-01-09 深圳市泰比特科技有限公司 A kind of microcontroller serial port update device and its circuit
CN107562664B (en) * 2017-09-18 2023-07-25 深圳市泰比特科技有限公司 SCM serial port upgrading device and circuit thereof
CN110413550A (en) * 2018-04-27 2019-11-05 北京天诚同创电气有限公司 A kind of chip serial ports program downloading control circuit

Also Published As

Publication number Publication date
CN102156420B (en) 2012-11-07

Similar Documents

Publication Publication Date Title
CN202872406U (en) Interface multiplexing circuit and mobile terminal
CN204145000U (en) The adjustable charging circuit of charging current and there is the electronic product of this charging circuit
CN102156420B (en) Device for accelerating downloading of data from computer to target memory of singlechip
CN103699200B (en) A kind of shutdown control circuit and electronic product
CN205199969U (en) Can realize automatic classification's after chip testing test equipment
CN104731305A (en) Shutdown control circuit and electronic product with same
CN202711238U (en) Watchdog circuit
CN207752441U (en) A kind of software and hardware on/off circuit
CN202033741U (en) Program download device for STC single-chip microcomputer
CN203012413U (en) Dual-power low-power consumption self-programming data acquisition and transmission module
CN102436413B (en) Debugging system and debugging method of board power supply
CN104268044A (en) Method and device for performing loop test on normal startup and shutdown of server system
CN205283509U (en) Cd -rom recorder
CN204480233U (en) A kind of automatic download circuit of STC single-chip microcomputer supporting 5V and 3.3V
CN203520299U (en) Timer-power-on control circuit
CN203340350U (en) LED road lighting control system under control of carrier communication of power lines
CN201114445Y (en) Electronic device with idle control circuit
CN201974798U (en) Television off-line upgrading tool
CN106025728A (en) Wireless infrared intelligent socket
CN203658944U (en) Power-off control circuit and electronic product
CN204706915U (en) Acquisition workstation, law-enforcing recorder and charging circuit
TWI669678B (en) Intelligent energy management off-grid solar inverter energy storage system
CN202421992U (en) Power control based reset circuit
CN103049418B (en) A kind of symmetrical without pros-and-cons type K-RS232 converter
CN206672086U (en) STC single-chip microcomputers are downloaded and proper communication adaptive circuit automatically

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Wei Qichao

Inventor before: Wang Liqiang

Inventor before: Mu Ya

Inventor before: Zhou Chuanghua

Inventor before: Li Aiying

CB03 Change of inventor or designer information
TR01 Transfer of patent right

Effective date of registration: 20180118

Address after: No. 60, Fuxing Road, Chengguan Town, Jiaxian, Pingdingshan, Henan

Patentee after: Wei Qichao

Address before: No. 1310, Liulin East Dagu South Road, Tianjin, Tianjin

Co-patentee before: Wang Liqiang

Patentee before: Tianjin University of Technology and Education

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121107

Termination date: 20181223

CF01 Termination of patent right due to non-payment of annual fee