8086基本IO口的仿真

 

准备工作

下载Proteus 8.6

 

8086基本IO口的仿真
 

 

编译器

 

8086基本IO口的仿真
 

 

电路部分

 

8086基本IO口的仿真
 

 

程序部分

;====================================================================
; Main.asm file generated by New Project wizard
;
; Created:   周日 7月 7 2019
; Processor: 8086
; Compiler:  MASM32
;
; Before starting simulation set Internal Memory Size 
; in the 8086 model properties to 0x10000
; 一定要注意芯片的选择,以及时序关系
; 上述两者是有关系的
;====================================================================
data   segment
IO_OA equ  40h
IO_IA equ  48h
data   ends
CODE    SEGMENT PUBLIC 'CODE'
        ASSUME CS:CODE,ds:data

START:
        mov ax,data
    mov ds,ax
l:	
    mov dx,IO_IA
    in  al,dx;
    test al,01h
    jnz clAL
    mov al,0ffh
    jmp OUTPUT
clAL:   
        xor al,al;
OUTPUT:	
    mov dx,IO_OA
    out dx,al
        JMP l
CODE    ENDS
        END START

运行结果

 

8086基本IO口的仿真
结果1

 

 

8086基本IO口的仿真
结果2

 

其他

  1. 需要源文件可以联系本人

总结

  1. 注意时序
  2. 注意芯片的选择

相关文章:

  • 2022-01-18
  • 2021-10-22
  • 2021-06-28
  • 2022-12-23
  • 2021-03-29
  • 2021-10-29
  • 2021-07-08
猜你喜欢
  • 2022-02-01
  • 2021-03-31
  • 2021-09-17
  • 2021-12-21
  • 2022-12-23
  • 2021-10-16
  • 2021-04-15
相关资源
相似解决方案