当前位置:网站首页>并行接口8255A
并行接口8255A
2022-06-30 11:42:00 【华为云】
1 8255A功能
- 三个8位并行输入/输出端口,可通过编程方式决定
- 能适应CPU与I/O接口之间多种数据传送方式的要求
2 8255A内部结构和引脚图
8255A有3个端口,40个引脚,3种工作方式
这个是老师课件上的
个人认为参考书上的更好一些

1)数据总线缓冲器
它是一个双向三态的8位缓冲器,与CPU系统数据总线相连,是8255A与CPU 之间传输数据的必经之路。输入数据、输出数据、控制命令字都是通过数据总线缓冲器进行传送的。
2)读写控制逻辑
读/写控制逻辑接收来自CPU地址总线的信号和控制信号,并发出命令到两个控制组(A组和B组)。它控制把CPU 发出的控制命令或输出的数据送到相应的端口;或者把外设的状态或输人的数据从相应的端口送到CPU。
3)A组和B组控制
A,B和C三个端口的工作方式是CPU通过向控制寄存器写A组和B组方式控制字来设定的。端口A和端口C的高4位(PC~7~-PC~4~.)构成A组,由A组控制部件对它进仃控制;端口B和端口C的低4位(PC~3~-PC~0~)构成B组,由B组控制部件对它进行控制。

- 端口A:PA0~PA7
A组,支持工作方式0、1、2 - 端口B:PB0~PB7
B组,支持工作方式0、1 - 端口C:PC0~PC7
仅支持工作方式0
A组控制高4位PC4~PC7
B组控制低4位PC0~PC3
3 8255A控制字
有两个控制字,且往同一个控制端口写。
- 方式控制字

- 置位/复位控制字

4 8255A工作方式
方式0:基本输入/输出方式
(1)两个8位端口(A、B)和两个4位端口(C上、下) 可工作于该方式;
(2)任何一个端口均可输入/输出;
(3)输出数据锁存,输入数据不锁存;
(4)各端口的输入/输出可有16种组合。
适用于无条件传送和查询方式接口电路。方式1:选通输入/输出方式
(1)方式1下,有两组端口,每组包含一个8位数据口和3条控制线;
(2)每组端口提供有中断请求逻辑和中断允许触发器;
(3)两组端口可同时工作于方式1;
(4)输入/输出数据均锁存。
适用于查询和中断方式的接口电路。
方式2:双向选通传送方式
(1)该方式只可用于A组;
(2)该方式下有一个8位的双向数据端口和5个控制线;
(3)输入/输出数据均锁存。
适用于双向传送数据的外设。
5 8255A与打印机的接口(方式0)
工作过程:
- 主机把数据送给引脚DATA~0~~~7~;
- 同时送出数据选通信号STROBE ;
- 打印机在BUSY信号线上发出忙信号;
- 打印机处理完数据后撤消忙信号。
6 LED数码管

- 组成
主要部分是7段发光管,顺时针分别称为a、b、c、d、e、f、g,有的产品还附带有一个小数点h。 - 功能
能够显示0~9, A~F,及一些特殊字符,如-、P 等。 - 两种结构


边栏推荐
- 会议预告 | 华为 2012 实验室全球软件技术峰会-欧洲分会场
- 这些电影中的科幻构想,已经用AI实现了
- There are so many kinds of coupons. First distinguish them clearly and then collect the wool!
- 21、wpf之绑定使用小记
- Dameng data rushes to the scientific innovation board, or becomes the "first share of domestic database" in the A-share market
- Alibaba cloud lifeifei: China's cloud database has taken the lead in many mainstream technological innovations abroad
- The first batch in China! Alibaba cloud native data Lake products have passed the evaluation and certification of the ICT Institute
- Cache avalanche and cache penetration solutions
- 使用cookie技术实现历史浏览记录并控制显示的个数
- 1254. 统计封闭岛屿的数目
猜你喜欢

一瓶水引发的“战争”

Uncover the whole link communication process of customer service im

「运维有小邓」用户个人资料管理

Review the writing software with characteristics

EMC surge

He was the first hero of Shanghai's two major industries, but died silently in regret

麒麟软件韩乃平:数字中国建设需要自己的开源根社区

如何使用插件化机制优雅的封装你的请求hook

CVPR 2022 | greatly reduce the manual annotation required for zero sample learning. Mapu and Beiyou proposed category semantic embedding rich in visual information

聊聊怎么做硬件兼容性检测,快速迁移到openEuler?
随机推荐
YOLOv5导出onnx遇到的坑
深入解析 Apache BookKeeper 系列:第四篇—背压
爱可可AI前沿推介(6.30)
聊聊怎么做硬件兼容性检测,快速迁移到openEuler?
Dameng data rushes to the scientific innovation board, or becomes the "first share of domestic database" in the A-share market
Database connection pool Druid
[cf] 803 div2 B. Rising Sand
R语言ggplot2可视化:gganimate包基于transition_time函数创建动态散点图动画(gif)、使用labs函数为动画图添加动态时间标题(抽取frame_time信息)
“\“id\“ contains an invalid value“
R language ggplot2 visualization: gganimate package is based on Transition_ Time function to create dynamic scatter animation (GIF)
EMC surge
据说用了这个,老板连夜把测试开了
Alibaba cloud lifeifei: China's cloud database has taken the lead in many mainstream technological innovations abroad
「运维有小邓」用户个人资料管理
shell第一个命令结果传入第二个命令删除
What is erdma as illustrated by Coptic cartoon?
限时预约|6 月 Apache Pulsar 中文开发者与用户组会议
R language ggplot2 visualization: use ggplot2 to visualize the scatter diagram and use scale_ The size function configures the measurement adjustment range of the size of the data point
安装onnx很慢,使用清华镜像
Object mapping - mapping Mapster




