当前位置:网站首页>Programming features of ISP, IAP, ICP, JTAG and SWD
Programming features of ISP, IAP, ICP, JTAG and SWD
2022-07-07 10:11:00 【m0_ fifty-nine million nine hundred and forty-nine thousand fou】
Electronic engineers all know , Semiconductor technology is developing rapidly , It has driven the continuous upgrading of various chip technologies . In terms of data storage , From the original mask ROM, To the present Flash technology , Continuous improvement of storage technology , The corresponding programming technology is also developing .
I remember the older generation of engineers writing 51 When the single-chip microcomputer is used, it still uses a huge programmer to download the program , And it's disposable (OTP), Every time I carefully debug the code and then download it to see the effect . Now it is as simple as a serial port downloader to realize program download , There is basically no need to consider the problem of programming times , Compile and download updates whenever you have an idea .
- In the course of this development , Many programming techniques have also been born , such as ISP、IAP、ICP, And then there is JTAG Programming 、SWD Programming 、UART Programming and so on . Those who play SCM should be familiar with these words , But what's the difference between them ? First, let's look at their definitions :
- ISP:In System Programing, In system programming
- ICP:In Circuit Programing, In circuit programming
- IAP:In Application Programing, In application programming
- JTAG Programming : adopt JTAG Protocol programming
- SWD Programming : adopt SWD Protocol programming
- UART Programming : adopt UART Programming
It looks like a mess , In fact, if the hierarchical relationship between them is clear, it will not be messy . Use a picture to visualize :
See from the graph ,ISP and ICP It's the technology at the top . It describes a programming structure , The protocol used 、 Communication port, etc , Different chips have different definitions .
IAP In the second floor , Is a way of programming . The implementation method is to download a piece of executable code of the target chip to the chip through some communication protocol RAM And executed by the chip , The specific operation is realized by this code to achieve the purpose of programming . This method requires the chip to support the chip through a certain communication protocol RAM Read and write and be able to control its CPU. This is a programming method under the programming structure , image AK100Pro、SmartPRO 5000U-Plus Wait for the burner , All use this programming method .
At the bottom is the hardware communication protocol ,UART It is the first serial communication technology used in single chip microcomputer .JTAG and SWD yes Arm After the rise of kernel chips , Gradually popular , These three technologies describe the communication protocol used by the hardware layer in the programming process , Are some of the lowest technical specifications .
Use a table to compare the characteristics of these communication protocols :
Synthesize the above contents , as long as UART、JTAG、SWD These hardware communication protocols can ensure the standardization and stability of electrical connection , that ISP、IAP You can program the chip correctly .
Zhiyuan Electronics will soon launch a multi-channel online programmer , Coming soon .
Recommended products :
AK100 series Arm Professional simulator , Support Arm7、Arm9、Arm11、Cortex-M0/M0+/M1/M3/M4/A5/A8/A9/R4、XSCALE And so on , Include Thumb Pattern . a Arm Full range of cores , Support all mainstream IDE Environmental Science , Excellent performance and continuous upgrading , Make it Arm The best choice for developing debugging and mass production of burning and writing tools !
In design , There will always be special programming lines
Now the chip integration is getting higher and higher , Smaller and smaller , Even the integrated board , Also silently compared the coins :
Figure 1 Comparison between core plate and coin
But , To integrate more functions on so few pins , Only cutting the communication port line . At this time , Single line serial interface has a place to play .
New needs are coming , Existing debugging and downloading tools , Does it support the new communication interface ? Let's take a recent case as an analysis : Foreign customers need to add a manufacturer's chip burning support , By understanding the programming information of the chip , It is found that there is only one communication pin for burning , But it adopts the protocol of standard asynchronous serial interface .
Interface principle of single line serial port
The so-called single line serial port ( Its full name is “ Single line asynchronous serial communication interface ”, In this paper, it is abbreviated as “ Single line serial port ”), It adopts the standard serial port ( Its full name is “ Standard asynchronous serial communication interface ”, In this paper, it is abbreviated as “ Standard serial port ”) The same communication protocol . The only difference , Two data lines different from the standard serial port (Txd and Rxd), Single line serial port has only one data line to both send and receive functions . therefore , Single line serial port adopts half duplex communication , Refer to figure 2 for specific single line serial port wiring diagram .
Figure 2 wiring diagram of single line serial port chip
Just connect four wires (MOD,/RESET,VCC,GND) You can burn perfectly . This communication port designed by foreign businessmen (MOD/IO) It can also be used for working mode selection , That is, at the same time of power on reset , testing MOD Input timing waveform of pin , So as to enter different working modes , Such as single line serial port programming mode . After entering the single line serial port programming mode ,MOD The function of the pin is converted to data communication . Master this rule ,AK100Pro After connecting these four wires , stay KFlashPro Click on “ burning ”, You can easily burn .
Analyze the programming effect of single line serial port
Worry about the speed of burning ? We use data to illustrate , Is it fast or slow . The highest communication rate supported by this chip is 500000bps, We use this baud rate for communication . Figure 3 is the logic analyzer (LA2532) Capture the time sequence data when burning the communication :
Figure 3 Logic analyzer (LA2532) Captured data
First, let's talk about the meaning of data representation , This waveform is intercepted at “ burning + check ” The process of . For two long strings of data , The shorter one is the burned data , After sending this data , Then send the inquiry status instruction and wait for the chip to finish burning and respond , Then issue the read instruction , The longer one is to read the data for verification .
As you can see from the picture , The interval between reading data and sending the next packet of burning data is only 3.5ms, Deduct the reserved official 2ms response time ,AK100Pro Parse the packet 、 Checksum function conversion and other operations , Spend time 2ms Less than .
summary
The burning time is short 、 Few communication ports 、 Small board space , Single line serial products , It will be popular in the small wearable market .
边栏推荐
- “十二星座女神降临”全新活动推出
- In addition to the objective reasons for overtime, what else is worth thinking about?
- Analyze Android event distribution mechanism according to popular interview questions (I)
- Sword finger offer II 107 Distance in matrix
- Memory ==c language 1
- CDZSC_ 2022 winter vacation personal training match level 21 (2)
- SolidWorks工程图中添加中心线和中心符号线的办法
- Main (argc, *argv[]) details
- IPv4套接字地址结构
- VS Code指定扩展安装位置
猜你喜欢
Performance optimization record of the company's product "yunzhujia"
STM32基础知识—内存映射
Postman interface test IV
ISP、IAP、ICP、JTAG、SWD的编程特点
Future development blueprint of agriculture and animal husbandry -- vertical agriculture + artificial meat
ORM -- grouping query, aggregation query, query set queryset object properties
ORM模型--数据记录的创建操作,查询操作
柏拉图和他的三个弟子的故事:如何寻找幸福?如何寻找理想伴侣?
Web3.0 series distributed storage IPFs
ORM--查询类型,关联查询
随机推荐
CentOS installs JDK1.8 and mysql5 and 8 (the same command 58 in the second installation mode is common, opening access rights and changing passwords)
EXT2 file system
【ORM框架】
The applet realizes multi-level page switching back and forth, and supports sliding and clicking operations
Agile course training
Some test points about coupon test
Why are social portals rarely provided in real estate o2o applications?
Pit using BigDecimal
Three years after graduation
STM32基础知识—内存映射
运用tensorflow中的keras搭建卷积神经网络
Before joining the chain home, I made a competitive product analysis for myself
Luogu p2482 [sdoi2010] zhuguosha
Advanced function learning in ES6
The Himalaya web version will pop up after each pause. It is recommended to download the client solution
C socke server, client, UDP
一大波开源小抄来袭
CDZSC_ 2022 winter vacation personal training match level 21 (2)
Hcip first day notes sorting
Why does the starting service report an error when installing MySQL? (operating system Windows)