PROGRAMMING BOOK FOR MTK85SE, 8085 MICROPROCESSOR TRAINING KIT

Size: px
Start display at page:

Download "PROGRAMMING BOOK FOR MTK85SE, 8085 MICROPROCESSOR TRAINING KIT"

Transcription

1 PROGRAMMING BOOK FOR MTKSE, 0 MICROPROCESSOR TRAINING KIT Wichit Sirichote 0 Rev.0 April, 0

2 CONTENTS Program : Writing data to output port... Program : Binary number counting... Program : LED running... Program : Fill constant to RAM... Program : -Bit Binary addition...0 Program : BCD addition... Program : Reading button press... Program : Producing tone signal... Program : Morse code keyer... Program 0: -Segment display...0 Program : Hardware interrupt... Program : Timer interrupt... 0 Micro Architecture Instruction hex code

3 Program : Writing data to output port We can use debugging LED that connected to GPIO port to display the Accumulator content easily. This code will bring the internal -bit data in CPU to the real-world. GPIO is -bit data flip-flop latch. The GPIO latch enable signal, LE is decoded at I/O space location 00. The output Q to Q drives small LED. Logic '' will make LED lit, logic '0' no light. Let us see how the code brings the Accumulator content to the real-world. Line Addr Hex code label Instruction GPIO.EQU 00H ORG 00H E 0 START MVI A, D 00 OUT GPIO FF RST END tasm: Number of errors = 0 A constant is loaded to the Accumulator register A. Then write it to GPIO location. RST will make the program control back to monitor program. Procedure. Enter Hex code from location 00 to 0.

4 . Press key HOME, then GO. What is happening at GPIO LED? Exercise. Modify the code to send another byte? And see the result on GPIO LED. Summary Using the LED indicator at the output port register is the simple method for program testing. The kit has -bit LED. The byte that needed to check must be loaded into the Accumulator then uses OUT 0, instruction to write it to the -bit binary display.

5 Program : Binary number counting How the microprocessor count the -bit binary number? Line Addr Hex code label Instruction GPIO.EQU 00H ORG 00H E 0 START MVI A, D 00 LOOP OUT GPIO C INR A C 0 JMP LOOP END tasm: Number of errors = 0 We modify Program by inserting the instruction INR A and JMP LOOP. INR A will increment the Accumulator by one. JMP LOOP will let CPU jump back to address 0. Procedure. Enter Hex code from location 00 to 0.. Press key HOME, then STEP. What is happening at GPIO LED when we STEP over location 0? We can see the counting in binary from to , and so on. STEP key will let CPU execute single instruction. If we press key GO. What is happening? All LED will look like turn on, like. If we try another program by adding a small delay between incrementing. Line Addr Hex label Instruction GPIO.EQU 00H ORG 00H E 0 START MVI A, D 00 LOOP OUT GPIO C INR A

6 000 0 CD 0B CALL DELAY C 0 JMP LOOP 00 0B 00 0B FF FF DELAY LXI D,- 00 0E 00 0 LXI H,000H 00 LOOP DAD D 00 DA JC LOOP 00 C RET END tasm: Number of errors = 0 Enter the hex code and now press key HOME, GO. We see that such small delay will make us see the binary counting. Can you modify the code to make it run faster or slower? How? Summary The small delay is very useful subroutine for program debugging. Its functioning is to do counting until the initial value becomes zero.

7 Program : LED running With a bit modification of Program, we can show the LED running light with new instruction easily. Line Addr Hex label Instruction GPIO.EQU 00H ORG 00H E 0 START MVI A, D 00 LOOP OUT GPIO RLC CD 0B CALL DELAY C 0 JMP LOOP 00 0B 00 0B FF FF DELAY LXI D,- 00 0E 00 0 LXI H,000H 00 LOOP DAD D 00 DA JC LOOP 00 C RET END tasm: Number of errors = 0 Now, INR A instruction was replaced with RLC, Rotate left through carry. Procedure. Enter hex code from location 00 to.. Press HOME, then GO. Exercise. Modify the initial load value from to any number. Test it.. Change running speed faster and slower. Summary 0 has left and right rotation instructions. We can learn theirs operation with the GPIO LED and with delay subroutine.

8 Program : Fill constant to RAM We will use memory pointer and write the constant with a number of byte counted by loop counter. Line Addr Hex code label Instruction ORG 00H START LXI H,000H ; address pointer MVI B, ; loop counter E 00 MVI A,0 ; constant LOOP MOV M,A ; write to memory INX H ; next address DCR B ; decrement counter 00 0A C 0 JNZ LOOP ; done? 00 0D 00 0D FF RST ; jump to monitor 00 0E 00 0E 00 0E.END tasm: Number of errors = 0 The 0 CPU uses HL as the -bit memory pointer (H for High address and L for Low address). The instruction MOV M,A will use HL as the pointer, register A content will copy to memory pointed to by HL. This is called indirect addressing. Register B uses as the loop counter. The example will write 0 to memory from location 000H to 00H, bytes. Procedure. Enter hex code from location 00 to 0D.. Write down the contents of memory location 000 to 00.. Press key HOME then GO.. Check and write down the contents of memory location 000 to 00. Location Before After Exercise. Modify code to fill constant FF to location 000 to 0FF. Show the result.

9 Summary Indirect addressing using HL register provides a flexible memory access for many applications.

10 Program : -Bit Binary addition This program shows how to add multiple bytes using ADI and ACI instructions. Line Addr Hex label Instruction ORG 00H START LXI H,000H E MOV A,M C ADI H MOV M,A INX H E MOV A,M CE A ACI AH 00 0B MOV M,A 00 0C FF RST 00 0D 00 0D.END tasm: Number of errors = 0 We have two -bit numbers to be added. The first number is stored in memory location 000 (low byte) and 00(high byte). The second number is -bit immediate value. AH. We can enter the first number at location 000 (low byte) and 00(high byte). Adding is done by ADI instruction for low byte and ACI for high byte. Result will put back to location 000 (low byte) and 00(high byte). Location [00] [000] + XX YY A ADI, add with no carry will use for adding low order byte. For the next higher significant byte we will use ACI, add with carry flag to include carry bit if there is. Procedure. Enter hex code from location 00 to 0A.. Suppose the first number is ABBH. Enter it to location 000(low byte) and 00(high byte).. Compute it by hand, keep the result.. Now press key HOME, then GO.. Check the result that saved in RAM at location 000(low byte) and 00(high byte). 0

11 Program : BCD addition By inserting DAA instruction after ADI and ACI instructions, we can add two -digit BCD numbers easily ORG 00H START LXI H,000H E MOV A,M C ADI H DAA MOV M,A INX H E MOV A,M 00 0A CE ACI H 00 0C DAA 00 0D MOV M,A 00 0E FF RST 00 0F 00 0F.END tasm: Number of errors = 0 We see that the code for BCD addition is similar to binary addition, only there are DAA after ADI and ACI instruction. Procedure. Enter hex code from location 00 to 0E.. Suppose the first number is H. Enter it to location 000(low byte) and 00(high byte).. Compute it by hand, keep the result.. Now press key HOME, then GO.. Check the result that saved in RAM at location 000(low byte) and 00(high byte). Location [00] [000] Exercise + XX YY. Try another BCD number that saved in RAM at 000 and 00. Summary DAA can be used with binary adding instructions. It will adjust the result to BCD number automatically.

