Interrupt handling study notes

Publisher:温柔浪漫Latest update time:2024-09-30 Source: cnblogs Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Interrupt handling

If you want to use interrupts:

1 Initialization

ASet the source

View Schematic

XEINT0/kpROW0/GPN0

View chip manual



Enable

B. Set up the interrupt controller

This chapter describes the functions and usage ofVectored Interrupt Controller in S3C6410X RISC

microprocessor.

12.1 OVERVIEW

The interrupt controller in the S3C6410X is composed of2 VIC’s (Vectored Interrupt Controller, ARM PrimeCell

PL192) and 2 TZIC’s (TrustZone Interrupt Controller, SP890).

Two TZIC’s and VIC’s are daisy-chained to support up to 64 interrupt sources.

12.2 FEATURES

The Vectored Interrupt Controller features in S3C6410 incudes the following:

• Support for 32 vectored IRQ interrupts per VIC

• Fixed hardware interrupt priority levels

• Programmable interrupt priority levels

• Hardware interrupt priority level masking

• Programmable interrupt priority level masking

• IRQ and FIQ generation

• Software interrupt generation

• Raw interrupt status

• Interrupt request status

• Privileged mode support for restricted access

C Turn on the I status bit in cpsr (clear)

If an outage occurs:

1 cpu enters irp mode

2 cpsr saved to spsr_irq

3 Use r13_irq, r14_irq

4 Store the next instruction address in r14

5 Jump to 0x18 to execute

Save interrupt

Handling interrupts

Recovering from interruption

Interrupt Vector Register


Reference address:Interrupt handling study notes

Previous article:uboot transplant
Next article:Symptom: After arm is started, the application interface displays...

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号