当前位置:网站首页>Exception handling of arm
Exception handling of arm
2022-07-03 09:52:00 【Xierqi Guide】
ARM Exception handling
1. The kind of anomaly
1)IRQ, External interrupt request : External hardware departure ;
2)Soft interrupt, Soft interrupt : Main applications , system call , The application can access the address of the kernel through system call ;
Add : Software architecture of embedded products ( The diagram is as follows ) The three use different address spaces Cannot access directly

3)reset, Reset : If the mobile phone crashes , Press power key ;
4)undefined instruction, Undefined instruction
5)data abort, Data exception
It is summarized in the table below :
The general process of exception handling is mainly about interruption , Other similar
2. Interrupt exception
When the mobile phone receives a call , The telephone module will receive this signal , Telephone and mobile phone internal CPU Connected through a pin , The telephone module sends the signal to CPU,CPU Other things are being handled at this time , When receiving this signal, it will interrupt the current cpu Things being handled .
1)ARM There are two levels of external interrupts ,FIQ and IRQ
2) be based on ARM Most systems have two interrupt sources

Interrupt controller : send cpu Multiple interrupt sources can be connected to the outside , Handle interrupt priority ;
3) Suppose the external interrupt source is a key , When the key is pressed ** High level or low level ( Rising edge or falling edge )** As a trigger ;
Interrupt handling : Site protection -> Handling interrupts -> Restore the scene
If CPU Processing other interrupts , The current interruption cannot be handled in time ,0.5 Seconds later, press the key to lift , Interruption disappears , terms of settlement :CPU Record all generated interrupts through the interrupt flag .
After the interrupt is generated randomly , How to jump to the interrupt handler ( Interrupt vector table )
3. Interrupt vector table | Exception handling
After the interrupt is generated randomly , How to jump to the interrupt handler ( Interrupt vector table )
SWI Soft interrupt instruction : simulation CPU The pin of some external hardware generates an interrupt signal

4. Example of soft interrupt handler

Write from scratch Skip first , Need private chat .
边栏推荐
- PRACH --- originator
- The number of weak characters in the game (1996)
- Runtime.getRuntime().gc() 和 Runtime.getRuntime().runFinalization() 的区别
- uniapp 实现微信小程序全局分享及自定义分享按钮样式
- Vector processor 9_ Basic multilevel interconnection network
- Eight working modes of stm32gpio and chip naming rules
- STM32 serial port usart1 routine
- 当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学
- Starting from 0, use pnpm to build a demo managed by monorepo
- 1300. sum of varied array closed to target
猜你喜欢

UCI and data multiplexing are transmitted on Pusch - placement of data and UCI positions (Part III)

UCI and data multiplexing are transmitted on Pusch (Part V) -- polar coding

Stm32-hal library learning, using cubemx to generate program framework

JMX、MBean、MXBean、MBeanServer 入门

Programming ideas are more important than anything, not more than who can use several functions, but more than the understanding of the program

Quelle langue choisir pour programmer un micro - ordinateur à puce unique

要選擇那種語言為單片機編寫程序呢

单片机学到什么程度能找到工作,这个标准不好量化
![[graduation successful] [1] - tour [Student Management Information System]](/img/91/72cdea3eb3f61315595330d2c9016d.png)
[graduation successful] [1] - tour [Student Management Information System]

STM32 external interrupt experiment
随机推荐
Development of fire power monitoring system
[graduation successful] [1] - tour [Student Management Information System]
Basic knowledge of MySQL database (an introduction to systematization)
[combinatorics] Introduction to Combinatorics (combinatorial thought 2: mathematical induction | mathematical induction promotion | multiple induction thought)
The cyclic shift of PUCCH in NR channel is generated by MATLAB
Leetcode daily question (2305. fair distribution of cookies)
Leetcode daily question (931. minimum falling path sum)
When you need to use some functions of STM32, but 51 can't realize them, 32 naturally doesn't need to learn
Error output redirection
学习开发没有捷径,也几乎不存在带路会学的快一些的情况
【力扣刷题笔记(二)】特别技巧,模块突破,45道经典题目分类总结,在不断巩固中精进
Leetcode daily question (1024. video sticking)
当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学
STM32 interrupt priority management
Project cost management__ Cost management technology__ Article 8 performance review
STM32 serial communication principle
Project scope management__ Scope management plan and scope specification
顺利毕业[2]-学生健康管理系统 功能开发中。。。
干单片机这一行的时候根本没想过这么多,只想着先挣钱养活自己
Learn the contents of 5g toolbox supporting NR through the NR resources provided by MATLAB