vixulychuong6 - Bi ging K thut Vi x l Ngnh in t-Vin thng i...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Bài gi ng K thu t Vi x lý Ngành Đi n t -Vi n thông Đ i h c Bách khoa Đà N ng ạ ọ c a H Vi t Vi t, Khoa ĐTVT ế Tài li u tham kh o [1] K thu t vi x lý, Văn Th Minh, NXB Giáo d c, ế 1997 [2] K thu t vi x lý và L p trình Assembly cho h vi x lý, Đ Xuân Ti n, NXB Khoa h c & k thu t, 2001 ế
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Chương 6 Các kiểu I/O 6.1 Thăm dò (Polling) 6.2 I/O đi u khi n b ng ng t (Interrupt) - 6.3 DMA (Direct Memory Access)
Background image of page 2
Thăm dò mov dx, F000 L1: in al, dx cmp al, FF je L1 : : A 1 5 8088 Minimum Mode A18 A0 : D7 D6 IOR IOW A19 D5 D4 D3 D2 D1 D0 74LS245 B0 B1 B2 B3 B4 B5 B6 B7 A0 A1 A2 A3 A4 A5 A6 A7 E DIR A 1 4 A 1 3 A 1 2 A 1 1 A 1 0 A 9 A 8 A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 IOR 5V
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Circuit A 1 5 8088 Minimum Mode A18 A0 : D7 D6 IOR IOW A19 D5 D4 D3 D2 D1 D0 A 1 4 A 1 3 A 1 2 A 1 1 A 1 0 A 9 A 8 A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 IOR 5V 74LS245 B0 B1 B2 B3 B4 B5 B6 B7 A0 A1 A2 A3 A4 A5 A6 A7 E DIR A 1 5 A 1 4 A 1 3 A 1 2 A 1 1 A 1 0 A 9 A 8 A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 IOW 74LS373 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 D0 D1 D2 D3 D4 D5 D6 D7 OE LE
Background image of page 4
Bài toán Ch ng trình t o ra hi u ng “LED ch y”: ươ ệ ứ - Ban đ u LED ch y t trên xu ng ạ ừ - Khi nh n phím th p nh t thì LED thay đ i h ng ch y ổ ướ - Khi nh n phím cao nh t thì ch ng trình ươ k t thúc ế
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch ng trình ươ mov dx, F000 mov ah, 00 mov al, 01 L1: out dx, al mov cx, FFFF L2: dec cx jnz L2 cmp ah, 00 jne L3 rol al, 1 cmp al, 01 jne L1 jmp L4 L3: ror al, 1 cmp al, 80 jne L1 L4: mov bl, al in al, dx cmp al, FF je L6 test al, 01 jnz L5 xor ah, FF jmp L6 L5: test al, 80 jz L7 L6: mov al, bl jmp L1 L7:
Background image of page 6
Khuy t đi m c a thăm dò ế T n nhi u th i gian Ng I s d ng có th nh phím tr c khi ườ ử ụ ướ l nh in al, dx đ c th c hi n, do đó ượ b vi xi x lý s không bi t r ng ng I s ế ằ ườ ử d ng đã nh n phím Làm sao đ kh c ph c các khuy t đi m ế đó?
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Khuy t đi m c a thăm dò ế mov dx, F000 mov ah, 00 mov al, 01 L1: out dx, al mov cx, FFFF L2: dec cx jnz L2 cmp ah, 00 jne L3 rol al, 1 cmp al, 01 jne L1 jmp L4 L3: ror al, 1 cmp al, 80 jne L1 L4: mov bl, al in al, dx cmp al, FF je L6 test al, 01 jnz L5 xor ah, FF jmp L6 L5: test al, 80 jz L7 L6: mov al, bl jmp L1 L7:
Background image of page 8
Ng t là gì?
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Thăm dò While studying , I’ll check the bucket every 5 minutes to see if it is already full so that I can transfer the content of the bucket to the drum.
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/10/2010 for the course ECE 37 taught by Professor Viet during the Spring '09 term at Albany State University.

Page1 / 45

vixulychuong6 - Bi ging K thut Vi x l Ngnh in t-Vin thng i...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online