CN203350863U - Bootstrap loading program circuit based on USB interface - Google Patents

Bootstrap loading program circuit based on USB interface Download PDF

Info

Publication number
CN203350863U
CN203350863U CN 201320348297 CN201320348297U CN203350863U CN 203350863 U CN203350863 U CN 203350863U CN 201320348297 CN201320348297 CN 201320348297 CN 201320348297 U CN201320348297 U CN 201320348297U CN 203350863 U CN203350863 U CN 203350863U
Authority
CN
China
Prior art keywords
program
interface
circuit
usb
usb interface
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 - Lifetime
Application number
CN 201320348297
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.)
Tianjin 712 Communication and Broadcasting Co Ltd
Original Assignee
Tianjin 712 Communication and Broadcasting Co Ltd
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 712 Communication and Broadcasting Co Ltd filed Critical Tianjin 712 Communication and Broadcasting Co Ltd
Priority to CN 201320348297 priority Critical patent/CN203350863U/en
Application granted granted Critical
Publication of CN203350863U publication Critical patent/CN203350863U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The utility model relates to a bootstrap loading program circuit based on a USB interface. The bootstrap loading program circuit comprises a bootstrap loading program data line based on the USB interface and a bootstrap loading program circuit body. The bootstrap loading program data line based on the USB interface is composed of the USB interface, a power conversion circuit, a USB circuit, an activation switch, a program downloading output interface, a power supply cable, a data cable and an activation switch. The bootstrap loading program circuit body is installed on a product with a program to be downloaded and comprises a program downloading input interface, a D trigger, a serial interface electrostatic protection diode and an embedded microcontroller. The bootstrap loading program circuit based on the USB interface has the advantages that an embedded system program can be conveniently updated without demounting the product, and using combination buttons on the product or a computer with an RS-232 serial interface, the phenomenon of entering the bootstrap loading program mode by mistake can be effectively avoided, the port of the embedded microcontroller can be effectively protected, and the bootstrap loading program circuit can be also used as an ordinary data communication cable and allows the serial number and other configuration information to be conveniently written in.

Description

