CN208589009U - A kind of programmer of STM32 controller - Google Patents

A kind of programmer of STM32 controller Download PDF

Info

Publication number
CN208589009U
CN208589009U CN201820944880.1U CN201820944880U CN208589009U CN 208589009 U CN208589009 U CN 208589009U CN 201820944880 U CN201820944880 U CN 201820944880U CN 208589009 U CN208589009 U CN 208589009U
Authority
CN
China
Prior art keywords
module
stm32 controller
programmer
stm32
control module
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.)
Active
Application number
CN201820944880.1U
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.)
GUANGZHOU TAIMA ELECTRONIC TECHNOLOGY CO LTD
Original Assignee
GUANGZHOU TAIMA ELECTRONIC TECHNOLOGY 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 GUANGZHOU TAIMA ELECTRONIC TECHNOLOGY CO LTD filed Critical GUANGZHOU TAIMA ELECTRONIC TECHNOLOGY CO LTD
Priority to CN201820944880.1U priority Critical patent/CN208589009U/en
Application granted granted Critical
Publication of CN208589009U publication Critical patent/CN208589009U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

The utility model discloses a kind of programmer of STM32 controller comprising power module, control module, detection module and time delay module;Power module, for powering for programmer and target STM32 controller;Control module is powered on for switching STM32 controller into burning mode or user program operation mode;Detection module is connected to STM32 controller, and start-up study module trigger for detecting whether automatically;Time delay module is started by detection module, and starting control module executes corresponding operation after timing arrival.The programmer of the utility model, automatically into burning mode after connecting STM32 controller, and automatically into user program operation mode after the completion of burning.Using simple, convenient, and reliable.

Description

A kind of programmer of STM32 controller
Technical field
The utility model relates to electronic technology field, especially a kind of programmer of STM32 controller.
Background technique
Manufacturer provides STM32 controller multiple programs burning mode: JTAG, SWD, ISP.Wherein ISP mode does not need spy Fixed recording device, only RS232 serial ports can be realized, it is simple and convenient implementation and be widely used.By by the BOOT0 of controller Pin is set as high level, and the BootLoader program that manufacturer provides is run after energization, receives user program by serial ports, and burn Record the FLASH in chip;By being low level by BOOT0 pin configuration, user program is run after energization.General way is BOOT0 and power supply are controlled respectively with two physical switch, open two switches with different sequencings, selection enters burning mould Formula still runs user program mode, this process needs manual control, inefficient, and unskilled user may need repeatedly It could succeed.
Utility model content
The purpose of this utility model is to provide a kind of programmer of STM32 controller, it is to solve background technique In mention need manual control burning process, low efficiency, error-prone problem.
The purpose of this utility model is achieved through the following technical solutions.
A kind of programmer of STM32 controller, a kind of programmer of STM32 controller comprising power supply mould Block, control module, detection module and time delay module;
Power module, for powering for programmer and target STM32 controller;
Control module is powered on for switching STM32 controller into burning mode or user program operation mode;
Detection module is connected to STM32 controller, and start-up study module trigger for detecting whether automatically;
Time delay module is started by detection module, starts control module after timing arrival.
Further, control module uses triode or field-effect tube, carries out the on-off control of power supply or signal.
Further, detection module includes diode, first resistor, second resistance, the anode of diode and answering for STM32 Position pin connection, the cathode of diode and one end of first resistor connect, the other end of first resistor and one end of second resistance Connection, the other end ground connection of second resistance.
Further, time delay module uses RC delay circuit, including capacitor and first resistor, the time of delay to should be less than journey The time of sequence replication.
Compared with prior art, the utility model has the following advantages that and technical effect:
The utility model structure is simple, automatically into burning mode after connecting STM32 controller, and after the completion of burning Automatically into user program operation mode.Using simple, convenient, and reliable.BOOT0 pin by allocating default is high level, After user connects STM32 controller, level of the cd-rom recorder by the resetting pin of detection STM32, start-up study circuit, when delay Between reach after, be low level by BOOT0 pin configuration, so that STM32 controller resets laggard access customer program operation mould again Formula.
Detailed description of the invention
Fig. 1 is the programmer hardware module figure of STM32 controller in embodiment;
Fig. 2 is the programmer circuit diagram of STM32 controller in embodiment.
Specific embodiment
The specific implementation of the utility model is described further below in conjunction with attached drawing and example, but the reality of the utility model It applies and protects and is without being limited thereto.
Fig. 1 is the programmer hardware comprising modules figure of this example STM32 controller, including power module, detection mould Block, time delay module, control module.
Detection module is connected to STM32 controller for detecting whether automatically, and start-up study module starts timing;
Time delay module is started by detection module, and starting control module executes corresponding operation after delay reaches.
Preferably, triode or field-effect tube can be used in control module, carries out the on-off control of power supply or signal;
Preferably, the reseting pin of STM32 can be selected in the input signal of detection module;
Preferably, RC delay circuit can be used in time delay module, and the time of delay should be less than the time of burning program.
As another example, an independent microcontroller is can also be used in the detection module, time delay module of the utility model Device is realized, is controlled more flexible.
Three kinds of Starting mode of STM32 controller are controlled by the BOOT1 pin and BOOT0 pin level of chip, and all It is that operational mode is selected when chip powers on, most common two kinds are:
(1) BOOT1 pin is low level, and BOOT0 is high level, and ISP burning mode will be used using the serial port protocol of manufacturer Family program burn writing is into internal FLASH;
(2) BOOT1 pin is low level, and BOOT0 pin is low level, runs user program mode;
Power module is generally configured according to target STM32 controller, such as provides 5V or 3.3V to detection module, delay mould Block, control module and STM32 controller, wherein the power supply of STM32 controller can be provided directly by power module, can also root It is provided according to practical application request by control module.
Detection module has default configuration incoming level in programmer, and a phase is selected on STM32 controller The pin of anti-level is as input, so programmer detects level change after being connected to STM32 controller, starting Time delay module timing.
Control module is used to control the level of the configuration pin of STM32 controller, the operational mode of selection control, input It is the output of time delay module.
Fig. 2 is a kind of example circuit diagram of the programmer of the STM32 controller of the utility model.
The interface of the programmer of the utility model defines:
(1) VCC positive pole;
(2) BOOT0 pin and BOOT1 pin, as burning pattern configurations interface;
(3) RST chip reset foot;
(4) GND power ground;
(5) serial ports RXD and TXD, for connecting data line.
When programmer is not connected with STM32 controller, reseting pin RST is floating or low level, triode Q1 It is in close state, BOOT0 pin exports high level.The resetting pin RST of STM32 controller is in high electricity in normal work It is flat, there may be RC delay circuit in circuit design, but be all high level after normal reset, so in connection STM32 controller Afterwards, BOOT0 pin is high level, starts burning program into ISP burning mode, and by serial ports RXD and TXD, at this time pin RST level gets higher level, and using RC delay principle, capacitor C2 is charged by diode D1, first resistor R1, and voltage is gradually It increases, triode Q1 is opened after certain time-delay, and BOOT0 pin becomes low level, after the completion of burning program automatically again Operation, at this time because BOOT0 pin is low level, so into normal user program operation mode.Wherein second resistance R2 is The discharge resistance of capacitor C2.
The setting standard of RC delay parameter is that delay time is necessarily less than the time of burning program, i.e. guarantee burning program BOOT0 pin becomes low level before completion.
As above as it can be seen that the utility model structure is simple, automatically into burning mode after connecting STM32 controller, and Automatically into user program operation mode after the completion of burning, use is simple, convenient, and reliable.