12 Program : Reading button press We can test button press with USER key that tied to PA of the system PPI,. PA is bit of PORTA. The input logic appears at PA is logic '' with 0k pull-up resistor. When the button was pressed PA will short to GND, the logic will be '0'. We can read this status by instruction IN PORT directly. The byte will be read to the Accumulator. Our test program will read key press, then increment the byte at location 000. We can see the incrementing by writing the content of location 000 to GPIO LED. Line Addr hex code Label Instruction PORTA.EQU 0H GPIO.EQU 00H ORG 00H START LXI H,000H DB 0 PRESSED IN PORTA E 0 ANI 0H CA 0 JZ PRESSED 00 0A 00 0A CD CALL DEBOUNCE 00 0D 00 0D DB 0 READ IN PORTA 00 0F E 0 ANI 0H 00 C 0D JNZ READ CD CALL DEBOUNCE 00 CD D CALL WRITE_A 000 A 00 A C 0 JMP PRESSED 00 D 00 D WRITE_A INR M 00 E E MOV A,M

13 00 F D 00 OUT GPIO 00 C RET DEBOUNCE MVI B, DELAY DCR B 000 C JNZ DELAY 00 C RET END tasm: Number of errors = 0 Yellow portions are key press checking. The first one is to wait if key has been pressed. The status of logic at PA is checking by logical AND instruction with 0H. Bit position of PA is bit. Thus we use 0H for bit testing. If logic is '0', Result from logical AND will give ZERO. Thus JZ PRESSED will repeat checking it until it is logic '', or key has been released. Logic appears at PA could be like this. Logic '' Logic '0' Key pressed Released Tact switch is mechanical contact. It has elastic property, vibrate in a short period. The logic signal seen by CPU execution would be spike signal. Simple method to get stable logic readings is done by providing a short wait until the logic is stable. We thus insert small delay called DEBOUNCE subroutine. The second yellow portion is now checking until key was pressed. Again we also get the same bouncing signal but in opposite direction. Logic '' No press pressed Logic '0' So we wait until the logic is stable, then execute the desired task. Our task is to increment location 000, then write it to GPIO LED. Procedure. Enter hex code from location 00 to.. Now press key HOME, then GO.. Press USER key, what is happening at GPIO LED?

14 Exercise. Try reduce the delay period.

15 Program : Producing tone signal The kit has one bit that drives a small speaker. We can make a tone signal and hear it from the loudspeaker. Q is PNP transistor switch. It can drive the speaker with logic input at SPEAKER signal. Logic low of SPEAKER signal will turn on Q, and logic high will turn it off. We can write a program that makes 0% duty cycle of tone signal PORTC.EQU H ORG 00H E FF START MVI A,0FFH STA 000H A 00 0 TONE LDA 000H EE 0 XRI B 000 0A 00 0 STA 000H 00 0D D OUT PORTC 00 0F 00 0F 0 0 MVI B,0H 00 0 LOOP DCR B 00 C JNZ LOOP C 0 JMP TONE END tasm: Number of errors = 0

16 Location 000 stores a byte that will be sent to PORTC. The data is loaded with FF. We see at the circuit of PORTC, the TRACE signal must be HIGH, to prevent TRAP signal to be activated. Toggle PC is done by logical Exclusive OR instruction with a mask byte, 0H or b. Small delay is done by register B. Procedure. Enter hex code from location 00 to.. Now press key HOME, then GO.. Can you hear the tone signal? Exercise. Modify the delay period to change the tone frequency. Summary The output bit at loudspeaker is one bit. So we can make a tone signal as the square wave signal easily. For some applications that produces purely sinusoidal waveform, like sine wave tone signal, we will need more output bits and may need Digital to Analog converter chip.

17 Program : Morse code keyer Let us have some fun with Morse code keyer program. This program combines Program and. It is a simple tone generator when we press key PORTA.EQU 0H PORTC.EQU H ORG 00H E FF START MVI A,0FFH STA 000H DB 0 PRESSED IN PORTA E 0 ANI 0H 00 0 C JNZ READ 00 0C CD F CALL TONE 00 0F C 0 JMP PRESSED DB 0 READ IN PORTA 00 E 0 ANI 0H 00 C JNZ READ

18 CD 0 CALL DEBOUNCE 00 C C 0 JMP PRESSED 00 F 00 F A 00 0 TONE LDA 000H 00 EE 0 XRI B STA 000H 00 D OUT PORTC MVI B,0H 00 B 0 LOOP DCR B 000 C C B JNZ LOOP 00 F C RET DEBOUNCE MVI B, DELAY DCR B 00 C JNZ DELAY 00 C RET END tasm: Number of errors = 0 We see that while the key has been pressed, tone signal will be produced. Procedure. Enter hex code from location 00 to.. Now press key HOME, then GO.. Press key USER and try making Morse code? Exercise. Modify the tone frequency and play again. Summary More complicated program can translate the text to Morse code. However it is more fun to learn Morse code and hit the key manually.

19 Here is the Morse code table for playing. Source:

20 Program 0: -Segment display The kit display is made with common cathode -segment LED, LTC. Segment a, b, c, d, e, f, g, DP are driven by PORTB. All segments are common connected to all digits (only -digit shown). U is segment driver with R for limiting driving current. To activate a given digit, the common cathode pin must be activated with logic LOW. PORTC, PC0 to PC drives the -bit decoder, LS providing -digit for CC pin driver. Segment designation for bit driven is shown below. For example, to display number '', segment B and C must be ''. The bit pattern will be 0. We can find the bit pattern for a given letter easily. Such display is called multiplex display. At a given time, only one digit will be activated. However if we switch each digit with corresponding segment fast enough, we will see all digits with no blinking. 0

21 More features for this circuit, we can use PWM method to reduce the power consumption of the LED thus longer theirs life. We can adjust duty cycle for the driving signal. Here is 0% duty cycle driving pulse. Smaller duty cycle will reduce power consumption, reduce the LED brightness as well. Proper duty cycle will give nice display with less power. The first example will display one digit with PWM method. We will now test the code for single digit display SEGMENT.EQU H DIGIT.EQU H ORG 00H E F START MVI A,FH D OUT SEGMENT E F0 MVI A,0F0H D OUT DIGIT CD CALL TIMEON 00 0B 00 0B E 00 MVI A,0 00 0D D OUT SEGMENT 00 0F 00 0F CD C CALL TIMEOFF C 00 JMP START TIMEON MVI B, 00 0 LOOP DCR B 00 C JNZ LOOP 00 B C RET 00 C 00 C 0 TIMEOFF MVI B,00 00 E 0 LOOP DCR B 00 F C E JNZ LOOP 00 C RET 000

