CN103439901A - Program programming circuit universal to single chip microcomputer and embedded type microprocessor - Google Patents
Program programming circuit universal to single chip microcomputer and embedded type microprocessor Download PDFInfo
- Publication number
- CN103439901A CN103439901A CN2013103444480A CN201310344448A CN103439901A CN 103439901 A CN103439901 A CN 103439901A CN 2013103444480 A CN2013103444480 A CN 2013103444480A CN 201310344448 A CN201310344448 A CN 201310344448A CN 103439901 A CN103439901 A CN 103439901A
- Authority
- CN
- China
- Prior art keywords
- pin
- chip
- embedded microprocessor
- chip microcomputer
- connects
- 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
- Microcomputers (AREA)
Abstract
A program programming circuit universal to a single chip microcomputer and an embedded type microprocessor comprises a USB port and a USB circuit. A chip CH340 is adopted on the USB circuit, a D+ signal line of the USB port is connected with a UD+ pin of the chip CH340, a D- signal line of the USB port is connected with a UD- pin of the chip CH340, an RXD pin of the chip CH340 is connected with a serial input pin of the single chip microcomputer or a serial input pin of the embedded type microprocessor, a TXD pin of the chip CH340 is connected with a serial output pin of the single chip microcomputer or a serial output pin of the embedded type microprocessor, a VCC pin of the chip CH340 is connected with a power supply and meanwhile connected with the ground through a capacitor C8, a crystal oscillator X1 of a 12MHZ is connected between an XT1 pin and an XT0 pin, the XT1 pin is connected with an oscillation capacitor C21 on the ground, and the XT0 pin is connected with an oscillation capacitor C22 on the ground. The program programming circuit is simple in hardware structure. By means of the program programming circuit, the area of a development board can be reduced, the design of hardware is simplified, and cost is reduced.
Description
Technical field
The present invention relates to single-chip microcomputer and field of embedded technology, specifically provide a kind of single-chip microcomputer and embedded microprocessor general program burn writing circuit.
Background technology
At present, in the hardware device of Single Chip Microcomputer (SCM) program programming, mostly adopt serial ports to download, more convenient.And also often adopting JATG to carry out program burn writing for the embedded chip with Flash in sheet, it is larger that this not only spends cost, and the hardware circuit complexity, and be unfavorable for carrying.In addition, the present invention partly provides a kind of method for single-chip microcomputer and the hardware development of Embedded multinuclear teaching platform, and very strong practicality is arranged.For begining to learn embedded person, simplified to a certain extent the complicacy from the single-chip microcomputer to the flush type learning.
Summary of the invention
In order to overcome the shortcoming of above-mentioned prior art, the purpose of this invention is to provide the general program burn writing circuit of a kind of single-chip microcomputer and embedded microprocessor, use the CH340 chip, can directly circuit be integrated in development board, there are characteristics simple in structure, with low cost.
For achieving the above object, the technical scheme that the present invention takes is:
The program burn writing circuit that a kind of single-chip microcomputer and embedded microprocessor are general, comprise that USB interface and USB turn serial port circuit, described USB turns serial port circuit and uses chip CH340, and the D+ signal wire of described USB interface connects the UD+ pin of CH340 chip, and the D-signal wire connects the UD-pin of CH340 chip; The RXD pin of described CH340 connects the serial input pin of single-chip microcomputer or embedded microprocessor, the TXD pin of CH340 chip connects the serial output pin of single-chip microcomputer or embedded microprocessor, the VCC pin of CH340 chip is connected to power supply, passes through capacitor C simultaneously
8ground connection, the crystal oscillator X of connection 12MHZ between XT1 and XT0 pin
1, the XT1 pin connects the concussion capacitor C over the ground
21, the XT0 pin connects the concussion capacitor C over the ground
22.
When being embedded microprocessor programming program, with jumper cap, control, while making the programming program, the RXD pin of CH340 chip connects the serial input pin of embedded microprocessor, the TXD pin of CH340 chip connects the serial output pin of embedded microprocessor, make two pins of embedded microprocessor realize time-sharing multiplex, do not use as common I/O mouth by changing wire jumper while not making the use of program burn writing circuit.
Described capacitor C
8for 0.01uF, C
21and C
22be 22pF.
Described embedded microprocessor refers to the chip that includes Flash in sheet.
Described embedded microprocessor is the LPC2103 in LPC210X series.
Compared with prior art, advantage of the present invention is:
By adopting this single-chip microcomputer and universal embedded program burn writing circuit, simplified the design of hardware circuit in single-chip microcomputer and embedded board, reduce costs.Application prospect that the more important thing is this circuit is extensive, and in the hardware development of multinuclear teaching platform, this circuit has vital role.
The accompanying drawing explanation
Fig. 1 is the circuit structure block diagram.
Fig. 2 is the particular hardware circuit diagram, and wherein Fig. 2 a is usb circuit figure, and Fig. 2 b is the circuit diagram of USB when turning serial port circuit and being connected with single-chip microcomputer or embedded microprocessor.
Embodiment
Describe embodiments of the present invention in detail below in conjunction with drawings and Examples.
As shown in Figure 1, the invention provides a kind of single-chip microcomputer and universal embedded program burn writing circuit, comprise USB interface, USB turns serial port circuit and corresponding connecting circuit.
As shown in Figure 2 (a) shows, be connected to the electrochemical capacitor of 220U/16V between the VCC of USB interface and GND, play the effect of filtering.Enter voltage stabilizing diode 1N4734A in the VCC termination and carry out voltage stabilizing.R1 connects with D2, and VCC and GND are received respectively in two ends, as the power supply electrifying pilot lamp, uses.
USB turns serial port circuit and uses chip CH340, and the D+ signal wire of USB interface connects the UD+ pin of CH340 chip, and the D-signal wire meets the UD-pin of CH340 chip, D
2for the pilot lamp that powers on.The RXD pin of CH340 connects the serial input pin of single-chip microcomputer or embedded microprocessor, the TXD pin of CH340 chip connects the serial output pin of single-chip microcomputer or embedded microprocessor, the VCC pin of CH340 chip is connected to power supply, as shown in Fig. 2 (b), passes through capacitor C simultaneously
8ground connection, the crystal oscillator X of connection 12MHZ between XT1 and XT0 pin
1, the XT1 pin connects the concussion capacitor C over the ground
21, the XT0 pin connects the concussion capacitor C over the ground
22.
The single-chip microcomputer programming circuit of take describes as example, and as shown in Fig. 2 (b), the VCC pin of CH340 chip is connected to power supply, passes through capacitor C simultaneously
8ground connection, capacitor C
8for 0.01uF, connect the crystal oscillator X of 12MHZ between XT1 and XT0 pin
1, XT1 is connected the concussion capacitor C over the ground with the XT0 pin
21and C
22, C
21and C
22be 22pF.The programming circuit of embedded chip is identical with it.
The RXD of CH340 chip, TXD pin are connected respectively to the P3.0RXD(serial input mouth of single-chip microcomputer) and P3.1TXD(serial delivery outlet) pin, as shown in Fig. 2 (b).The RXD of CH340 chip, TXD pin are connected respectively to P0.0 and the P0.1 pin of embedded chip LPC2103.Embedded microprocessor chip LPC2103 circuit design is for selecting circuit, carry out control circuit with jumper cap, during the programming program, the RXD of CH340 chip, TXD pin connect respectively P0.0 and P0.1 pin, do not make when the program burn writing circuit is used and can change wire jumper, make P0.0 and P0.1 pin be used as common I/O mouth and use.
Known from the above mentioned, chip CH340 is identical with method with single-chip microcomputer and Embedded catenation principle, and all can carry out program burn writing by serial ports, meets as general programming circuit condition.
Claims (4)
1. the general program burn writing circuit of a single-chip microcomputer and embedded microprocessor, it is characterized in that, comprise that USB interface and USB turn serial port circuit, described USB turns serial port circuit and uses chip CH340, the D+ signal wire of described USB interface connects the UD+ pin of CH340 chip, and the D-signal wire connects the UD-pin of CH340 chip; The RXD pin of described CH340 connects the serial input pin of single-chip microcomputer or embedded microprocessor, the TXD pin of CH340 chip connects the serial output pin of single-chip microcomputer or embedded microprocessor, the VCC pin of CH340 chip is connected to power supply, passes through capacitor C simultaneously
8ground connection, the crystal oscillator X of connection 12MHZ between XT1 and XT0 pin
1, the XT1 pin connects the concussion capacitor C over the ground
21, the XT0 pin connects the concussion capacitor C over the ground
22when being embedded microprocessor programming program, with jumper cap, control, while making the programming program, the RXD pin of CH340 chip connects the serial input pin of embedded microprocessor, the TXD pin of CH340 chip connects the serial output pin of embedded microprocessor, make two pins of embedded microprocessor realize time-sharing multiplex, do not use as common I/O mouth by changing wire jumper while not making the use of program burn writing circuit.
2. the general program burn writing circuit of single-chip microcomputer and embedded microprocessor according to claim 1, is characterized in that described capacitor C
8for 0.01uF, C
21and C
22be 22pF.
3. the general program burn writing circuit of single-chip microcomputer and embedded microprocessor according to claim 1, is characterized in that, described embedded microprocessor refers to the chip that includes Flash in sheet.
4. the general program burn writing circuit of single-chip microcomputer and embedded microprocessor according to claim 1, is characterized in that, described embedded microprocessor is the LPC2103 in LPC210X series.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013103444480A CN103439901A (en) | 2013-08-08 | 2013-08-08 | Program programming circuit universal to single chip microcomputer and embedded type microprocessor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013103444480A CN103439901A (en) | 2013-08-08 | 2013-08-08 | Program programming circuit universal to single chip microcomputer and embedded type microprocessor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103439901A true CN103439901A (en) | 2013-12-11 |
Family
ID=49693596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013103444480A Pending CN103439901A (en) | 2013-08-08 | 2013-08-08 | Program programming circuit universal to single chip microcomputer and embedded type microprocessor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103439901A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106339238A (en) * | 2016-08-26 | 2017-01-18 | 卢军 | Serial port multi-mode automatic multiplexing chip quick programming system |
CN108233637A (en) * | 2016-12-22 | 2018-06-29 | 日本电产(东莞)有限公司 | Electrodynamic type motor and the electric product for including the electrodynamic type motor |
CN109471830A (en) * | 2018-11-08 | 2019-03-15 | 徐州生波网络科技有限公司 | Teaching development external member based on Arduino |
CN113672538A (en) * | 2021-10-25 | 2021-11-19 | 南京沁恒微电子股份有限公司 | USB-to-serial port chip and MCU firmware automatic downloading system and method thereof |
CN113824372A (en) * | 2021-09-02 | 2021-12-21 | 珠海格力电器股份有限公司 | Motor built-in controller driving software upgrading compatible circuit and motor equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101453794A (en) * | 2008-11-21 | 2009-06-10 | 西安交通大学 | Mobile Ad Hoc network terminal based on 802.11b/g and implementation method thereof |
CN201508547U (en) * | 2009-05-18 | 2010-06-16 | 蚌埠依爱消防电子有限责任公司 | Handheld USB programming device |
-
2013
- 2013-08-08 CN CN2013103444480A patent/CN103439901A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101453794A (en) * | 2008-11-21 | 2009-06-10 | 西安交通大学 | Mobile Ad Hoc network terminal based on 802.11b/g and implementation method thereof |
CN201508547U (en) * | 2009-05-18 | 2010-06-16 | 蚌埠依爱消防电子有限责任公司 | Handheld USB programming device |
Non-Patent Citations (2)
Title |
---|
梅斌、王俊、刘震东: "基于ARM的嵌入式系统开发板硬件设计", 《中小企业管理与科技(下旬刊)》 * |
黄同、邵思飞: "一种基于CH340T的STC89C52RC编程器设计", 《电子测试》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106339238A (en) * | 2016-08-26 | 2017-01-18 | 卢军 | Serial port multi-mode automatic multiplexing chip quick programming system |
CN106339238B (en) * | 2016-08-26 | 2020-03-24 | 卢军 | Serial port multi-mode automatic multiplexing chip fast programming system |
CN108233637A (en) * | 2016-12-22 | 2018-06-29 | 日本电产(东莞)有限公司 | Electrodynamic type motor and the electric product for including the electrodynamic type motor |
CN109471830A (en) * | 2018-11-08 | 2019-03-15 | 徐州生波网络科技有限公司 | Teaching development external member based on Arduino |
CN113824372A (en) * | 2021-09-02 | 2021-12-21 | 珠海格力电器股份有限公司 | Motor built-in controller driving software upgrading compatible circuit and motor equipment |
CN113672538A (en) * | 2021-10-25 | 2021-11-19 | 南京沁恒微电子股份有限公司 | USB-to-serial port chip and MCU firmware automatic downloading system and method thereof |
CN113672538B (en) * | 2021-10-25 | 2022-02-15 | 南京沁恒微电子股份有限公司 | USB-to-serial port chip and MCU firmware automatic downloading system and method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103439901A (en) | Program programming circuit universal to single chip microcomputer and embedded type microprocessor | |
EP3485746A1 (en) | Electronic cigarette and power supply circuit thereof | |
CN105225643B (en) | Backlight voltage and current adjusting circuit and method | |
CN203520380U (en) | Novel program programming circuit | |
CN103471656A (en) | Device and method for achieving sensor multilevel cascade connection | |
CN202306218U (en) | Programming circuit of automobile electronic controller | |
TW201303572A (en) | Memory power system | |
CN203894742U (en) | Programmer of automotive electric control unit (ECU) | |
CN103219042A (en) | Circuit for realizing program burning through USB interface and memory circuit | |
RU160905U1 (en) | MULTIFUNCTIONAL CONTROLLER OF WIDE APPLICATION | |
CN103066986A (en) | Positive-negative logic level conversion switching circuit | |
CN107748516B (en) | Communication control interface module | |
CN202600408U (en) | Hardware evaluation board of micro control unit | |
CN108052193A (en) | Power switch sequence circuit | |
CN203151466U (en) | Positive-negative logic level conversion switching circuit | |
CN209543335U (en) | A kind of circuit of the address HRP-configured slave device I2C | |
CN208423874U (en) | Education robot's USB interface circuit | |
CN201886376U (en) | Sequential control module | |
CN203085132U (en) | Drive circuit of LED display screen | |
CN105513470A (en) | Multifunctional one-chip microcomputer learning board | |
CN209343753U (en) | It is a kind of that customized Chinese character code imperial palace is supported to deposit LCD MODULE | |
TW202019065A (en) | Electronic device | |
CN201984310U (en) | Decoder device capable of automatically switching start mode | |
CN202737288U (en) | Novel communication interface for low-voltage intelligent power capacitor | |
CN202512509U (en) | Universal serial bus (USB) serial port debugger |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20131211 |