当前位置:网站首页>Parallel interface 8255A
Parallel interface 8255A
2022-06-30 12:03:00 【Hua Weiyun】
1 8255A function
- Three 8 Bit parallel input / Output port , It can be determined programmatically
- Can adapt CPU And I/O Requirements for multiple data transmission modes between interfaces
2 8255A Internal structure and pin diagram
8255A Yes 3 Ports ,40 One pin ,3 Ways of working
This is from the teacher's courseware 
Personally, I think the reference books are better

1) Data bus buffer
It's a two-way three state 8 Bit buffer , And CPU The system is connected to the data bus , yes 8255A And CPU The only way to transfer data between . input data 、 Output data 、 The control command words are transmitted through the data bus buffer .
2) Read write control logic
read / The write control logic receives data from CPU Address bus signals and control signals , And issue commands to two control groups (A Group and B Group ). It controls CPU Send the control command or output data to the corresponding port ; Or send the status of the peripheral or the input data from the corresponding port to CPU.
3)A Group and B Group control
A,B and C The way the three ports work is CPU By writing... To the control register A Group and B Group mode control word . port A And port C The height of 4 position (PC~7~-PC~4~.) constitute A Group , from A The group control unit controls it ; port B And port C It's low 4 position (PC~3~-PC~0~) constitute B Group , from B The group control unit controls it .

- port A:PA0~PA7
A Group , Support working methods 0、1、2 - port B:PB0~PB7
B Group , Support working methods 0、1 - port C:PC0~PC7
Only working mode is supported 0
A Group control high 4 position PC4~PC7
B Group control low 4 position PC0~PC3
3 8255A Control word
There are two control words , And write... To the same control port .
- Mode control word

- Set up / Reset control word

4 8255A Operation mode
The way 0: Basic input / Output mode
(1) Two 8 Bit port (A、B) And two 4 Bit port (C On 、 Next ) Can work in this way ;
(2) Any port can input / Output ;
(3) Output data latch , Input data does not latch ;
(4) The input of each port / The output can have 16 Combinations of .
It is suitable for unconditional transmission and query mode interface circuit .The way 1: Gate input / Output mode
(1) The way 1 Next , There are two sets of ports , Each group contains one 8 The number of digits depends on the mouth and 3 Control lines ;
(2) Each group of ports provides interrupt request logic and interrupt allow trigger ;
(3) Two sets of ports can work in the same mode 1;
(4) Input / All output data are locked .
Interface circuit for query and interrupt mode .
The way 2: Two way gated transmission mode
(1) This method can only be used for A Group ;
(2) In this way, there is a 8 Bit bidirectional data port and 5 A control line ;
(3) Input / All output data are locked .
Peripherals for two-way transmission of data .
5 8255A Interface with printer ( The way 0)
working process :
- The host sends the data to the pin DATA~0~~~7~;
- At the same time, the data strobe signal is sent STROBE ;
- The printer is BUSY A busy signal is sent on the signal line ;
- The printer cancels the busy signal after processing the data .
6 LED Nixie tube

- form
The main part is 7 Segment light emitting tube , Clockwise is called a、b、c、d、e、f、g, Some products also come with a decimal point h. - function
Can display 0~9, A~F, And some special characters , Such as -、P etc. . - Two structures


边栏推荐
- 一瓶水引发的“战争”
- nvm安装node后,在使用npm指令时候显示不是内部或外部指令
- Multiparty cardinality testing for threshold private set-2021: Interpretation
- Uncover the whole link communication process of customer service im
- 治数如治水,数据治理和数据创新难在哪?
- 线下门店为什么要做新零售?
- Redis - ziplist compressed list
- 60 个神级 VS Code 插件!!
- 1020. 飞地的数量
- In depth analysis of Apache bookkeeper series: Part 4 - back pressure
猜你喜欢

网络营销之四大误解

“\“id\“ contains an invalid value“

How can c write an SQL parser

A quietly rising domestic software, low-key and powerful!

60 divine vs Code plug-ins!!

wallys/3×3 MIMO 802.11ac Mini PCIe Wi-Fi Module, QCA9880, 2,4GHz / 5GHzDesigned for Enterprise

The sci-fi ideas in these movies have been realized by AI

Who still remembers "classmate Zhang"?

1175. prime permutation

来聊聊怎么做硬件兼容性检测,快速迁移到openEuler?
随机推荐
Our company has used this set of general solutions for 7 years, and has opened up dozens of systems, a stable batch!
The sci-fi ideas in these movies have been realized by AI
AUTOCAD——LEN命令
Using cookie technology to realize historical browsing records and control the number of displays
一个悄然崛起的国产软件,低调又强大!
Another miserable day by kotlin grammar
A Generic Deep-Learning-Based Approach for Automated Surface Inspection-論文閱讀筆記
Database cascading operation
QT embeds the sub QT program window into the current program
构造函数、类成员、析构函数调用顺序
Let's talk about how to do hardware compatibility testing and quickly migrate to openeuler?
R language ggplot2 visualization: use ggplot2 to visualize the scatter diagram, and_ Set the alpha parameter in the point parameter to specify the transparency level of data points (points transparent
R语言ggplot2可视化:使用ggplot2可视化散点图、在geom_point参数中设置alpha参数指定数据点的透明度级别(points transparent、从0到1)
Go 语言入门很简单:Go 处理 XML 文件
R语言ggplot2可视化:使用ggplot2可视化散点图、使用scale_x_log10函数配置X轴的数值范围为对数坐标
R language ggplot2 visualization: use ggplot2 visualization scatter diagram and the color parameter in AES function to specify that data points in different groups are displayed in different colors
1020. 飞地的数量
1175. prime permutation
MySQL 复合查询
缓存雪崩和缓存穿透解决方案