Claims (4)

1. a kind of programmer of STM32 controller, it is characterised in that including power module, control module, detection module and Time delay module;
Power module, for powering for programmer and target STM32 controller;
Control module is powered on for switching STM32 controller into burning mode or user program operation mode;
Detection module is connected to STM32 controller, and start-up study module trigger for detecting whether automatically;
Time delay module is started by detection module, starts control module after timing arrival.
2. a kind of programmer of STM32 controller according to claim 1, it is characterised in that control module uses three Pole pipe or field-effect tube.
3. a kind of programmer of STM32 controller according to claim 1, it is characterised in that detection module includes two Pole pipe (D1), first resistor (R1), second resistance (R2), the anode of diode (D1) and the reseting pin of STM32 connect, two poles The cathode of pipe (D1) is connect with one end of first resistor (R1), the other end of first resistor (R1) and the one end of second resistance (R2) Connection, the other end ground connection of second resistance (R2).
4. a kind of programmer of STM32 controller according to claim 1, it is characterised in that time delay module uses RC Delay circuit, including capacitor (C2) and first resistor (R1).
CN201820944880.1U 2018-06-19 2018-06-19 A kind of programmer of STM32 controller Active CN208589009U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201820944880.1U CN208589009U (en) 2018-06-19 2018-06-19 A kind of programmer of STM32 controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201820944880.1U CN208589009U (en) 2018-06-19 2018-06-19 A kind of programmer of STM32 controller

Publications (1)

Publication Number Publication Date
CN208589009U true CN208589009U (en) 2019-03-08

Family

ID=65536954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201820944880.1U Active CN208589009U (en) 2018-06-19 2018-06-19 A kind of programmer of STM32 controller

Country Status (1)

Country Link
CN (1) CN208589009U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112805186B (en) * 2020-11-30 2024-01-12 深圳市锐明技术股份有限公司 CPU mode control circuit, in-vehicle host device, and vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112805186B (en) * 2020-11-30 2024-01-12 深圳市锐明技术股份有限公司 CPU mode control circuit, in-vehicle host device, and vehicle

Similar Documents

Publication Publication Date Title
CN105468470B (en) A kind of D triggering house dog MCU monitoring circuit and its application method
WO2018053714A1 (en) Single-chip microcomputer system, and reset method for single-chip microcomputer system
CN103064488A (en) Power source control circuit
CN208589009U (en) A kind of programmer of STM32 controller
CN101510116B (en) Energy-conserving method and system of terminal equipment with standby function
US20120038412A1 (en) Switch device
US7930567B2 (en) Keyboard
CN2822062Y (en) TV set having timed turn-on and turn-off control circuit
CN208444293U (en) A kind of full-automatic CD writers
CN203350802U (en) Software startup and shutdown circuit
CN203520299U (en) Timer-power-on control circuit
CN110413550B (en) Chip serial port program downloading control circuit
CN212847692U (en) Testing device for verifying eMMC and SD card
CN205352422U (en) Multi -functional hall sensor module
CN201130847Y (en) Power supply circuit with testing and protection function
CN208026334U (en) A kind of adaptive power saving tongue tube pulsed counting device
CN207070425U (en) Speech controling switch device
CN203350646U (en) Automatic downloading device of single-chip microcomputer
CN107733025B (en) USB and DC compatible double-charging circuit and operation method thereof
CN207232950U (en) Time-sharing multiplex is connected in series circuit
CN112467863A (en) Dual-power switching communication device and method for glucometer
CN207408935U (en) A kind of thin client automatic powering-on/powering-off test device
CN203338343U (en) USB downloading device of STC single chip microcomputer
CN215005906U (en) Multi-parameter health detector capable of being automatically turned on and turned off
Tian et al. Design of automatic watering system based on STC89C52 MCU

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant