Nội dung môn học. Giới thiệu chung về hệ vi xử lý Bộ vi xử lý Intel 8088/8086 Lập trình hợp ngữ cho 8086 Tổ chức vào ra dữ liệu Ngắt và xử lý ngắt Truy cập bộ nhớ trực tiếp DMA Các bộ vi xử lý trên thực tế. Chương 5: Ngắt và xử lý ngắt. Giới thiệu về ngắt - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
1. Giới thiệu chung về hệ vi xử lý2. Bộ vi xử lý Intel 8088/80863. Lập trình hợp ngữ cho 80864. Tổ chức vào ra dữ liệu5. Ngắt và xử lý ngắt6. Truy cập bộ nhớ trực tiếp DMA7. Các bộ vi xử lý trên thực tế
Chương 5: Ngắt và xử lý ngắtChương 5: Ngắt và xử lý ngắt
• Giới thiệu về ngắt• Đáp ứng của CPU khi có yêu cầu ngắt• Các thủ tục ngắt của người sử dụng• Xử lý ưu tiên ngắt• Mạch điều khiển ngắt ưu tiên 8259A• Ngắt trong máy tính IBM PC
Đáp ứng của CPU khi có yêu cầu ngắtĐáp ứng của CPU khi có yêu cầu ngắt
• Bảng vector ngắt: 1 Kbytes 00000H đến 003FF H 256 vector ngắt 1 vector 4 bytes, chứa IP và CS của CTCPVN 32 vector đầu dành riêng cho Intel 224 vector sau dành cho người dùng
1. Giới thiệu chung về hệ vi xử lý2. Bộ vi xử lý Intel 8088/80863. Lập trình hợp ngữ cho 80864. Tổ chức vào ra dữ liệu5. Ngắt và xử lý ngắt6. Truy cập bộ nhớ trực tiếp DMA7. Các bộ vi xử lý trên thực tế
Mạch DMAC 8237A của IntelMạch DMAC 8237A của Intel
• Although i8237A may not appear as a discrete component in recent PCs, it’s still there… (integrated in chipsets, ISPC)
• The i8237A has four independent DMA channels• Original PC/XT design had one i8237A for four DMA channels• PC/AT used two i8237As to provide 7 DMA channels • i8237A is programmable device and can be configured for
single transfers, block transfers, Reads, Writes or Memory-to-Memory transfers
• The i8237A has four registers for tracking memory addresses during a DMA block BASE ADDRESS REGISTER BASE WORD COUNT REGISTER CURRENT ADDRESS REGISTER CURRENT WORD COUNT REGISTER
PC/AT DMA Channel prioritiesPC/AT DMA Channel priorities• DMA channel 0 (DREQ0) has the highest priority• DMA channel 7 (DREQ7) has the lowest• Note, when a DMA transfer is in session, it cannot be 'interrupted' by
another DMA request, even if the DMA request is made by a higher priority DMA channel.
• The current DMA transfer session will be completed before the pending DMA request is accepted
DMA Channels in the PC/ATDMA Channels in the PC/AT
DMA Priority Pre-defined 8-bit or Use in PC/AT 16-bit
____________________________________________________________DREQ0 Highest Memory Refresh* 8-bits DREQ1 Not defined 8-bits DREQ2 Floppy Disk 8-bits DREQ3 Not defined 8-bits DREQ4 Cascade not used DREQ5 Not defined 16-bits DREQ6 Not defined 16-bits DREQ7 Lowest Not defined 16-bits