Issuu on Google+

‫ﻛﻠﯿﺔ اﻟﮭﻨﺪﺳﺔ اﻟﻜﮭﺮﺑﺎﺋﯿﺔ واﻹﻟﻜﺘﺮوﻧﯿﺔ‬ ‫ﻣﺨﺒﺮ اﻵﻻت اﻟﺤﺎﺳﺒﺔ‬ ‫ﻣﺎدة ﻣﻌﺎﻟﺠﺎت ﻣﺘﻄﻮرة – ﺳﻨﺔ راﺑﻌﺔ ﺣﺎﺳﺒﺎت‬ ‫اﻋﺪاد اﻟﻤﮭﻨﺪﺳﺔ ‪:‬ﺟﯿﮭﺎن ﻣﺤﻤﺪ ﺑﺮﻛﺎت ﻋﺒﺪو‬

‫اﻟﺠﻠﺴﺔ اﻟﺜﺎﻧﯿﺔ‬ ‫اﻟﻐﺎﯾﺔ ﻣﻦ اﻟﺘﺠﺮﺑﺔ‬ ‫ اﻟﺘﻌﺮف ﻋﻠﻰ ﺷﺮﯾﺤﺔ اﻟـ ‪. PPI‬‬‫ ﺗﻌﻠﻢ ﻛﯿﻔﯿﺔ وﺻﻞ اﻟﺸﺮاﺋﺢ اﻟﻄﺮﻓﯿﺔ إﻟﻰ ﻣﻤﺮ اﻟﻤﻌﺎﻟﺞ ‪.‬‬‫‪ -‬ﻛﺘﺎﺑﺔ ﺑﺮاﻣﺞ ﺗﺴﺘﺨﺪم ‪ PPI‬ﻟﻘﯿﺎدة اﻟﻠﺒﺪات وﻣﻈﮭﺮ اﻟﻘﻄﻊ اﻟﺴﺒﻊ ‪. 7Seg‬‬

‫وﺻﻞ ‪ PPI‬ﻣﻊ اﻟﻤﻤﺮات‬

‫‬‫‬‫‬‫‬‫‪-‬‬

‫اﻟﻤﻨﺎﻓﺬ ‪ A‬و ‪ B‬و ‪ C‬ﻣﺘﺼﻠﺔ ﻣﻊ اﻟﻤﻮﺻﻞ ‪P3‬‬ ‫ﻣﻤﺮ اﻟﻤﻌﻄﯿﺎت ‪ D0—D7‬ﻣﺘﺼﻞ ﻣﺒﺎﺷﺮة ﻣﻊ ﻣﻤﺮ ﻣﻌﻄﯿﺎت اﻟﻤﻌﺎﻟﺞ ‪.‬‬ ‫أﻗﻄﺎب اﻟﺘﺤﻜﻢ ‪ WR‬و ‪ RD‬و ‪ RESET‬ﻣﺘﺼﻠﺔ ﻣﻊ ﻧﻈﺮاﺋﮭﺎ ﻓﻲ ﻣﻤﺮ اﻟﺘﺤﻜﻢ ‪.‬‬ ‫اﻟﻘﻄﺐ ‪ CS‬ﻣﺘﺼﻞ ﻣﻊ ﻗﻄﺐ اﻟﺘﻔﻌﯿﻞ اﻟﺨﺎص ﺑﺎﻟﺸﺮﯾﺤﺔ واﻵﺗﻲ ﻣﻦ ﻣﺸﻔﺮ اﻟﻌﻨﺎوﯾﻦ ‪.‬‬ ‫أﻗﻄﺎب ‪ A0‬و ‪ A1‬ﻓﻲ اﻟﺸﺮﯾﺤﺔ ﻣﺘﺼﻠﺔ ﻣﻊ ‪ A1‬و ‪ A2‬ﻣﻦ ﻣﻤﺮ اﻟﻌﻨﺎوﯾﻦ ‪ .‬ﻟﻤﺎذا ؟‬

