可編程ic卡 通用嗎_8255可編程IC

可編程ic卡 通用嗎

Introduction

介紹

An 8255 programmable integrated circuit (IC) is an IC used for interfacing the microprocessor with the peripheral devices. It is a 40 pin IC which was introduced by INTEL to use with its 8085 and 8086 microprocessors.

8255可編程集成電路(IC)是用于將微處理器與外圍設備接口的IC。 它是INTEL推出的40引腳IC,用于其8085和8086微處理器。

Ports of 8255

端口8255

There are three input/output 8-bit ports in this IC namely port A, port B, port C. The port C can be divided into two each of 4 bits(C upper and C lower) according to requirement.

該IC中有3個輸入/輸出8位端口,即端口A,端口B,端口C。根據需要,端口C可以分為4位(C高和C低)中的兩個。

Architecture of 8255

8255的體系結構

Architecture of 8255

Pin diagram of 8255

8255的引腳圖

Pin diagram of 8255
  • The pins 1-4 and 37-40 are for Port A(PA0-PA7).

    引腳1-4和37-40用于端口A(PA0-PA7)。

  • The pins 18-25 are for port B(PB0-PB7).

    引腳18-25用于端口B(PB0-PB7)。

  • The pins 10-17 are for port C(PC0-PC7).

    引腳10-17用于端口C(PC0-PC7)。

  • The pins 27-34 are for data bus(D0-D7) linked to the microprocessor.

    引腳27-34用于鏈接到微處理器的數據總線(D0-D7)。

  • The RD(5) and WR(36) are two low active pins for reading and write operations respectively. When a low signal is sent to the pin no 5 it means a read operation is performing. Similarly, when a low signal is sent to pin no 36 this means the write operation is being performed.

    RD(5)和WR(36)是兩個低有效引腳,分別用于讀取和寫入操作。 當低電平信號發送到5號引腳時,表示正在執行讀操作。 同樣,當低信號發送到引腳36時,這意味著正在執行寫操作。

  • The CS(chip select) is another low active pin that works as an enable to the IC.

    CS(片選)是另一個低電平有效引腳,用作IC的使能。

  • The A0 and A1 are the control logic at 8 and 9.

    A0和A1是8和9處的控制邏輯。

  • A0 A1

    A0 A1

  • 0 0 port A

    0 0端口A

  • 0 1 port B

    0 1端口B

  • 1 0 port C

    1 0端口C

  • 1 1 Control Word logic(CWR)

    1 1控制字邏輯(CWR)

  • These select the ports.

    這些選擇端口。

  • The RESET pin at 35 used to reset the IC.

    35處的RESET引腳用于復位IC。

  • The ground(7) and Vcc(26) are also present to establish the potential difference.

    接地(7)和Vcc(26)也存在以建立電勢差。

Modes of 8255

8255的模式

This IC works in 3 modes

該IC工作在3種模式

  1. Mode 0 in which all the three ports act as input-output ports.

    模式0,其中所有三個端口都充當輸入-輸出端口。

  2. Mode 1 in which only port A and port B act as input-output port while port C is used for handshaking.

    模式1,其中僅端口A和端口B充當輸入-輸出端口,而端口C用于握手。

  3. Mode 2 in which only port A is used as a bidirectional port for both input-output.

    模式2,其中僅端口A用作兩個輸入輸出的雙向端口。

Control word logic (CWL)

控制字邏輯(CWL)

Everything in the 8255 IC is dependent on the CWL. There are 8 bits in the CWL:

8255 IC中的所有內容均取決于CWL。 CWL中有8位:

CWL
  1. D0 port Clower

    D0端口割草機

  2. D1 port B

    D1端口B

  3. D2 Mode

    D2模式

  4. D3 port Cupper

    D3端口銅

  5. D4 port A

    D4端口A

  6. D5 Mode

    D5模式

  7. D6 Mode

    D6模式

  8. D7 BSR(Bit Set Reset)/I/O mode

    D7 BSR(位設置重置)/ I / O模式