22 00.END tasm: Number of errors = 0 Yellow portion will make the first digit to display number '', code pattern is FH. Time on subroutine makes a turn on period. Then all segments will be turned off with Time off subroutine for no light period. Procedure. Enter hex code from location 00 to.. Now press key HOME, then GO.. Observe the display, see the brightness of the LED. Adjust duty cycle and observe the brightness again. Exercise. Try with another pattern and another digit. To display all digits, we will use scanning method SEGMENT.EQU H DIGIT.EQU H ORG 00H START LXI H,TEXT CD 0 CALL SCAN C 00 JMP START ;SCAN DISPLAY 00 0 ;ENTRY: HL E 0 SCAN MVI C, 00 0B E 00 MVI E,0 00 0D 00 0D B SCAN MOV A,E 00 0E F F0 ORI 0F0H 00 0 D OUT DIGIT E MOV A,M 00 D OUT SEGMENT TIMEON MVI B, 00 0 LOOP DCR B 00 C JNZ LOOP 00 B 00 B E 00 MVI A,0

23 00 D D OUT SEGMENT 000 F 00 F C INR E 00 0 INX H D DCR C 00 C 0D JNZ SCAN 00 C RET F TEXT.BYTE FH ; '0' BYTE 0H ; '' 00 B.BYTE BH ; '' 00 F.BYTE FH ; '' 00 A.BYTE H ; '' 00 B D.BYTE DH ; '' 00 C D.BYTE DH ; '' 00 D 0.BYTE 0H ; '' 00 E 00 E F.BYTE FH ; '' 00 F F.BYTE FH ; '' BYTE H ; 'A' 00 C.BYTE CH ; 'b' 00.BYTE H ; 'C' 00 E.BYTE EH ; 'd' 00.BYTE H ; 'E' 00.BYTE H ; 'F' END tasm: Number of errors = 0 Subroutine scan uses HL as the buffer display pointer. Register C is number of digit to be scanned. Register E is digit scan code, which is 0 to for -digit. The example uses -byte from to D to be a display buffer. Procedure. Enter hex code from location 00 to.. Now press key HOME, then GO.. Observe the display, see the brightness of the LED. And the number being displayed.. Change HL to E, test it again. See any change? Exercise. Can you show 'HELLO JO' on the display, how?

24 Program : Hardware interrupt The kit provides test button that produces single pulse for interrupt experiment. SW is push button, when press and release, the single pulse will send to interrupt pins. For this test we will select RST., so SW must set DIP switch position ON ORG 0H C 0 JMP SERVICE_RST ORG 00H F MAIN DI E 0D MVI A,0B SIM FB EI FF RST SERVICE_RST F PUSH PSW E MVI A,H 00 0 D 00 OUT B 000 0B F POP PSW 00 0C FB EI 00 0D C RET 00 0E 00 0E.END 00 0E 00 0E

25 tasm: Number of errors = 0 The interrupt vector for RST. is located at 00H. The kit relocate this vector to RAM space at location 0H. User can enter JUMP instruction at 0H to the service routine for RST. easily. Since the RST. is a maskable, so to enable it, we must set the mask bit for RST. to '0'. And use instruction SIM to to set it. That is all for main code then the control jump back to monitor program. When we press test button, the CPU will jump to RST. vector and jump to 0. The service routine will write a byte H to GPIO LED. We can see the binary H on the GPIO LED directly. Procedure. Enter hex code at 0-0 for JUMP instruction.. Enter hex code from 00 to 0D.. Now press key HOME, then GO.. Observe the display, push the test button to produce interrupt signal for RST. pin.. Press RESET, observe when push the test button again. Exercise. Modify the code for testing RST. interrupt pin.

26 Program : Timer interrupt The kit provides ms tick generated from timer. The input clock MHz supplied to chip will be divided by producing ms tick. This tick signal is fed to RST.. The monitor program initializes such tick signal at the beginning when reset the CPU. User can use this tick signal for many time trigger applications. We will play with this tick by RST. interrupt pin. The hardware ties RST. to the output of directly. No jumper setting needed C.ORG 0CH 000 0C C 0D JMP SERVICE_RST F ORG 00H F MAIN DI E 0B MVI A,0B SIM FB EI AF XRA A STA SEC_ STA SECOND 00 0C 00 0C FF RST 00 0D 00 0D SERVICE_RST. 00 0D 000 0D F PUSH PSW 00 0E 00 0E A 00 0 LDA SEC_ 00 C INR A STA SEC_

27 00 FE E CPI 0 00 C JNZ SKIP 00 A 00 A AF XRA A 00 B 00 0 STA SEC_ 000 E 00 E A 0 0 LDA SECOND 00 C 0 ADI 00 DAA STA SECOND 00 D 00 OUT SKIP F POP PSW 000 A FB EI 00 B C RET 00 C ORG 000H SEC_.BLOCK SECOND.BLOCK END tasm: Number of errors = 0 Main code initializes RST. mask bit, clear two variables: SEC_ and SECOND then enable interrupt and return to monitor program. The RST. service routine will be entered every ms or approx. 0 cycles/second. Every entering, the SEC_ is incremented by one. When it was equal to 0, time has elapsed for one second. We then increment the SEC variable and write it to GPIO LED. We can see the BCD counting up every one second on the GPIO LED. Procedure. Enter hex code at 0C-0E for JUMP instruction.. Enter hex code from 00 to B.. Now press key HOME, then GO.. Observe the display. Try pressing keypad as there is no timer interrupt.. Press RESET, observe again. Exercise. Change the update rate from one second to seconds.

28 0 Micro Architecture Source: By Appaloosa - Own work, CC BY-SA.0,

29 0 Instruction Hex Code

30 MOVE, LOAD and STORE 0 MOV B,B MOV B,C MOV B,D MOV B,E MOV B,H MOV B,L MOV B,M MOV B,A MOV C,B MOV C,C A MOV C,D B MOV C,E C MOV C,H D MOV C,L E MOV C,M F MOV C,A 0 MOV D,B MOV D,C MOV D,D MOV D,E MOV D,H MOV D,L MOV D,M MOV D,A MOV E,B MOV E,C A MOV E,D B MOV E,E C MOV E,H D MOV E,L B MOV L,E C MOV L,H D MOV L,L E MOV L,M F MOV L,A 0 MOV M,B MOV M,C MOV M,D MOV M,E MOV M,H MOV M,L MOV M,A MOV A,B MOV A,C A MOV A,D B MOV A,E C MOV A,H D MOV A,L E MOV A,M F MOV A,A E nn MVI A,byte 0 nn MVI B,byte 0E nn MVI C,byte nn MVI D,byte E nn MVI E,byte nn MVI H,byte E nn MVI L,byte nn MVI M,byte 0 nnnn LXI B,dble nnnn LXI D,dble nnnn LXI H,dble nnnn LXI SP,dble 0 STAX B STAX D 0A LDAX B A LDAX D nnnn STA adr A nnnn LDA adr nnnn SHLD adr A nnnn LHLD adr EB XCHG COMPARE FE nn CPI byte B CMP B B CMP C BA CMP D BB CMP E BC CMP H BD CMP L BE CMP M BF CMP A ROTATE 0 RLC RAL 0F RRC F RAR STACK C PUSH B D PUSH D E PUSH H F PUSH PSW C POP B D POP D E POP H F POP PSW E XTHL F SPHL 0

