当前位置:网站首页>Analysis of ISP one click download principle in stm32
Analysis of ISP one click download principle in stm32
2022-07-24 12:43:00 【I'm not a cabbage】
If our development board doesn't have a one click download circuit , When we download the program, we should put boot 0 The jump from GND Become connected VCC, Then download , Press the reset button once to burn the program , Finally, connect VCC Become connected GND, And press reset again , In this way, the single chip microcomputer can run the program , Every burning procedure is troublesome . And when our MCU has a one click download circuit , There is no need to change boot 0 Value , Direct burning can run . Let me analyze the one click download circuit .
- Three working modes
| BOOT 0 | BOOT 1 | Starting mode |
| 0 | X | Inside FLASH |
| 1 | 0 | System memory |
| 1 | 1 | Inside SRAM |
- ISP One click download circuit


The picture above 1 It's the punctual atomic elite version ISP One click download schematic , chart 2 yes mcuisp Burn Software . Look at the picture first 2 The serial number I circled in 1 The content in ,DTR Is a low level ,RTS Is a high level . Find the figure again 1 Corresponding point in DTR# and RTS#, there DTR# and RTS# Indicates the meaning of the reverse sign . Because of our mcuisp The software uses 232 Standard level , And MCU is ttl level , Their levels are opposite . So in the schematic diagram DTR There's a... In the back # It means that we CH340G The chip receives DTR Is a high level ( The serial number circled with me 1 Medium DTR The low level is opposite, so it is high level ). Is not to say that CH340G The chip will perform logical non operations , Just a reminder sign .
- One click download process
First , Look at the serial number I circled 1,mcuisp control DTR Output low level , be DTR_N High output , then RTS Set high , be RTS_N Low output , In this way, the triode in the schematic diagram Q3 It turns on ,BOOT 0 Be pulled high , At this time, the triode Q2 It will also turn on ,STM32F1 The reset foot of the is pulled down , That is to realize the setting BOOT 0 Automatically for 1, And press the reset key . The MCU will restart and enter ISP Pattern ( That is, system memory mode ). Get into ISP After the model , Will lock BOOT 0 Value ( by 1). Look at the serial number I circled 2 There is a message in , When we click start programming ,mcuisp This software is delaying 100ms Then it will automatically order DTR Increase , Release reset ,RTS Keep the high level unchanged . That is to say, it will make BOOT 0 and RESET Return to the original state . When the program is downloaded , The program has been downloaded internally FLASH 了 , You need to press reset to run the program , If you don't want to press the reset key manually , Then you can check the serial number I circled 3, In this way, the MCU will automatically reset and run .
- summary
- To configure BOOT by ISP Pattern ,BOOT 1 The hardware is fixed as GND.Q3 Conduction ,BOOT 0 To high level .Q2 Conduction , Single chip reset .
- Get into ISP After the model ,BOOT 0 and RESET Return to the original state .
- ISP The download , The program runs automatically .
边栏推荐
- QT notes - qtxml
- C Advanced - data storage
- Why is there discontinuity in MySQL auto increment primary key?
- I used annotations to configure the serialization of redis in one module project, and then introduced this module in another module. Why is this configuration
- Why has API strategy become a magic weapon for enterprises' digital transformation?
- try...finally总结
- Buckle practice - maximum number of 28 splices
- Implementing deep learning framework from zero -- further exploration of the implementation of multilayer bidirectional RNN
- 树莓派自建 NAS 云盘之——数据自动备份
- How QT creator changes the default build directory
猜你喜欢

Reserved instances & Savings Plans

It is difficult for Chinese consumers and industrial chains to leave apple, and iPhone has too much influence

手把手教你用 Power BI 实现 4 种可视化图表

Native Crash的一切

QT based software framework design

SQL JOIN 入门使用示例学习左连接、内连接、自连接

基于Qt的软件框架设计
EfficientFormer:轻量化ViT Backbone

No routines, no traps, no advertisements | are you sure you don't need this free instant messaging software?

How to upload pictures from typora to CSDN
随机推荐
Summary of MySQL database combined with actual SQL optimization of the project
thinkphp 实现数据库备份
猿人学第七题
有没有2、3w前期适合一个人干的创业项目呢?做自媒体可以吗?
C language course design -- hotel management system
English语法_不定代词 - 概述
STM32——C语言基础
[rust] reference and borrowing, string slice type (& STR) - rust language foundation 12
TypeNameExtractor could not be found
C Advanced - data storage
How to realize the function of grabbing red envelopes in IM system?
如何将Typora中图片上传到csdn
How to find out the function calling process of complex code running as soon as possible
Equal principal increasing repayment / equal principal decreasing mortgage repayment calculator
Buckle practice - 24 remove repeated letters
ThinkPHP realizes database backup
Leetcode-81. search rotation sort array II (binary search returns true/false)
Basic SQL server operation problems - only when lists are used and identity_ Only when insert is on can the display value be set for the identification column in the table
Slow motion animation, window related data and operations, BOM operations [DOM (V)]
Anaconda environment migration