当前位置:网站首页>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


边栏推荐
猜你喜欢

聊聊怎么做硬件兼容性检测,快速迁移到openEuler?

Alibaba cloud lifeifei: China's cloud database has taken the lead in many mainstream technological innovations abroad

The operation and maintenance security gateway (Fortress machine) of Qiming star group once again won the first place!

这些电影中的科幻构想,已经用AI实现了

Object mapping - mapping Mapster

Boost study: boost log

MySQL 复合查询

In depth analysis of Apache bookkeeper series: Part 4 - back pressure

OpenMLDB Meetup No.4 会议纪要

How can c write an SQL parser
随机推荐
R语言ggplot2可视化分面图(facet):gganimate包基于transition_time函数创建动态散点图动画(gif)、使用labs函数为动画图添加动态时间标题
“\“id\“ contains an invalid value“
OpenMLDB Meetup No.4 会议纪要
A Generic Deep-Learning-Based Approach for Automated Surface Inspection-論文閱讀筆記
Le talent scientifique 丨 dessins animés qu'est - ce qu'erdma?
R language ggplot2 visualization: gganimate package is based on Transition_ Time function to create dynamic scatter animation (GIF)
1254. 统计封闭岛屿的数目
Cache avalanche and cache penetration solutions
论文解读(AGC)《Attributed Graph Clustering via Adaptive Graph Convolution》
A High-Precision Positioning Approach for Catenary Support Components With Multiscale Difference阅读笔记
Evaluation of IP location query interface Ⅲ
koa - 洋葱模型浅析
Object mapping - mapping Mapster
1020. 飞地的数量
R language ggplot2 visualization: use ggplot2 visualization scatter diagram and the size parameter in AES function to specify the size of data points (point size)
Lucene full text search toolkit learning notes summary
redis在项目中的使用
Summer vacation study record
Uncover the whole link communication process of customer service im
Go 语言入门很简单:Go 处理 XML 文件




