TAILIEUCHUNG - Bài giảng Lập trình hệ thống nhúng: Chương 8 - Bùi Quốc Bảo

Bài giảng "Lập trình hệ thống nhúng: chương 8 - Bùi Quốc Bảo" trình bày hoạt động của bộ điều khiển ngắt, thiết lập gián đoạn, cuộc gọi dịch vụ hệ thống. Và các nội dung khác. Mơi các bạn cùng tham khảo. | ARM PROGRAMMING Bùi Qu c B o Nested vector interrupt controller BÙI QU C B O 1 Nested vector interrupt controller The CPU context and R0-R3 are saved automatically to stack Interrupt Pre-emption A high priority interrupt can pre-empt a currently running low priority interrupt. The current context will be saved into the stack. When the high priority interrupt, the old context will be POPed and the low priority interrupt can resume execution. BÙI QU C B O 2 Tail Chaining If a low priority interrupt is raised when a high priority interrupt is running, the NVIC use tail-chaining to minimize the delay between 2 ISRs. The stack frame will not be restored Tail Chaining If the low priority interrupt arrives when the high priority interrupt is exiting, the POP will be abandoned and the SP will be wounded back to its original value BÙI QU C B O 3 Late arrival When a low priority interrupt is starting, the high priority interrupt arrives. The NVIC will switch to serve the high priority interrupt. The low priority interrupt will be tail-chainned. Interrupt vector table BÙI QU C B O 4 Interrupt vector table EXPORT __Vectors __Vectors DCD StackMem + Stack DCD Reset_Handler DCD NmiSR DCD FaultISR DCD IntDefaultHandler DCD IntDefaultHandler DCD IntDefaultHandler DCD 0 DCD 0 DCD 0 DCD 0 DCD IntDefaultHandler DCD IntDefaultHandler Handler DCD 0 DCD IntDefaultHandler DCD SysTick Handler ; Top of Stack ; Reset Handler ; NMI Handler ; Hard Fault Handler ; MPU Fault Handler ; Bus Fault Handler ; Usage Fault Handler ; Reserved ; Reserved ; Reserved ; Reserved ; SVCall Handler ; Debug Monitor ; Reserved ; PendSV Handler ; SysTick Handler ISR void SysTick Handler(void) { } BÙI QU C B .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.