31 INX SP B DCX SP ARITHEMATICS F0 F E E0 RP RM RPE RPO C nn ADI byte CE nn ACI byte 0 ADD B ADD C ADD D ADD E ADD H ADD L ADD M ADD A ADC B ADC C A ADC D SUB M SUB A SBB B SBB C A SBB D B SBB E C SBB H D SBB L E SBB M F SBB A 0 DAD B DAD D DAD H DAD SP CALL CD nnnn CALL adr DC nnnn CC adr D nnnn CNC adr CC nnnn CZ adr C nnnn CNZ adr F nnnn CP adr FC nnnn CM adr EC nnnn CPE adr E nnnn CPO adr RETURN C D C C0 RET RC RNC RZ RNZ RESTART C RST 0 CF RST D RST DF RST E RST EF RST FF RST SPECIALS F CMA STC F CMC DAA INPUT/OUTPUT DB nn IN byte D nn OUT byte INCREMENT/DECREMENT 0 INR B 0C INR C INR D C INR E INR H C INR L INR M C INR A 0 INX B INX D INX H 0 DCR B 0D DCR C DCR D D DCR E DCR H D DCR L DCR M D DCR A 0B DCX B B DCX D B DCX H JUMP C nnnn JMP adr

32 DA nnnn JC adr D nnnn JNC adr CA nnnn JZ adr C nnnn JNZ adr F nnnn JP adr FA nnnn JM adr EA nnnn JPE adr E nnnn JPO adr E PCHL LOGICAL E nn ANI byte EE nn XRI byte F nn ORI byte ANA B A ANA C A ANA D A ANA E A ANA H A ANA L A ANA M A ANA A A XRA B A XRA C AA XRA D AB XRA E AC XRA H AD XRA L AE XRA M AF XRA A B0 ORA B B ORA C B ORA D B ORA E B ORA H B ORA L B ORA M B ORA A

33 D D C C B B A A memory & i/o decoder Designed by Wichit Sirichote, wichit.sirichote@gmail.com 0x000-0xFFFF kb SRAM 0x0000-0xFFF kb ROM <Doc> 0 Microprocesor Kit B Friday, April, 0 Title Size Document Number Rev Date: Sheet of D CLKOUT A A A D A A A SOD D[0..] /RD D A A A A A A D A A D D D A D A /RD D A D D A A[0..] D A A A D A /WR A A D D A D D A[..] D D D D D ALE A A A D D A A D D D D D D ROM_CE A A D A A D D D RAM_CE A A A A D A A A IO/M RAM_CE S0 S A A A A /RD /WR ALE HLDA RESET_OUT ROM_CE SID TRAP RST. RST. RST. INTR INTA S0 S READY SID D D D D GPIO D D D ALE TRAP *RST. RST. *RST. *INTR RST. RST. INTR D D D D D D D /RD /WR SID S0 S ALE IO/M SOD READY RESET_OUT CLKOUT *RST. *RST. A HLDA A A *INTR A INTA A A A *RST. HOLD A A GPIO D D D CLKOUT D D D D WR RD reset SYSTEM_PPI CTC USER_PPI UART LCD_E TRACE *RST. VCC VSS A A OUT OUT +V +V +V +V +V +V +V +V +V +V +V VCC +V +V D D JP HEADER 0X D LED mm R 0k D R 0k D NA D U HC 0 A B CLK CLR QA QB QC QD QE QF QG QH U GALVB I/CLK I/OE I/O/Q I/O/Q I/O/Q I/O/Q I/O/Q I/O/Q I/O/Q I/O/Q I I I I I I I I UA 00 Q KI UB 00 SW SW SPDT U HC 0 OE LE VCC Q Q Q Q Q Q Q Q D D D D D D D D + C 0uF U C 0 0 A A A A A A A A A A A A A CE OE VPP O0 O O O O O O O U HMB 0 0 A A A A A A A A A A A A A CE OE WE D D D D D D D U MSM0CA 0 0 RST-IN X X SID TRAP RST. RST. RST. INTR INTA S0 S HOLD READY A AD AD AD AD AD AD AD A A A A A A A ALE WR RD IO/M RST-OT CLKO SOD HLDA SW SW DIP- UF LS UC 00 0 UD 00 R 0k UE LS 0 R 00 R 0k R 0k UA LS R 0k LED Q MHz UB LS UC LS R 0 UD LS S RESET D C 0pF D C 0pF U HC 0 OE LE VCC Q Q Q Q Q Q Q Q D D D D D D D D D

34 R 0 R C R0 DIGIT.k D TONE VCC 0 Microprocesssor Kit DIGIT Q BC +V R Size Document Number Rev B <Doc> Date: Friday, April, 0 Sheet of 0 LS DIGIT SPEAKER +V LLL VCC VCC VSS D C B A D PB0 PB PB PB PB PB PB PB U A A A A A A A A G G LS Y Y Y Y Y Y Y Y R 0 R-PACK A B C D E F G DP U0 A B C D E F G DP DIGIT LTC-JR DIGIT DIGIT DIGIT LLL A B C D E F G DP U A B C D E F G DP DIGIT LTC-JR C PC0 PC PC PC U A B C D LS 0 0 SPEAKER B D D D D D D D SYSTEM_PPI WR RD A D D D D D D D reset D D D D D D D 0 CS RESET A WR RD D D D D D D D U PB PB PB PB PB PB PB PB0 PC PC PC PC PC PC PC PC0 PA PA PA PA PA PA PA P PB PB PB PB PB PB PB PB0 PC PC PC PC PC PC PC PC0 PA PA PA PA PA PA PA P TRACE SW C SW SW SW 0 SW SW D SW0 SW SW SW SW E SW A SW SW0 SW SW F SW B SW SW SW SW OPTION SW MODE SW USER USER PA PA 0k RESISTOR SIP P PA PA PA PA PA PA PA A INC DEC STEP HOME GO ALT ADDR DATA A A SPEAKER VCC SW SW SW SW A A Title