‫اﺗﺼﺎل ال‪ PPI‬ﻣﻊ اﻟﻄﺮﻓﯿﺎت‬ ‫ﻧﻼﺣﻆ ﻋﻠﻰ اﻟﺒﻮرد وﺟﻮد ﻛﺒﻞ ﻣﺴﻄﺢ ﻗﺼﯿﺮ ﺑﯿﻦ ‪ P3‬و ‪. P4‬‬ ‫ﯾﺘﺼﻞ ‪ P4‬ﻣﻊ اﻟﻄﺮﻓﯿﺎت اﻟﺘﺎﻟﯿﺔ ‪:‬‬ ‫ اﻟﻠﯿﺪات اﻟﻤﻠﻮﻧﺔ اﻷرﺑﻌﺔ ‪.‬‬‫ ﻣﻈﮭﺮ اﻟﻘﻄﻊ اﻟﺴﺒﻌﺔ ‪. 7Seg‬‬‫ اﻟﻤﺤﺮك اﻟﺨﻄﻮي‪.‬‬‫ اﻟﻤﺤﻮل اﻟﺮﻗﻤﻲ اﻟﺘﺸﺎﺑﮭﻲ‪.‬‬‫ﯾﺒﯿﻦ اﻟﺸﻜﻞ اﻟﺘﺎﻟﻲ ﻛﯿﻔﯿﺔ اﻻرﺗﺒﺎط ﻣﻊ اﻟﻠﯿﺪات و ‪. 7Seg‬‬ ‫‪1‬‬


: ‫ﻣﻦ ﻣﻘﺎرﻧﺔ اﻟﺸﻜﻠﯿﻦ اﻟﺴﺎﺑﻘﯿﻦ ﻧﺴﺘﻨﺘﺞ أن‬ . B ‫ اﻟﻠﯿﺪات ﻣﺘﺼﻠﺔ إﻟﻰ اﻟﻘﺴﻢ اﻷدﻧﻰ ﻣﻦ اﻟﻤﻨﻔﺬ‬. A ‫ ﻣﺘﺼﻠﺔ إﻟﻰ اﻟﻤﻨﻔﺬ‬7Seg 7Seg ‫ﺑﺮﻧﺎﻣﺞ اﻹظﮭﺎر ﻋﻠﻰ‬ . ‫ ﻋﻠﻰ اﻟﺘﻮاﻟﻲ ﻣﻊ ﺗﺄﺧﯿﺮ زﻣﻨﻲ ﺑﺴﯿﻂ‬7Seg ‫ ﻋﻠﻰ ﻣﻈﮭﺮ‬9 ‫ ﺣﺘﻰ‬0 ‫ﯾﻈﮭﺮ اﻟﺒﺮﻧﺎﻣﺞ اﻷرﻗﺎم ﻣﻦ‬ ;***************************************** ;* MDE-8086 EXPERIMENT PROGRAM * ;* Chapter 7-4 (Example 3) * ;* PROGRAM BY MiDAS ENGINEERING * ;***************************************** ; ; FILENAME : FND.ASM ; PROCESSOR : I8086 ; VER. : V1.1 ; CODE SEGMENT ASSUME CS:CODE,DS:CODE,ES:CODE,SS:CODE ; PPIC_C EQU 1FH PPIC EQU 1DH PPIB EQU 1BH PPIA EQU 19H ; ORG 1000H MOV AL,10000000B OUT PPIC_C,AL ; MOV AL,11110000B 2


L2: L1:

TIMER: TIMER1:

DATA:

CODE

OUT ; MOV OUT ; MOV MOV CMP JE OUT CALL INC JMP ; INT ; MOV NOP NOP NOP NOP LOOP RET ; DB DB DB DB DB DB DB DB DB DB DB ENDS END

PPIB,AL AL,00000000B PPIC,AL SI,OFFSET DATA AL,BYTE PTR CS:[SI] AL,00H L2 PPIA,AL TIMER SI L1 3 CX,0

TIMER1

11000000B 11111001B 10100100B 10110000B 10011001B 10010010B 10000010B 11111000B 10000000B 10010000B 00H

3


Advanced processors 02