We can set the CWL by using the IN and OUT command of the respective microprocessor.

我們可以使用相應微處理器的IN和OUT命令設置CWL。

翻譯自: https://www.includehelp.com/embedded-system/the-8255-programmable-ic.aspx

可編程ic卡 通用嗎

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/377763.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/377763.shtml
英文地址,請注明出處:http://en.pswp.cn/news/377763.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

POJ 1944 Fiber Communications (枚舉 + 并查集 OR 線段樹)

題意 在一個有N(1 ≤ N ≤ 1,000)個點環形圖上有P(1 ≤ P ≤ 10,000)對點需要連接。連接只能連接環上相鄰的點。問至少需要連接幾條邊。 思路 突破點在于最后的結果一定不是一個環!所以我們枚舉斷邊,則對于…

九、邏輯回歸多分類和softmax多分類

一、邏輯回歸多分類 假設激活函數使用的是sigmoid函數 邏輯回歸多分類其實是多個二分類而已,若求三分類問題需要對訓練的數據樣本進行適當的修改調整即可,如何修改樣本數據可以參考邏輯回歸二分類和多分類本質區別,內容都一樣&#xff0c…

【C++grammar】繼承與構造test1代碼附錄

目錄1、main.cpp2、circle.cpp3、circle.h4、rectangle.cpp5、rectangle.h6、Shape.h1、main.cpp #include <iostream> #include <string> #include "Shape.h" #include "circle.h" #include "rectangle.h"//創建Shape/Circle/Rect…

hdu 4747 mex 線段樹+思維

http://acm.hdu.edu.cn/showproblem.php?pid4747 題意&#xff1a; 我們定義mex(l,r)表示一個序列a[l]....a[r]中沒有出現過得最小的非負整數&#xff0c; 然后我們給出一個長度為n的序列&#xff0c;求他所有的連續的子序列的mex(l,r)的和。 思路&#xff1a; 首先因為n的最大…

十、評估指標

我看過很多課程&#xff0c;不過內容都大差不差&#xff0c;也可以參考這篇模型評估方法 一、K折交叉驗證 一般情況&#xff0c;我們得到一份數據集&#xff0c;會分為兩類&#xff0c;一類是trainset訓練集&#xff0c;另一類十testset測試集。通俗一點也就是訓練集相當于平…

leetcode 47. 全排列 II 思考分析

題目 給定一個可包含重復數字的序列 nums &#xff0c;按任意順序 返回所有不重復的全排列。 思考分析以及代碼 這一題和前面的做過的兩個題目有所關聯&#xff1a; leetcode 46. 全排列 思考分析 再加上leetcode 491. 遞增子序列 思考分析類似的去重操作。 先畫出解空間樹…

python添加數組元素_在Python中向數組添加元素

python添加數組元素An array can be declared by using "array" module in Python. 可以通過在Python中使用“數組”模塊來聲明數組 。 Syntax to import "array" module: 導入“數組”模塊的語法&#xff1a; import array as array_alias_nameHere, im…

hdu 4472 Count(遞推即dp)

題目鏈接&#xff1a;http://acm.hdu.edu.cn/showproblem.php?pid4472 代碼&#xff1a; #include <cstdio> #include <cstring> #include <iostream> #include <cmath> #include <algorithm> #include <queue> #include <vector> …

如何在Java中同步ArrayList?

同步ArrayList (Synchronizing ArrayList) In java, there are two ways to synchronize ArrayList, 在Java中&#xff0c;有兩種同步ArrayList的方法&#xff0c; With the help of synchronizedList() method 借助syncedList()方法 With the help of CopyOnWriteArrayList&l…

十一、決策樹和隨機森林

這門課和另一門課內容都差不多&#xff0c;可以參考七、決策樹算法和集成算法該篇博文。 一、決策樹相關概念 邏輯回歸本質 邏輯回歸&#xff1a;線性有監督分類模型。常用求解二分類問題&#xff0c;要么是A類別要么是B類別&#xff0c;一般會以0.5作為劃分閾值&#xff0c…

