文件名称:
计算机接口技术考试用参考资料.md
所在目录:
学科资料 / 计算机接口技术 / 考试用参考资料
文件大小:
2.91 KB
下载地址:
文本预览:
# 速查
## 74ls138

(注意A2 A1 A0也可写为A B C)
习题:存储器系统连接如下图,请分别写出图中第一组(1#、2#)、第二组(3#、4#)的地址分配范围。(写出具体步骤)

答案:
|A19|A18|A17|A16|A15|A14|A13|A12-A0|
|---|---|---|---|---|---|---|------|
|0|0|1|1|1|1|0|全0到全1|
第一组范围为:3C000H—3DFFFH
|A19|A18|A17|A16|A15|A14|A13|A12-A0|
|---|---|---|---|---|---|---|------|
|0|0|1|1|0|1|1|全0到全1|
第二组范围为:36000H—37FFFH
## 8259A











习题:按以下要求初始化8259A:
* 接口地址为20H和21H;
* 中断为上升沿触发;单片8259A;不写ICW4;
* 与IR0-IR3对应的中断向量码为08H-0BH;
* IR4-IR7不使用。
答案:
```assembly
INIT8259A:
MOV DX,20H ;A0=0,写ICW1
MOV AL,12H ;上升沿触发,单片,不写ICW4
OUT DX,AL
MOV DX,21H ;A0=1,写ICW2,OCW1
MOV AL,08H ;ICW2
OUT DX,AL
MOV AL,0F0H;OCW1:屏蔽IR4-IR7
OUT DX,AL
```
## 8253


习题:初始状态下,D触发器的Q端输出低电平;
系统通过三态门循环读取检测器状态,有异常出现时,检测器输出高电平。此时在D触发器的Q端输出高电平,启动8253计数器的通道0输出100Hz的连续方波信号,使报警灯闪烁,直到有任意键按下时停止;
使计数器停止输出方波的方法是在Q端输出低电平。CLK0的输入脉冲为2MHz。要求:
* 设计8253的译码电路;
* 编写8253计数器的初始化程序及实现上述功能的控制程序。
答案:




答案:
```assembly
初值:1000
控制字:35H
MOV AL, 35H
MOV DX, 203H
OUT DX, AL
MOV AX, 1000H
MOV DX, 200H
OUT DX, AL
MOV AL, AH
OUT DX, AL
```




## 8255








## DAC0832


## ADC0809



## 74ls138

(注意A2 A1 A0也可写为A B C)
习题:存储器系统连接如下图,请分别写出图中第一组(1#、2#)、第二组(3#、4#)的地址分配范围。(写出具体步骤)

答案:
|A19|A18|A17|A16|A15|A14|A13|A12-A0|
|---|---|---|---|---|---|---|------|
|0|0|1|1|1|1|0|全0到全1|
第一组范围为:3C000H—3DFFFH
|A19|A18|A17|A16|A15|A14|A13|A12-A0|
|---|---|---|---|---|---|---|------|
|0|0|1|1|0|1|1|全0到全1|
第二组范围为:36000H—37FFFH
## 8259A











习题:按以下要求初始化8259A:
* 接口地址为20H和21H;
* 中断为上升沿触发;单片8259A;不写ICW4;
* 与IR0-IR3对应的中断向量码为08H-0BH;
* IR4-IR7不使用。
答案:
```assembly
INIT8259A:
MOV DX,20H ;A0=0,写ICW1
MOV AL,12H ;上升沿触发,单片,不写ICW4
OUT DX,AL
MOV DX,21H ;A0=1,写ICW2,OCW1
MOV AL,08H ;ICW2
OUT DX,AL
MOV AL,0F0H;OCW1:屏蔽IR4-IR7
OUT DX,AL
```
## 8253


习题:初始状态下,D触发器的Q端输出低电平;
系统通过三态门循环读取检测器状态,有异常出现时,检测器输出高电平。此时在D触发器的Q端输出高电平,启动8253计数器的通道0输出100Hz的连续方波信号,使报警灯闪烁,直到有任意键按下时停止;
使计数器停止输出方波的方法是在Q端输出低电平。CLK0的输入脉冲为2MHz。要求:
* 设计8253的译码电路;
* 编写8253计数器的初始化程序及实现上述功能的控制程序。
答案:




答案:
```assembly
初值:1000
控制字:35H
MOV AL, 35H
MOV DX, 203H
OUT DX, AL
MOV AX, 1000H
MOV DX, 200H
OUT DX, AL
MOV AL, AH
OUT DX, AL
```




## 8255








## DAC0832


## ADC0809



点赞
回复
X