35 D D C C B B A A RS R/W x text LCD interface <Doc> 0 Microprocessor Kit B Friday, April, 0 Title Size Document Number Rev Date: Sheet of D D D D D D D D D D D D D D D[0..] A A A A A RXD TXD RTS DCD RTS DCD D D D D D D A D DC D D D D D D D RD WR CTC CLKOUT VCC VSS *RST. A A RD WR reset UART RXD TXD LCD_E OUT OUT D D D D D D D VCC +V +V +V +V +V +V VCC +V +V +V + C 0uF C 0.uF C 0.uF D N00 + C 0uF V C 0.uF + C 0uF VB SUB-D, Male (cross cable) + C 0uF 0V U 0 0 D D D D D D D RD WR A CS CLK0 G0 OUT0 CLK G OUT CLK G OUT C 0.uF U CS0 CS CS RD WR RD WR A A D D D D D D D ADS RESET XTAL/CLK XTAL RCLK OUT OUT INT TXD RTS DTR RXD DCD DSR CTS RI CSOUT DDIS NC BAUDOUT C 0.uF J DC input JR CONN RECT C 0uF R C0 0.uF C 00nF R k C 00nF TP +V + C 0uF R 0K D POWER U MAXA 0 RIN RIN TIN TIN C+ C- C+ C- V+ V- ROUT ROUT TOUT TOUT C 0.uF TP GND + C 000uF V U LM0/TO VIN GND VOUT + C0 0uF

8085 INSTRUCTION SET INSTRUCTION DETAILS

8085 INSTRUCTION SET INSTRUCTION DETAILS 8085 INSTRUCTION SET INSTRUCTION DETAILS DATA TRANSFER INSTRUCTIONS MOV Rd, Rs Copy from source to destination This instruction copies the contents of the source register Rs into the destination register

More information

Instruction Set Instruction set of 8085 can be classified in following groups: Data Transfer Instructions These instructions can perform data transfer operations between Registers of 8085 e.g. MOV 8085

More information

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples. (1) Explain instruction format and Opcode format of 8085 μp with example. OR With help of examples, explain the formation of opcodes of 8085 OR What is an instruction? List type of instruction based on

More information

INSTRUCTION SET OF 8085

INSTRUCTION SET OF 8085 INSTRUCTION SET OF 8085 Instruction Set of 8085 An instruction is a binary pattern designed inside a microprocessor to perform a specific function. The entire group of instructions that a microprocessor

More information

Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1

Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1 Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1 High Level Language Compiler Assembly Language Assembler Machine Code Microprocessor Hardware 1/18/2011 2 8085A Instruction Set

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. QUESTION BANK DEPARTMENT: EEE SUB CODE: EE2324 YR/ SEM:III/ VI SUB NAME: MICROPROCESSORS & MICROCONTROLLERS UNIT 2- PROGRAMMING OF 8085 MICROPROCESSORS

More information

EE309: Computer Organization, Architecture and MicroProcessors. sumantra/courses/up/up.html GND HIGH ORDER ADDRESS BUS

EE309: Computer Organization, Architecture and MicroProcessors.   sumantra/courses/up/up.html GND HIGH ORDER ADDRESS BUS CMP:8085 Primer-1 EE309: Computer Organization, rchitecture and MicroProcessors http://www.ee.iitb.ac.in/ sumantra/courses/up/up.html The 8085 Chip F LGS: S Z x x P x cy EXTERNLLY INITITED SIGNLS SERIL

More information

SAMPLE STUDY MATERIAL

SAMPLE STUDY MATERIAL Microprocessor-IN Postal Correspondence Course 1 SAMPLE STUDY MATERIAL Instrumentation Engineering IN Postal Correspondence Course GATE & PSUs Microprocessor Microprocessor-IN Postal Correspondence Course

More information

م.م. ماجد عيدان. Introduction to microprocessor and microcomputer

م.م. ماجد عيدان. Introduction to microprocessor and microcomputer Lect. (1) Introduction to microprocessor and microcomputer Reference Books: 1. Ramesh S. Gaonkar, "Microprocessor Architecture, Programming and Application with the 8085". 2. Anokh Singh, A.K. Chhabra,Fundamentals

More information

Subject Code: Model Answer Page No: /25

Subject Code: Model Answer Page No: /25 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate

More information

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit. LIST OF PROGRAMS Prg. Name of the Program No. 1 Study of Pin Diagram of 8085 2 Study of Architecture of 8085 3 Study of 8085 Kit 4 Reverse Order 5 Exchange of memory blocks 6 Absolute Difference 7 Even

More information

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web:     Ph: Serial :. PT_EE-EC_A_Microprocessor_968 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: -452462 CLASS TEST 28-9 Subject : Microprocessors

More information

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller UNIT I SYLLABUS INTRODUCTION TO 8085 Intel 8085 Microprocessor architecture signals Addressing modes Instruction classification Instruction set Timing diagram ALP format Programming 8085 8-bit and 16-bit

More information

Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE

Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE 8085 -Internal Architecture - Addressing modes - Instruction set -Timing diagrams -Interrupts-Assembly language Programming 1. Internal Architecture of 8085 Microprocessor

More information

The 8085 Instruction Set

The 8085 Instruction Set 1 of 8 2/9/2011 5:14 PM The 8085 Instruction Set As I promised, in an earlier lesson, I am going to go through an in-depth explaination of ALL the 8085 instructions. Intel 88888 000 88888 5555555 A 8 8

More information

Its Assembly language programming

Its Assembly language programming 8085 Architecture & Its Assembly language programming Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati 8085 Era and Features 8085 Outline Block diagram (Data Path) Bus Structure Register Structure

More information

MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33

MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33 MSMF GATE CENTRE Sub: MICROPROCESSORS Time: 50min Date:20-12-16 Marks:33 1. Which interrupt has highest priority in 8085 microprocessor? a) INTR b) RST 4.5 c) RST 6.5 d) RST 7.5 2. In 8085 microprocessor,

More information

Example Programs for 6502 Microprocessor Kit

Example Programs for 6502 Microprocessor Kit Example Programs for 6502 Microprocessor Kit 0001 0000 0002 0000 GPIO1.EQU $8000 0003 0000 0004 0000 0005 0200.ORG $200 0006 0200 0007 0200 A5 00 LDA $0 0008 0202 8D 00 80 STA $GPIO1 0009 0205 00 BRK 0010

More information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microprocessor Subject Code: 17443 I m p o r t a n t I n s t r u c t i o n s t o e x a m i n e r s : 1) The answers should be examined by key words and

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 Topics 1. Introduction 2. Programming model of 8085 3. Instruction set of 8085 4. Example Programs 5. Addressing modes of 8085 6. Instruction & Data Formats of 8085

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor understands

More information

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web:     Ph: Serial : 01. ND_EE_NW_Microprocessors_150718 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 011-45124612 CLASS TEST 2018-19 ELECTRICAL

More information

COPYRIGHT IS NOT RESERVED BY AUTHORS. AUTHORS ARE NOT RESPONSIBLE FOR ANY LEGAL ISSUES ARISING OUT OF ANY COPYRIGHT DEMANDS

COPYRIGHT IS NOT RESERVED BY AUTHORS. AUTHORS ARE NOT RESPONSIBLE FOR ANY LEGAL ISSUES ARISING OUT OF ANY COPYRIGHT DEMANDS COPYRIGHT IS NOT RESERVED BY AUTHORS. AUTHORS ARE NOT RESPONSIBLE FOR ANY LEGAL ISSUES ARISING OUT OF ANY COPYRIGHT DEMANDS AND/OR REPRINT ISSUES CONTAINED IN THIS MATERIALS. THIS IS NOT MEANT FOR ANY

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks) MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. UNIT I THE 8085 & 8086 MICROPROCESSORS PART A (2 Marks) 1. Give the significance of SIM and RIM instruction available in 8085. [NOV/DEC 2006] Instruction

