1 / 4

Interface Hardware Software

PROTOBOARD. Interface Hardware Software. Aula Prática 4. Monitoria Bruno Otávio – bopp@cin.ufpe.br Marília Litwak – mln2@cin.ufpe.br José Olino – joclj@cin.ufpe.br Victor Alencar – vba@cin.ufpe.br. PROTOBOARD - Teclas e LED’s. Possui x Teclas e y LED’s

tavon
Télécharger la présentation

Interface Hardware Software

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. PROTOBOARD Interface Hardware Software Aula Prática 4 Monitoria Bruno Otávio – bopp@cin.ufpe.brMarília Litwak – mln2@cin.ufpe.brJosé Olino – joclj@cin.ufpe.brVictor Alencar – vba@cin.ufpe.br

  2. PROTOBOARD - Teclas e LED’s • Possui x Teclas e y LED’s • A comunicação se dá pela porta paralela • Leitura(in): porta 379h • Escrita(out): porta 378h • Altera-se os LED’s escrevendo-se na porta 378h Teclas LED’s A B C D L1 L2L3 L4

  3. Comunicando Hw-Sw… • Só serão utilizados as 4 teclas e 4 LED’s mais à esquerda, devido a problemas na protoboard do CIn. • Exemplo de leitura e escrita na proto… mov al, 0 mov dx, 378h out dx, al mov dx, 379h in al, dx mov cl, 4 shr al, cl mov al, 1111b mov dx, 378h out dx, al Apaga os LED’s Copia as indicações on/off das teclas p/ AL Acende os 4 LED’s mais à esquerda

  4. Exercício A B C D L1 L2L3 L4 http://www.cin.ufpe.br/~vba/archives/ihs/pratica-4/exercicio.html

More Related