pc/ppi_8255 PPI的I / O模式(可编程外围接口)

pc/ppi

The Most Significant Bit (MSB) of the Control word decides the mode in which the 8255 IC will be. For the IC to be in the Input-Output mode, the MSB must be set, i.e. it must be 1. There are further 3 modes which fall under the I/O mode category. They are:

控制字的最高有效位(MSB)决定8255 IC的工作模式。 为了使IC处于输入输出模式 ,必须设置MSB,即必须为1。另外3种模式属于I / O模式类别。 他们是:

i)模式0:简单输入输出模式或无握手的IO (i) Mode 0: Simple Input- Output Mode or IO without Handshake)

No port, in this case, performs the handshaking function and all the ports, i.e. port A, port B and port C act as an Input-Output port for transferring the data. This mode is capable of handling the interrupts.

在这种情况下,没有端口执行握手功能,并且所有端口(即端口A,端口B和端口C)都充当用于传输数据的输入输出端口。 此模式能够处理中断。

ii)模式1:具有握手或交错式I / O的I / O (ii) Mode 1: I/O with Handshake or Strobed I/O )

In this mode, the port A and port C act as the Input-Output ports but the port C is used for handshaking. Hence, the data in this mode can flow only through port A and port B. This mode is also capable of handling the interrupts. In this mode, both the sender and the receiver gets the time to time acknowledgment of data being received on the other end through the handshaking process.

在此模式下,端口A和端口C充当输入-输出端口,但端口C用于握手。 因此,此模式下的数据只能流经端口A和端口B。此模式还能够处理中断。 在这种模式下,发送者和接收者都可以通过握手过程获得另一端正在接收的数据的时间确认。

iii)模式2:双向I / O (iii) Mode 2: Bidirectional I/O)

In this mode, the data transfer is bidirectional but only for port A. Simultaneously, the port B can either be in mode 1 or mode 0 and the port C performs its function of handshaking.

在这种模式下,数据传输是双向的,但仅用于端口A。同时,端口B可以处于模式1或模式0,并且端口C执行其握手功能。

In this mode, the port A and the Port C- upper together form the Group A, and the Port B and Port C- Lower together are treated as Group B. Now, it is important to know that what the control word's value is when our IC works in the IO mode.

在此模式下,端口A和端口C-lower一起组成组A,而端口B和端口C-Lower一起组成组B。现在,重要的是要知道控制字的值是什么我们的IC在IO模式下工作。

The following diagram illustrates the control word layout for the BSR mode,

下图说明了BSR模式的控制字布局,

The I/O Mode | 8255 PPI


Fig. Control Word Layout for 8255 PPI in the I/O mode

图。I / O模式下8255 PPI的控制字布局

翻译自: https://www.includehelp.com/embedded-system/the-i-o-mode-of-8255-ppi-programmable-peripheral-interface.aspx

pc/ppi

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值