More information

PERIPHERAL INTERFACING Rev. 1.0

PERIPHERAL INTERFACING Rev. 1.0 This work is licensed under the Creative Commons Attribution-NonCommercial-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/in/deed.en

More information

ELECTRICAL ENGINEERING

ELECTRICAL ENGINEERING Serial : 1. JP_EE_Microprocessor_130618 CLASS TEST Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 011-45124612 ELECTRICAL ENGINEERING

More information

GATE Exercises on Microprocessors

GATE Exercises on Microprocessors 1 GATE Exercises on Microprocessors Abstract This problem set has questions taken from GATE papers over the last twenty years. Teachers can use the problem set for courses tutorials. 1) The clock frequency

More information

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK Subject Code : EC307 Subject Name : Microprocessor and Interfacing Year & Sem : III Year, V Sem

More information

LABORATORY MANUAL. PROGRAMME: B.Tech SEMESTER /YEAR: 3rd year 5th Semester SUBJECT CODE: CS592 SUBJECT NAME: Microprocessor & Microcontroller Lab

LABORATORY MANUAL. PROGRAMME: B.Tech SEMESTER /YEAR: 3rd year 5th Semester SUBJECT CODE: CS592 SUBJECT NAME: Microprocessor & Microcontroller Lab LABORATORY MANUAL PROGRAMME: B.Tech SEMESTER /YEAR: 3rd year 5th Semester SUBJECT CODE: CS592 SUBJECT NAME: Microprocessor & Microcontroller Lab DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING INSTITUTE OF

More information

G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering

G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering LECTURE NOTES MICROPROCESSORS AND INTERFACING PREPARED BY V.SHANTHI ASST PROFESSOR DEPT

More information

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND)

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND) 1. (a) Pin configuration of 8085 X 1 X 2 CLKOUT TRAP RST 7.5 RST 6.5 RST 5.5 INTR INTA SID SOD RESET IN RESET OUT T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution

More information

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes

More information

Practical Course File For

Practical Course File For Practical Course File For Microprocessor (IT 473) B.Tech (IT) IV-SEM Department of IT University Institute of Engineering & Technology Panjab University, Chandigarh Page 1 INTRODUCTION... 4 EXPERIMENT-1:

More information

ROEVER ENGINEERING COLLEGE

ROEVER ENGINEERING COLLEGE ROEVER ENGINEERING COLLEGE ELAMBALUR, PERAMBALUR- 621 212 DEPARTMENT OF INFORMATION TECHNOLOGY MICROPROCESSOR & MICROCONTROLLER 2 marks questions andanswers Unit I 1. Define microprocessor? A microprocessor

More information

EKT222 Miroprocessor Systems Lab 5

EKT222 Miroprocessor Systems Lab 5 LAB 5: Interrupts Objectives: 1) Ability to define interrupt in 8085 microprocessor 2) Ability to understanding the interrupt structure in the 8085 microprocessor 3) Ability to create programs using the

More information

LABORATORY 1 INTRODUCTION TO 8085 MICROPROCESSOR DEVELOPMENT SYSTEM BOARD

LABORATORY 1 INTRODUCTION TO 8085 MICROPROCESSOR DEVELOPMENT SYSTEM BOARD LABORATORY 1 INTRODUCTION TO 8085 MICROPROCESSOR DEVELOPMENT SYSTEM BOARD 1. INTRODUCTION TO 8085 MICROPROCESSOR DEVELOPMENT SYSTEMS. The basic components of the 8085 Microprocessor Development System

More information

PERIPHERAL INTERFACING Rev. 1.0

PERIPHERAL INTERFACING Rev. 1.0 This work is licensed under the Creative Commons Attribution-NonCommercial-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/in/deed.en

More information

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote Programming Book1 8051 Microcontroller Kit Rev 3.0 January, 016 016 Wichit Sirichote 1 Contents Overview...3 SAFTY INFORMATION...3 Tools...3 Experiment 1 Blinking LED...4 Experiment Binary number counting...9

More information

Micro Processor & Micro Controllers

Micro Processor & Micro Controllers Micro Processor & Micro Controllers 1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. 2. What are the basic units of microprocessor?

More information

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit

More information

EXAMPLE PROGRAMS 8085

EXAMPLE PROGRAMS 8085 P! EXAMPLE PROGRAMS 8085 Statement:Multiply the 8-bit unsigned number in memory location 2200H by the 8-bit unsigned number in memory location 2201H. Store the 8 least significant bits of the result in

More information

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT ELECTRONICS AND COMMUNICATION ENGINEERING CS 2252-MICROPROCESSOR AND MICROCONTROLLER COURSE NOTES UNIT I 8085 MICROPROCESSOR OBJECTIVES:.* Study

More information

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly. Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale

More information

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor Subject Name: Microprocessor and Microcontroller Year: 3 rd Year Subject Code: CS502 Semester: 5 th Module Day Assignment 1 Microprocessor

More information

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

1. What is Microprocessor? Give the power supply & clock frequency of 8085? 1. What is Microprocessor? Give the power supply & clock frequency of 8085? A microprocessor is a multipurpose, programmable logic device that reads binary instructions from a storage device called memory

More information

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

Programming Book for 6809 Microprocessor Kit

Programming Book for 6809 Microprocessor Kit Programming Book for 6809 Microprocessor Kit Wichit Sirichote, wichit.sirichote@gmail.com Image By Konstantin Lanzet - CPU collection Konstantin Lanzet, CC BY-SA 3.0, Rev1.2 March 2018 1 Contents Lab 1

More information

1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions.

1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. Downloaded from www.books4career.blogspot.com 1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. 2. What are the basic units

More information

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web:     Ph: Serial : LS2_EE_S_Microprocessors_2688 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: -452462 CLASS TEST 28-9 ELECTRICAL ENGINEERING

More information

LAB 1 Introduction to 8085 Microprocessor Development System Board

LAB 1 Introduction to 8085 Microprocessor Development System Board EKT222 - Microprocessor System LAB 1 LAB 1 Introduction to 8085 Microprocessor Development System Board Microprocessor Laboratory page 1 EKT222 - Microprocessor System LAB 1 8085 Microprocessor Development

More information

SIR.C.R.R.COLLEGE OF ENGINEERING DEPT. OF ELECTRONICS AND INSTRUMENTATION ENGG. EIE-328: MICROPROCESSOR LABORATORY 3/4 B.E. EIE: SECOND SEMESTER

