標題: 8086CPU+8255并行接口擴展實驗(源碼+仿真) [打印本頁]

作者: Moonicer    時間: 2018-11-30 09:17
標題: 8086CPU+8255并行接口擴展實驗(源碼+仿真)
仿真原理圖如下(proteus仿真工程文件可到本帖附件中下載)


8086芯片源碼如下:

;====================================================================
; Main.asm file generated by New Project wizard
;
; Created:   周二 11月 27 2018
; Processor: 8086
; Compiler:  MASM32
;
; Before starting simulation set Internal Memory Size
; in the 8086 model properties to 0x10000
;====================================================================
CODE    SEGMENT
        ASSUME CS:CODE
IOCON EQU 8006H
IOA     EQU 8000H
IOB     EQU 8002H
IOC     EQU 8004H
START:
MOV AL,90H
        MOV DX,IOCON
        OUT DX,AL
        NOP
START1: NOP
        NOP
        MOV AL,0
        MOV DX,IOA
        IN AL,DX
        NOP
        NOP
        MOV DX,IOB
        OUT DX,AL
JMP START1
CODE    ENDS
        END START

全部資料51hei下載地址:
8255.zip (67.72 KB, 下載次數: 43)






歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1