A kind of based on USB interface bootstrapping loading procedure circuit
Technical field
The utility model relates to a kind of bootstrapping loading procedure circuit, particularly a kind of based on USB interface bootstrapping loading procedure circuit.
Background technology
At industrial control field, it is conventional means very easily that embedded system is upgraded to software by the option program boot mode, the mode of bootstrapping loading procedure pattern in the past is the BOOT pin level of microcontroller directly is set or enters bootstrapping loading procedure pattern by the Macintosh start, by serial ports to the flash memory reprogramming, but for there is no button or button equipment seldom, can not use combination button to enter bootstrapping loading procedure pattern, make each program upgrade all will take equipment apart, the BOOT pin of microcontroller in printed board directly is set, make like this program upgrade bother very much.If the BOOT pin directly is drawn out to the upgrade interface place, probably cause the bootstrapping loading procedure pattern that enters of device Errors, cause the damage of device program.
In addition, a lot of microcontrollers only support the UART serial ports to the flash memory reprogramming, but today of IT industry high speed development, most computers is the slower RS-232 serial line interface of configuration speed no longer, cause using computing machine to become the very thing of trouble to the embedded system ROMPaq.
Summary of the invention
In order to overcome the program upgrade trouble, and computing machine do not have the RS-232 serial line interface problem, it is a kind of based on USB interface bootstrapping loading procedure circuit that the utility model provides, concrete technical scheme is, a kind of based on USB interface bootstrapping loading procedure circuit, comprise based on USB interface bootstrapping loading procedure data line and bootstrapping loading procedure circuit, it is characterized in that: described based on USB interface bootstrapping loading procedure data line by USB interface, power converting circuit, USB turns serial port circuit, activator switch, program is downloaded output interface, service cable, data cable and activator switch form, its be connected to USB interface+5V output terminal by service cable connect power converting circuit+the 5V input end, data terminal D+ and D-turn respectively D+ and the D-input end of serial port circuit by the two-way connection USB of data cable, GND output terminal linker is downloaded GND input end the ground connection of output interface, power converting circuit+the 3.3V output terminal respectively linker download the VCC input end of output interface, activator switch and USB turn serial port circuit, the activator switch linker is downloaded the output terminal of clock CLK of output interface, USB turns the TXD input end of the TXD output terminal forward linker download output interface of serial port circuit, the RXD output terminal is downloaded the RXD input end of output interface by cable Opposite direction connection program, described bootstrapping loading procedure circuit is arranged in the product of program to be downloaded, comprise program download input interface, d type flip flop, serial ports electrostatic defending diode and embedded microcontroller, it is connected to program and downloads power supply input VCC end and the data input D end that the VCC end of input interface connects respectively d type flip flop, after also connecting a resistance simultaneously, the clock input CLK end of clock input CLK end connection d type flip flop connects d type flip flop ground connection, UART serial ports sending and receiving end RXD and TXD end with the UART sending and receiving end TXD of embedded microcontroller in the product of program to be downloaded, with the RXD end, be connected respectively and line in respectively be connected respectively ground connection after a serial ports electrostatic defending diode, the data output Q of d type flip flop is connected to the BOOT input end of product embedded microcontroller, GND end and the program of product embedded microcontroller downloaded input interface GND end and is connected and ground connection, system is connected to computing machine and dock with the USB interface based on USB interface bootstrapping loading procedure data line, and the program download input interface that the program based on USB interface bootstrapping loading procedure data line is downloaded in the product of output interface by cable and program to be downloaded the loading procedure circuit of booting docks.
Realize based on USB interface bootstrapping loading procedure circuit that as follows the bootstrapping of program loads:
A) at first will with computing machine, be connected based on the USB interface loading procedure data line USB interface of booting, the computing machine connected will shift to an earlier date install driver;
B) computing machine is given the power supply based on provide+5V of USB interface bootstrapping loading procedure data line by USB interface, and+5V power supply offers USB through be adjusted to+3.3V of power converting circuit voltage and turns serial port circuit and program download interface;
C) after USB turns the serial port circuit energising, computer drivers turns serial port circuit to USB and carries out the initialization setting, makes USB turn serial port circuit and can realize USB and UART bi-directional data conversion transmission;
D) will download output interface and be connected with the program download input interface of product based on the boot program of loading procedure data line of USB interface; Make the UART serial ports transceiving data port based on USB interface bootstrapping loading procedure data line be connected with the serial ports sending and receiving end of embedded microprocessor; Power supply on USB interface bootstrapping loading procedure data line is powered to d type flip flop, and the data input pin of d type flip flop is set to high level;
E) press based on USB interface bootstrapping loading procedure data line activator switch 1-3, produce a pulse signal on the clock line of program download output interface, this pulse signal is downloaded output interface through program and is input to the d type flip flop input end of clock in bootstrapping loading procedure circuit.D type flip flop after receiving time clock latchs the high level of data input pin, makes data output end be set to high level, and embedded microcontroller BOOT pin is set high;
F) power up to product, make the embedded microcontroller electrifying startup, because BOOT pin now is set to high level, so embedded microcontroller directly enters bootstrapping loading procedure pattern;
G) start computer program and write software, can start program download work.Program will be separated with product based on the USB interface loading procedure data line of booting after having downloaded, and data line can continue as other product loading procedures;
H) if need to be product writing sequence number or configuration information by the UART serial ports, only need to be according to the described operation of top operation steps, and skips steps e), the data output end of d type flip flop will keep low level like this, embedded microcontroller can not enter bootstrapping loading procedure pattern, at this moment based on USB interface bootstrapping loading procedure data line, can be used as common communication cable and uses.
The beneficial effects of the utility model are need not take product apart, do not use combination button on product, needn't use the computing machine with RS-232 serial line interface to realize easily upgrading program of embedded system; can effectively prevent the wrong bootstrapping loading procedure pattern that enters and protection embedded microcontroller port; and can be used as the normal data communications cable and use, the configuration information such as writing sequence number easily.
The accompanying drawing explanation
Fig. 1 is that the utility model is based on USB interface bootstrapping loading procedure data line circuit figure.
Fig. 2 is the utility model bootstrapping loading procedure circuit figure.
Fig. 3 is the utility model system connection layout.
Specific embodiments
Below in conjunction with circuit diagram, the utility model implementation is further illustrated:
As shown in Figure 1, boot the loading procedure data line by USB interface based on USB interface, power converting circuit, USB turns serial port circuit, activator switch 1-3, program is downloaded output interface, service cable 1-1, data cable 1-2, activator switch 1-3 forms, wherein said USB interface adopts general USB A type male conveniently to dock with computing machine, it is that USB turns serial port circuit that power converting circuit adopts the integrated LDO voltage adjuster of 150mA general+5V voltage transitions one-tenth+3.3V, activator switch 1-3, the d type flip flop power supply of bootstrapping loading procedure circuit, USB turns serial port circuit and adopts the enhanced general asynchronous serial transceiver XR21V1410 with USB interface to realize, activator switch 1-3 adopts touch-switch.
USB interface based in USB interface bootstrapping loading procedure data line+5V output terminal by service cable 1-1 be connected to power converting circuit+the 5V input end, data terminal D+, D-is connected to by data cable 1-2 the D+ that USB turns serial port circuit, the D-end, GND connects the power supply ground of whole data line, power converting circuit+3.3V output turns the serial port circuit power supply with USB and is connected to its power supply, simultaneously+3.3V output is connected with the power port of program download output interface, in addition+3.3V output terminal also is connected with activator switch, activator switch is connected with the output terminal of clock that program is downloaded output interface, the UART serial ports sending and receiving end that USB turns serial port circuit is connected with the UART serial ports sending and receiving end of program download output interface, the power supply ground that program is downloaded output interface is connected with data line power supply ground.USB interface based on USB interface bootstrapping loading procedure data line is with after computing machine is connected, computing machine will provide for data line+5V Power supply, be adjusted to+3.3V of power converting circuit general+5V voltage voltage, supply with afterwards after filtering USB and turn serial port circuit, activator switch 1-3, program is downloaded output interface, after USB turns the serial port circuit energising, USB turns the pull-up resistor that serial port circuit applies a 1.5K on D+, make like this computing machine perceive outside the high speed device access is arranged, computing machine automatically starts the XR21V1410 chip driver program XR21V1410 chip is carried out to the initialization setting, make USB turn serial port circuit and can realize USB and UART bi-directional data conversion transmission.
The VCC port of downloading output interface based on USB interface bootstrapping loading procedure data line by program is provide+3.3V of program product to be downloaded power supply, and can on the CLK port, produce the program download circuit use that a pulse signal offers product while pressing activator switch 1-3.
As shown in Figure 2, the interiors of products of program to be downloaded is integrated bootstrapping loading procedure circuit, bootstrapping loading procedure main circuit will comprise program download input interface, d type flip flop, serial ports electrostatic defending diode 2-1 and embedded microcontroller, the program download interface is selected to download the corresponding model of output interface with the program based on USB interface bootstrapping loading procedure data line and is interconnected, d type flip flop adopts the single channel rising edge D class trigger SN74AUC1G80 of TI company, Main Function is to move and BOOT pin state is set for embedded microcontroller by combination, because the power supply of d type flip flop is downloaded input interface by program and is supplied with, therefore only have under the product off-mode of program to be downloaded program to download input interface and supply with a stable+3.3V power supply, and input a pulse signal subsequently on the CLK end of program download input interface, now open the product power supply, the embedded microprocessor of product just can enter the bootstrap routine loading mode, such combination action has effectively been avoided making entering the bootstrap routine loading mode and effectively preventing exterior static damage embedded microprocessor of product mistake because of situations such as electrostatic interference.Meet electrostatic defending diode 2-1 on RXD and TXD connecting line, the protection embedded microprocessor avoids exterior static to be damaged.After the program based on USB interface bootstrapping loading procedure data line is downloaded output interface and the program download input interface of bootstrapping loading procedure circuit is communicated with, + 3.3V power supply is supplied with d type flip flop by the VCC port, and the data input pin D of d type flip flop is set to high level, now the input end of clock CLK of d type flip flop is because being connected to pull down resistor, and clock keeps low level.The data output end Q of d type flip flop keeps low level output, after the activator switch 1-3 based on USB interface bootstrapping loading procedure data line is pressed, the CLK end that pulse signal is downloaded input interface by program is conveyed into the CLK end of d type flip flop, the level of the data output end Q of d type flip flop changes immediately, keep consistent with data input pin D, therefore the level of data output end is uprised by low, the BOOT pin that is embedded microprocessor obtains high level, if now embedded microprocessor powers up start, embedded microprocessor will detect the BOOT pin and be drawn high, automatically enter bootstrapping loading procedure state and wait for the instruction received from computing machine.
Computing machine based on USB interface bootstrapping loading procedure data line driver has been installed and the loading procedure data line of booting based on USB interface can have been invented to a RS-232 serial input delivery outlet and use, computer run download tool software selected after suitable com port can start program loading work.
If boot the loading procedure data line after connecting bootstrapping loading procedure circuit based on USB interface, do not touch activator switch 1-3 and just directly start embedded microprocessor, now based on USB interface bootstrapping loading procedure data line, can only turn serial port data line as generic USB and use.
As shown in Figure 3, based on USB interface bootstrapping loading procedure data line, at first with computing machine, be connected, and then be connected with the product of program to be downloaded, comprise bootstrapping loading procedure circuit and embedded microprocessor in product, if while using as program downloading data line, need to first press an activator switch 1-3, make the d type flip flop output high level of the bootstrapping loading procedure circuit in product, then open the product power supply of program to be downloaded, embedded microprocessor automatically enters the bootstrapping loading and becomes the mode, the start program upgrading; If use as the general data line, just first do not press activator switch 1-3, directly the normal product power supply of opening can be realized bi-directional communication function.
Based on USB interface bootstrapping loading procedure data line circuit and usb segment, be arranged in a plastic casing, the program download interface is connected with circuit part by cable, and activator switch is placed in the convenient use in plastic casing side.