SIR.C.R.R.COLLEGE OF ENGINEERING DEPT. OF ELECTRONICS AND INSTRUMENTATION ENGG. EIE-328: MICROPROCESSOR LABORATORY 3/4 B.E. EIE: SECOND SEMESTER SIR.C.R.R.COLLEGE OF ENGINEERING DEPT. OF ELECTRONICS AND INSTRUMENTATION ENGG. EIE-328: MICROPROCESSOR LABORATORY 3/4 B.E. EIE: SECOND SEMESTER (AS PER UNIVERSITY SYLLABUS) LIST OF EXPERIMENTS 1. UNDERSTANDING

More information

8085 HOW-TO GUIDE Interfacing 8251 with 8085

8085 HOW-TO GUIDE Interfacing 8251 with 8085 8085 HOW-TO GUIDE Interfacing 8251 with 8085 Contents at a Glance 8085 Trainer Board... 3 8251 (USART)... 3 Interfacing 8251 with 8085... 4 Pin Assignment with 8051... 5 Circuit Diagram to Interface 8251

More information

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5. DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6502- MICROPROCESSORS AND MICROCONTROLLERS UNIT I: 8085 PROCESSOR PART A 1. What is the need for ALE signal in

More information

UNIT 1 REFERENCE 1 PREPARED BY S.RAVINDRAKUMAR, LECT/ECE, CHETTINAD COLLEGE OF ENGG AND TECH, KARUR

UNIT 1 REFERENCE 1 PREPARED BY S.RAVINDRAKUMAR, LECT/ECE, CHETTINAD COLLEGE OF ENGG AND TECH, KARUR UNIT 1 REFERENCE 1 PROGRAMMING THE 8085 DEVELOPMENT OF PROGRAM A program is a sequence of instructions written to tell a computer to perform a specific function. The instructions are selected from the

More information

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit

More information

Microprocessor Architecture

Microprocessor Architecture Microprocessor - 8085 Architecture 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration

More information

MICROPROCESSOR AND MICROCONTROLLER

MICROPROCESSOR AND MICROCONTROLLER A Course Material on By Mr. C.JAGADEESHWARAN ASSISTANT PROFESSOR DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING SASURIE COLLEGE OF ENGINEERING VIJAYAMANGALAM 638 56 QUALITY CERTIFICATE This is to

More information

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU 534007 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER Faculty: B.Homer Benny (Section- A

More information

The due date for submitting this assignment has passed. 1) How many times will the following loop be executed? Depends on the initial value of A

The due date for submitting this assignment has passed. 1) How many times will the following loop be executed? Depends on the initial value of A X reviewer2@nptel.iitm.ac.in Courses» and Microcontrollers Unit 4 - Week 3 Announcements Course Ask a Question Progress Mentor Course outline How to access the portal Week 3 Assignment The due date for

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.

More information

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER OBJECT: EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER To understand the structure and operating instruction of the microprocessor trainer. INTRODUCTION: The MKT 8085 is a single-board microcomputer,

More information

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information

The advantages of registers over memory locations are as follows:

The advantages of registers over memory locations are as follows: Q.2 a. In a microprocessor, what is the use of a register? What are the advantages & disadvantages of using registers over a memory location? What is the speciality of register A (accumulator) over other

More information

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS Q.2 a. Draw pin diagram and signal group diagram of 8085 microprocessor. (8) b. List out the various categories of the 8085 instructions. Give examples of the instructions for each group. (8) Data transfer

More information

8085 Microprocessor Programs

8085 Microprocessor Programs 8085 Microprocessor Programs Courtesy : www.8085projects.info Rachit Agrawal 07-CE-52 Kalol Institute of Technology & Research Center PROGRAMS FOR 8085 MICROPROCESSOR PROGRAMS FOR LEARNERS 1. Store 8-bit

More information

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085 BLOCK DIAGRAM OF INTEL 8085 GURSHARAN SINGH TATLA Introduction to 8085 It was introduced in 1977. It is 8-bit microprocessor. Its actual name is 8085 A. It is single NMOS device. It contains 6200 transistors

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

MC68705P3 Bootstrap ROM

MC68705P3 Bootstrap ROM MC68705P3 Bootstrap ROM ;This is a listing of the Bootstrap ROM which resides in Motorola's MC68705P3 single chip ;micros. Its sole purpose is to program its own EPROM by copying the data from an external

More information

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUNE 2013

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUNE 2013 Q 2 (a) Distinguish between following pair of instructions of 8085 (i) LXI H, 123H and LHLD 1234H (ii) SPHL and PCHL (iii) XRA M and ORA M (iv) RRC and RLC (i)lxi H, 123H- Loads 16 bit data (123H) in register

More information

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085 mailme@gursharansingh.in BLOCK DIAGRAM OF INTEL 8085 mailme@maninderkaur.in Introduction to 8085 It was introduced in 1977. It is 8-bit microprocessor. Its actual name is 8085 A. It is single NMOS device.

More information

CS2259-MICROPROCESSOR AND MICROCONTROLLER LABORATORY MANUAL

CS2259-MICROPROCESSOR AND MICROCONTROLLER LABORATORY MANUAL CS2259-MICROPROCESSOR AND MICROCONTROLLER LABORATORY LABORATORY MANUAL FOR IV SEMESTER B.TECH / IT ACADEMIC YEAR: 2012-2013 (FOR PRIVATE CIRCULATION ONLY) ANNA UNIVERSITY, CHENNAI. NAME REG.NO BATCH :

More information

2003 LXI H, 42F2H ; this instruction store 42F2 in to the HL pair POP H ; store data from top of the stack to HL pair

2003 LXI H, 42F2H ; this instruction store 42F2 in to the HL pair POP H ; store data from top of the stack to HL pair (1) What is stack? Explain stack related instruction with example OR Give function of stack. OR What is stack? Explain the stack operations using examples. The stack is a group of memory location in the

More information

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output 8085 SATISH CHANDRA What is a Microprocessor? The word comes from the combination micro and processor. Processor means a device that processes whatever. In this context, processor means a device that processes

More information

INDEX. 1 Study of intel 8085 micropeocessor kit. 2 Program to find addition of two 8 bit no. 3 Program to find subtraction of two 8 bit no.

INDEX. 1 Study of intel 8085 micropeocessor kit. 2 Program to find addition of two 8 bit no. 3 Program to find subtraction of two 8 bit no. INDEX PROGRAM NO. NAME OF THE PROGRAM 1 Study of intel 8085 micropeocessor kit SIGNATURE 2 Program to find addition of two 8 bit no. 3 Program to find subtraction of two 8 bit no. 4 Program to find 1 s

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.

More information

Chapter 1: Basics of Microprocessor [08 M]

Chapter 1: Basics of Microprocessor [08 M] Microprocessor: Chapter 1: Basics of Microprocessor [08 M] It is a semiconductor device consisting of electronic logic circuits manufactured by using either a Large scale (LSI) or Very Large Scale (VLSI)

More information

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors Interface DAC to a PC Engineering 4862 Microprocessors Lecture 22 Cheng Li EN-4012 licheng@engr.mun.ca DAC (Digital-to-Analog Converter) Device used to convert digital pulses to analog signals Two methods

More information

