当前位置:网站首页>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 .
边栏推荐
- [CSDN] C1 training problem analysis_ Part III_ JS Foundation
- [graduation successful] [1] - tour [Student Management Information System]
- I didn't think so much when I was in the field of single chip microcomputer. I just wanted to earn money to support myself first
- 应用最广泛的8位单片机当然也是初学者们最容易上手学习的单片机
- Stm32-hal library learning, using cubemx to generate program framework
- Code word in NR
- Runtime. getRuntime(). GC () and runtime getRuntime(). The difference between runfinalization()
- STM32 serial port usart1 routine
- 嵌入式本来就很坑,相对于互联网来说那个坑多得简直是难走
- [CSDN] C1 training problem analysis_ Part IV_ Advanced web
猜你喜欢
当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学
Code word in NR
Solve editor MD uploads pictures and cannot get the picture address
MySQL Data Definition Language DDL common commands
没有多少人能够最终把自己的兴趣带到大学毕业上
MYSQL数据库底层基础专栏
IDEA远程断点调试jar包项目
Nr--- Pusch I: sorting out the agreement process
Flink learning notes (XI) table API and SQL
Which language should I choose to program for single chip microcomputer
随机推荐
Leetcode daily question (1024. video sticking)
手机都算是单片机的一种,只不过它用的硬件不是51的芯片
Implementing distributed lock with redis
An executable binary file contains more than machine instructions
顺利毕业[3]-博客系统 更新中。。。
Development of electrical fire system
一个可执行的二进制文件包含的不仅仅是机器指令
Project cost management__ Cost management technology__ Article 6 prediction
【顺利毕业】[1]-游览 [学生管理信息系统]
UCI and data multiplexing are transmitted on Pusch - determine the bit number of harqack, csi1 and csi2 (Part II)
Project cost management__ Topic of comprehensive calculation
Code word in NR
【22毕业季】我是毕业生yo~
UCI and data multiplexing are transmitted on Pusch - Part I
Leetcode daily question (516. long palindromic subsequence)
Difference of EOF
Fundamentals of Electronic Technology (III)__ Chapter 6 combinational logic circuit
Fundamentals of Electronic Technology (III)__ Logic gate symbols in Chapter 5
CEF下载,编译工程
Idea remote breakpoint debugging jar package project