Claims (1)

1. one kind based on USB interface bootstrapping loading procedure circuit, comprise based on USB interface bootstrapping loading procedure data line and bootstrapping loading procedure circuit, it is characterized in that: described based on USB interface bootstrapping loading procedure data line by USB interface, power converting circuit, USB turns serial port circuit, activator switch, program is downloaded output interface, service cable (1-1), data cable (1-2) and activator switch (1-3) form, its be connected to USB interface+5V output terminal by service cable (1-1) connect power converting circuit+the 5V input end, data terminal D+ and D-turn respectively D+ and the D-input end of serial port circuit by the two-way connection USB of data cable (1-2), GND output terminal linker is downloaded GND input end the ground connection of output interface, power converting circuit+the 3.3V output terminal respectively linker download the VCC input end of output interface, activator switch (1-3) and USB turn serial port circuit, activator switch (1-3) linker is downloaded the output terminal of clock CLK of output interface, USB turns the TXD input end of the TXD output terminal forward linker download output interface of serial port circuit, the RXD output terminal is downloaded the RXD input end of output interface by cable Opposite direction connection program, described bootstrapping loading procedure circuit is arranged in the product of program to be downloaded, comprise program download input interface, d type flip flop, serial ports electrostatic defending diode (2-1) and embedded microcontroller, it is connected to program and downloads power supply input VCC end and the data input D end that the VCC end of input interface connects respectively d type flip flop, after also connecting a resistance simultaneously, the clock input CLK end of clock input CLK end connection d type flip flop connects d type flip flop ground connection, UART serial ports sending and receiving end RXD and TXD end with the UART sending and receiving end TXD of embedded microcontroller in the product of program to be downloaded, with the RXD end, be connected respectively and line in respectively be connected respectively ground connection after a serial ports electrostatic defending diode (2-1), the data output Q of d type flip flop is connected to the BOOT input end of product embedded microcontroller, GND end and the program of product embedded microcontroller downloaded input interface GND end and is connected and ground connection, system is connected to computing machine and dock with the USB interface based on USB interface bootstrapping loading procedure data line, and the program download input interface that the program based on USB interface bootstrapping loading procedure data line is downloaded in the product of output interface by cable and program to be downloaded the loading procedure circuit of booting docks.
CN 201320348297 2013-06-18 2013-06-18 Bootstrap loading program circuit based on USB interface Expired - Lifetime CN203350863U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201320348297 CN203350863U (en) 2013-06-18 2013-06-18 Bootstrap loading program circuit based on USB interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201320348297 CN203350863U (en) 2013-06-18 2013-06-18 Bootstrap loading program circuit based on USB interface