CONTENTS. 1.0 Introduction Description of the Circuit Installation Connection of Power Supply 4

CONTENTS. 1.0 Introduction Description of the Circuit Installation Connection of Power Supply 4 1 CONTENTS PAGE NO 1.0 Introduction 2 2.0 Description of the Circuit 3 3.0 Installation 3 3.1 Connection of Power Supply 4 3.2 Connection of Output Signals to Relay Contacts 4 3.3 Interfacing to ESA Trainers

More information

Lecture Note On Microprocessor and Microcontroller Theory and Applications

Lecture Note On Microprocessor and Microcontroller Theory and Applications Lecture Note On Microprocessor and Microcontroller Theory and Applications MODULE: 1 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip

More information

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUN 2015

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUN 2015 Q.2 a. Draw block diagram schematic of 8085 bus structure. Explain buses/ communication lines used by 8085. (6) 8085 Bus organization structure: 8085 MPU and peripheral devices communicate through three

More information

MICROPROCESSOR BASICS AND RELATED TERMS

MICROPROCESSOR BASICS AND RELATED TERMS MICROPROCESSOR BASICS AND RELATED TERMS Microprocessor: Programmable integrated device that has computing ability and decision making capacity. It is the CPU of computer. A multipurpose, programmable,

More information

9/25/ Software & Hardware Architecture

9/25/ Software & Hardware Architecture 8086 Software & Hardware Architecture 1 INTRODUCTION It is a multipurpose programmable clock drive register based integrated electronic device, that reads binary instructions from a storage device called

More information

Instruction set of 8085

Instruction set of 8085 Instruction set of 05 /23/2016 ptkarule@rediffmail.com 1 Instruction set of 05 Instruction set is divided into various groups depending on the operations performed: 1. Data transfer 2. rithmetic 3. Logical

More information

MICROPROCESSOR LAB PROJECT EC 316

MICROPROCESSOR LAB PROJECT EC 316 MICROPROCESSOR LAB PROJECT EC 316 MADE BY:- MANISH MEENA 96/EC/13 RAHUL VASHIST 132/EC/13 FACULTY ADVISOR:- PROF. DHANANJAY V. GADRE ACKNOWLEDGEMENT We would sincerely like to thank Associate Prof. Dhananjay

More information

History and Basic Processor Architecture

History and Basic Processor Architecture History and Basic Processor Architecture History of Computers Module 1 Section 1 What Is a Computer? An electronic machine, operating under the control of instructions stored in its own memory, that can

More information

Computer Organization

Computer Organization Computer Organization (Instruction set Architecture & Assembly Language Programming) KR Chowdhary Professor & Head Email: kr.chowdhary@gmail.com webpage: krchowdhary.com Department of Computer Science

More information

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks) QUESTION BANK EE 6502 / Microprocessor and Microcontroller Unit I- 8085 Processor PART-A (2-Marks) YEAR/SEM : III/V 1. What is meant by Level triggered interrupt? Which are the interrupts in 8085 level

More information

CONTENTS. 1.0 Introduction Description of the Circuit Installation Demonstration Examples 3

CONTENTS. 1.0 Introduction Description of the Circuit Installation Demonstration Examples 3 1 CONTENTS PAGE NO 1.0 Introduction 2 2.0 Description of the Circuit 2 3.0 Installation 2 4.0 Demonstration Examples 3 4.1 Demonstration Program for MPS 85-3 Trainer 4 4.2 Demonstration Program for ESA

More information

EXPERIMENT-1 AIM: Familiarization of different keys of 8085 microprocessor kit and its memory map. APPARATUS: 8085 kit. DIAGRAM:

EXPERIMENT-1 AIM: Familiarization of different keys of 8085 microprocessor kit and its memory map. APPARATUS: 8085 kit. DIAGRAM: EXPERIMENT-1 AIM: Familiarization of different keys of 8085 microprocessor kit and its memory map. APPARATUS: 8085 kit. DIAGRAM: Reset VCT INT Shift C D E F RTG SI INSD DELD 8 9 A B DEL GO INS BM REL EMEM

More information

8259A - STUDY CARD 1. INTRODUCTION

8259A - STUDY CARD 1. INTRODUCTION 8259A - STUDY CARD 1. INTRODUCTION Electro Systems Associates Private Limited (ESA) manufactures trainers for most of the popular microprocessors viz 8085, Z-80, 8031 8086/88, 68000 and 80196. ESA offers

More information

CIS-331 Exam 2 Fall 2015 Total of 105 Points Version 1

CIS-331 Exam 2 Fall 2015 Total of 105 Points Version 1 Version 1 1. (20 Points) Given the class A network address 117.0.0.0 will be divided into multiple subnets. a. (5 Points) How many bits will be necessary to address 4,000 subnets? b. (5 Points) What is

More information

1 = Enable SOD 0 = Disable SOD. Serial Output Data. Fig.12.9 SIM Instruction Format

1 = Enable SOD 0 = Disable SOD. Serial Output Data. Fig.12.9 SIM Instruction Format Lecture-67 The 8085 Serial I/O Lines: SOD & SID The 8085 microprocessor has two pins specially designed for software control serial I/O. One is called SOD (serial output data) and the other is called SID

More information

CR EQU 0DH LF EQU 0AH ESC EQU 1BH

CR EQU 0DH LF EQU 0AH ESC EQU 1BH MYPIC.ASM Test Program to test a 8259A by John Monahan (monahan@vitasoft.org) V0.2 3/28/2010 First version V1.0 11/14/2010 Version to test final S-100 Board This is a simple test program to show the use

More information

SN8F5000 Family Instruction Set

SN8F5000 Family Instruction Set SONiX Technology Co., Ltd. 8051-based Microcontroller 1 Overview SN8F5000 is 8051 Flash Type microcontroller supports comprehensive assembly instructions and which are fully compatible with standard 8051.

More information

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution 1. (a) 1. (b) T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution Priority modes. 1) Fully Nested Mode : It is a general purpose mode. IR 0 highest priority IR 1 lowest

More information

EASWARI ENGINEERING COLLEGE DEPARTMENT OF ELECTRONICS AND COMMUNICATION QUESTION BANK - V SEMESTER ECE EC2304 MICROPROCESSORS AND MICROCONTROLLERS UNIT I 1. When the 8086 processor is in minimum mode and

More information

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI EE2354- MICROPROCESSORS AND MICROCONTROLLER UNIT I 8085 and 8086 PROCESSOR PART A 1. Define

More information

OMEN Alpha / issue 4. Technical Documentation

OMEN Alpha / issue 4. Technical Documentation OMEN Alpha / issue 4 Technical Documentation OMEN Computers - - - https://github.com/osmibity - - - Page: 1 INTRODUCTION == The OMEN Alpha computer kit is a low-cost computer trainer, based on the Intel

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within up to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the

More information

Assembly language Programming

Assembly language Programming Assembly language Programming Applications With out the assembly language programming microprocessor can not works. Instructions are the patterns which is require by the microprocessor to done any task.

More information