【C++grammar】繼承與構造

目錄1.繼承1、Inheritance (繼承)2、避免一個類被繼承&#xff08; C11 &#xff09;3、繼承實例4、完整代碼5、繼承的優缺點是什么?2.繼承中的構造函數1、 派生類繼承的成員2、調用基類構造函數3.繼承中的默認構造函數1、基類的無參構造函數2、由編譯器自動生成的基類構造函數…

C語言預處理

所謂預處理是指在進行編譯的第一遍掃描(詞法掃描和語法分析)之前所作的工作。預處理是&#xff23;語言的一個重要功能&#xff0c; 它由預處理程序負責完成。當對一個源文件進行編譯時&#xff0c; 系統將自動引用預處理程序對源程序中的預處理部分作處理&#xff0c; 處理完畢…

(轉)將cocos2dx項目從VS移植到Eclipse

本文轉自:http://www.cnblogs.com/Z-XML/p/3349518.html 引言&#xff1a;我們使用cocos2d-x引擎制作了一款飛行射擊游戲&#xff0c;其中創新性地融入了手勢識別功能。但是我們在移植過程中遇到了很多的問題&#xff0c;同時也發現網上的資料少而不全。所以在項目行將結束的時…

十二、聚類算法——相似度測量

兩套學習資料都類似&#xff0c;可參考聚類算法實戰 一、聚類 聚類&#xff1a;物以類聚&#xff0c;人以群分&#xff0c;是無監督學習中的一種。 沒有y&#xff0c;只有x&#xff0c;把不同的x根據相似度自動的聚成好多堆兒 本質上&#xff0c;N個樣本&#xff0c;映射到K個…

操作系統磁盤調度_磁盤調度| 操作系統

操作系統磁盤調度磁盤調度 (Disk Scheduling) One of the major duties of the operating is that, to use the hardware orderly and accurately. For disk drives, it has a duty of having a fast access time and disk bandwidth. Generally, bandwidth is the total numbe…

leetcode 344. 反轉字符串 541. 反轉字符串 II 雙指針解

目錄leetcode 344.反轉字符串1、題目2、思考leetcode 541. 反轉字符串 II1、題目2、思考leetcode 344.反轉字符串 1、題目 2、思考 典型的雙指針解法&#xff1a; 一個從前往后&#xff0c;一個從后往前&#xff0c;指針對應的交換即可。 class Solution { public:void reve…

關于銀聯在線支付和短彩信接口的開發——總結

9月份開始做用二維碼做閉環的一個在線訂購景區門票的項目&#xff0c;其中這樣做是很好的&#xff0c;用二維碼連接了線上與線下的交易和兌券。銀聯在線支付接口&#xff08;asp.net cs&#xff09;做的很好&#xff0c;方便調用開發。就是處理回值的時候得找個更好的方法才能顯…

十三、聚類算法

六、聚類算法實戰 一、聚類 聚類是一種無監督的機器學習任務&#xff0c;可以自動將數據劃分為類cluster&#xff0c;因此聚類分組不需要提前被告知所劃分的組應該是什么樣子的。因為我們甚至可能都不知道我們在尋找什么&#xff0c;所以聚類是用于知識發現而不是預測。 聚類…

pl/sql中的賦值運算符_如何在SQL中使用AND / OR運算符?

pl/sql中的賦值運算符Basically, AND / OR operator is used to retrieving the record from the database. If we give more than one conditions by using AND Operator, then it retrieves the data from the database when both the conditions are true. And if we use OR…

【C++grammar】名字隱藏與重定義

目錄1、繼承中的名字隱藏1.基類同名函數被隱藏的現象描述2.問題理解3.避免現象2、重定義1.現象描述2.重定義與重載的區別3.能否使用 using 將基類成員引入到派生類定義中1、繼承中的名字隱藏 1.基類同名函數被隱藏的現象描述 在學習變量作用域的時候知道&#xff0c;全局變量…