Publications (1)

Publication Number Publication Date
CN203350863U true CN203350863U (en) 2013-12-18

Family

ID=49750734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201320348297 Expired - Lifetime CN203350863U (en) 2013-06-18 2013-06-18 Bootstrap loading program circuit based on USB interface

Country Status (1)

Country Link
CN (1) CN203350863U (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016000260A1 (en) * 2014-07-04 2016-01-07 Abb Technology Ltd Standalone automation device and machine
CN109217451A (en) * 2018-11-07 2019-01-15 越阳科技(厦门)有限公司 A kind of usb circuit for intelligent water toilet pan
CN110908689A (en) * 2019-11-27 2020-03-24 杭州莱宸科技有限公司 Program upgrading interface circuit, embedded device, downloading interface circuit and downloader
CN111527473A (en) * 2017-12-29 2020-08-11 裕罗有限公司 Software updating device and software updating method using the same

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016000260A1 (en) * 2014-07-04 2016-01-07 Abb Technology Ltd Standalone automation device and machine
US10019269B2 (en) 2014-07-04 2018-07-10 Abb Schweiz Ag Standalone automation device and a machine
CN111527473A (en) * 2017-12-29 2020-08-11 裕罗有限公司 Software updating device and software updating method using the same
CN111527473B (en) * 2017-12-29 2023-07-25 裕罗有限公司 Software updating device and software updating method using same
CN109217451A (en) * 2018-11-07 2019-01-15 越阳科技(厦门)有限公司 A kind of usb circuit for intelligent water toilet pan
CN109217451B (en) * 2018-11-07 2024-04-19 越阳科技(厦门)有限公司 USB interface circuit for intelligent toilet
CN110908689A (en) * 2019-11-27 2020-03-24 杭州莱宸科技有限公司 Program upgrading interface circuit, embedded device, downloading interface circuit and downloader
CN110908689B (en) * 2019-11-27 2023-09-15 杭州莱宸科技有限公司 Program upgrade interface circuit, embedded device, download interface circuit, and downloader

Similar Documents

Publication Publication Date Title
CN103309711A (en) Bootstrap loader circuit based on USB interface
CN203350863U (en) Bootstrap loading program circuit based on USB interface
CN107368441B (en) Configurable and power optimization integrated grid driver and Type-C SoC for USB transmission of electricity
EP2221731A1 (en) Low power and low pin count bi-directional dual data rate device interconnect interface
CN108139789A (en) Usb circuit and the method for low electric power operation
CN102054370B (en) USB (universal serial bus) cable controller and electronic reading device using same
CN100444147C (en) Master device, control method thereof, and electronic device having master device
CN103617056A (en) FPGA logical code online updating method and device
CN103761129B (en) Method of implementing SDIO (secure digital input/output) interface drive in Boot loader layer
US20080126589A1 (en) Systems and Methods for Selectively Connecting a Data Port to One of Multiple Peripheral Device Ports
CN100504831C (en) Method and apparatus for recovering I2C bus locked by slave device
CN103219042A (en) Circuit for realizing program burning through USB interface and memory circuit
CN203950298U (en) A kind of wireless programming device
CN102446101A (en) System for mandatorily upgrading firmware and method for mandatorily upgrading firmware thereof
CN103914167A (en) Computer system and touch control and display data transmission device and method thereof
CN201518128U (en) Software upgrading and debugging tool
CN102567270A (en) USB (universal serial bus)-to-I2C (inter-integrated circuit) adapter
CN105095000A (en) BIOS restoring circuit
CN201072549Y (en) GPIB-USB test instrument controller
CN103810120A (en) Method for compatibility control over serial port screen
CN104793968A (en) Vehicle electronic control unit program programming device and implementation method thereof
CN106843569A (en) A kind of touch control system and a kind of virtual reality device
CN203552657U (en) LED display screen module group with bidirectional communication
CN202854805U (en) Data transmission line
CN103236154B (en) A kind of infrared serial interface communication means and device

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 300462 Binhai New Area, Tianjin economic and Technological Development Zone, North Street, No. 141

Patentee after: TIANJIN 712 COMMUNICATION & BROADCASTING Co.,Ltd.

Address before: 300462 Binhai New Area, Tianjin economic and Technological Development Zone, North Street, No. 141

Patentee before: Tianjin 712 Communication & Broadcasting Co.,Ltd.

CX01 Expiry of patent term

Granted publication date: 20131218

CX01 Expiry of patent term