1 / 12

BAB VI INTERFACE Up8088 DENGAN I/O

BAB VI INTERFACE Up8088 DENGAN I/O. Rizal suryana. Pendahuluan. Setiap perangkat Input dan Output akan memiliki alamat tersendiri untuk menandakan perangkat mana yang akan diakses oleh uP8088 Contoh Pengaksesan Input/Output MOV AL, 00H MOV 2FH, AL. Akses I/O terisolasi.

clarke
Download Presentation

BAB VI INTERFACE Up8088 DENGAN I/O

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BAB VIINTERFACE Up8088 DENGAN I/O Rizal suryana

  2. Pendahuluan • Setiapperangkat Input dan Output akanmemilikialamattersendiriuntukmenandakanperangkatmana yang akandiaksesoleh uP8088 • ContohPengaksesanInput/Output • MOV AL, 00H • MOV 2FH, AL

  3. Akses I/O terisolasi • IN AL, F7H • IN AH, 00H • OUT F7H, AL • OUT 00H, AH

  4. Akses I/O Terpetakan • MOV AX, [00FFH] • MOV DX, [0000H] • MOV [00FFH], AX • MOV [0000H],DX

  5. Contoh Interface uP8088 dengan I/O

  6. Desain Decoder danJumlah Address Line • Fixed addressing + isolated IO • Fixed addressing + memory mapped IO • Variable Addressing + isolated IO • Variable addressing + memory mapped IO

  7. Fixed Addressing dan Isolated IO • Misalkan DIP Switch diaksespadaalamat 04H = (A7)0000 0100(A0)  IN AL, 04H • Instruksi IN akanmengaktifkansinyal RD (0 Volt) danSinyal IO (IO/M = 5 Volt • Nomor port 4 akanmemberikannilai yang sesuaipada address Line A0 – A7

  8. Fixed Addressing dan Memory Mapped IO • Sinyal IO/M tidakdiperlukan, Intruksinyamenjadi MOV AL, 04H • Tanpaadanyadekodingsinyal IO/M, makatidakakanadalagi yang membedakanantaraakseske IO denganMemori • Sinyal IO/M menjadibernilai 0 Volt

  9. Variable Addressing dan Isolated IO • Addressing Line yang dimasukanke decoder A0 – A15 • Intruksinyamenjadi : • MOV DX, 0004H • IN AL, DX

  10. Variable Addressing dan Mapped IO • Addressing Line yang dimasukanke decoder A0 – A15 • Tidakdiperlukanlagisinyal IO/M • Intruksinyamenjadi : • MOV DX, 0004H • MOV AL, DX

  11. Perangkat Output • Disiniakandigunakan D-FF (Data Flip-Flop) untukmenyimpan data keluaranuP 8088 agar datanyadapatdilihatterussampaidatanyaberubah • Mengaktifkan Flip-Flop denganmemberisinyal CLOCK

  12. OUT AL, #7FH • Instruksi OUT akanmengaktifkansinyal WR (0 Volt) danSinyal IO (IO/M = 5 Volt) • Nomor Port 7Fh akanmemberikannilai yang sesuaipada A0 – A7

More Related