8085 Microprocessor Manual
8085 Microprocessor Manual
INDEX
Sr. No.
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.
Title
Introduction to DYNA-8085 microprocessor kit & its features Programming problems on Data Transfer Programming problems on Arithmetic Operations Programming problems on Looping techniques Programming problems on Time Delay and Counters Programming problems on Stack, Subroutines and Interrupts To interface 8255 study card with 8085 microprocessor To interface 8253 study card with 8085 microprocessor To interface 8257 study card with 8085 microprocessor To interface 8259 study card with 8085 microprocessor To interface Traffic Control study card with 8085 microprocessor
Page no.
Grade Signature
[3]
[4]
KEYPAD :
[5]
[6]
[7]
Date:
Signature: EXPERIMENT-02
Grade:
Label
[8]
Assignments 1. Load the content of the memory location 2100H directly to the accumulator then transfer it to register C. The contents of memory location 2100H is 05H. 2. Place 05H in Accumulator. Increment it by one and store result in the memory location 2400H. 3. Write ALP to copy the contents of sixteen byte memory location to another memory location. Source memory address = 2500H to 2515H Destination memory address = 2613H to 2628H 4. Write ALP to copy the contents of Accumulator to memory location 2400H to 2407H using register addressing mode.
[9]
[10]
[11]
[12]
[13]
Date:
Signature: EXPERIMENT-03
Grade:
Label
[14]
Assignments 1. Load the register B with 05H and register C with 04H. Subtract the contents of register B from that of register C. Check the status of borrow flag. Load the register B with 03H, register D with 07H and register H with 04H. Add the contents of all and store the result in register C. Repeat the problem with content of register B = FAH. Check the status of carry flag. Memory location 2500H contains value 68H and memory location 2600H contains value 19H. Add these numbers and store the result in memory location 2700H. Memory location 2500H contains value 53H and memory location 2600H contains value 25H. Subtract these numbers and store the result in memory location 2700H. Multiply the contents of accumulator by 4 without using MUL instruction.
2.
3.
4.
5.
[15]
[16]
[17]
[18]
[19]
Date:
Signature: EXPERIMENT-04
Grade:
STA 4300
[20]
Assignment 1. Write ALP to find the largest number from the given array. 2. Write ALP to sort the given array in ascending order. 3. Write ALP to sort the given array in descending order. 4. Write ALP to transfer the entire block of sixteen bytes of data stored at memory location 2090H to 29FH to a new memory location starting at 20C0H. 5. Write ALP to multiply the contents of Accumulator by 4 without using MUL instruction. 6. Write ALP to divide the contents of Accumulator by 4 without using DIV instruction.
[21]
[22]
[23]
[24]
[25]
Date:
Signature: EXPERIMENT-05
Grade:
Assignment 1. Write an ALP to generate 10 ms time delay using register pair. 2. Write an ALP to generate 1 second time delay using loop within loop technique. 3. Write an ALP to setup DOWN counter from 0FH to00H. 4. Write an ALP to setup UP counter from 00H to0FH.
NOTE : Use clock frequency = 3.0mhz and show time delay calculations.
[27]
[28]
[29]
[30]
Date:
Signature: EXPERIMENT-06
Grade:
PROGRAMMING PROBLEMS ON STACK, SUBROUTINES & INTERRUPTS Solved Example Write a logical program to count from 00-99 (Upcounter) in BCD. Use subroutine to generate a delay of 1 second between counts Solution
Address 2050H 2051H 2052H 2053H 2054H 2055H 2056H 2057H 2058H 2059H 2060H 2061H 2062H 2300H 2301H 2302H 2304H 2305H Hex Code 3EH 00H F5H CDH 00H 23H F1H C6H 27H C3H 51H 20H 76H 01H 24H F4H 0BH 79H DELAY: Label START: RPT: Mnemonics MVI A, 00H PUSH PSW CALL DELAY POP PSW ADI O1H DAA JMP RPT Comments Load count as 00 PUSH Call DELAY subroutine POP Decimal adjust after addition Unconditional jump to RPT Halt execution Load HL pair with delay count Decrement count
WAIT:
INDUS INSTITUTE OF ENGINEERING AND TECHNOLOGY MICROPROCESSOR AND INTERFACING B0H ORA B C2H JNZ WAIT Loop until B = 0 04H 23H C9H RET
Assignment 1. Write an ALP to demonstrate the effect of the following cases on zero flag. Load 00 in accumulator and check zero flag. Load 00 in accumulator, logically OR accumulator and then check zero flag. 2. Write an ALP to display HEX UP counter from 00H to 0FH. 3. Write an ALP to display HEX DOWN counter from 0FH to 00H.
[32]
[33]
[34]
[35]
Date:
Signature:
Grade:
EXPERIMENT-07 TO INTERFACE 8255 STUDY CARD WITH 8085 MICROPROCESSOR. 8255 Study Card: 1. This study card is interfaced with 8085 kit through 50 pin cable. 2. It consists of one 8255, with tags for all I/O ports, buffers to drive LEDs, Vcc and ground tags. 3. I/O addresses are as under Port A 30H, Port B 31H, Port C 32H, Control Reg. 33H. General Procedure: 1. Keep 8255 study card to the left side of the 8085 kit. 2. Connect 8255 card to 8085 kit through 50 pin cable. 3. Do not connect/remove card when power is ON. 4. Enter your program in RAM area (i.e. C000H ) for your experiment.
[36]
5. Execute the program and check working of 8255. 6. Similarly check working of 8255 in different modes by writing programs for the same.
Programs 1. 8255 is configured in mode 0. Ports A,B,C are in mode 0. All the ports are in output mode and data is transmitted to the respective ports. Procedure : Check the status of LEDs after execution of program. 2. 8255 is configured in mode 0. Ports A,B,C are in mode 0. All the ports are in input mode and data from all the three ports are read and then stored in different registers. Procedure : Write data byte by connecting tags of LEDs with ground. Execute the program and check the status of registers. 3. 8255 is configured in BIT SET/RESET mode. Use bit PC7. Procedure : Check the status of LED-7 of port C (PC7) after execution of program.
[37]
[38]
[39]
[40]
[41]
Date:
Signature:
Grade:
EXPERIMENT-08 TO INTERFACE 8253 STUDY CARD WITH 8085 MICROPROCESSOR. 8253 Study Card: 1. This study card is interfaced with 8085 kit through 50 pin cable. 2. It consists of one 8253, with tags for all counters, buffers to drive LEDs, Vcc and ground tags. 3. I/O addresses are as under Counter 0 30H, Counter 1 31H, Counter 2 32H, Command port 33H. General Procedure: 1. Keep 8253 study card to the left side of the 8085 kit. 2. Connect 8253 card to 8085 kit through 50 pin cable. 3. Do not connect/remove card when power is ON. 4. Enter your program in RAM area (i.e. C000H ) for your experiment.
[42]
5. Execute the program and check working of 8253. 6. Similarly check working of 8253 in different modes by writing programs for the same.
Programs 1) The counter is in mode 0, i.e. Interrupt on terminal count. Binary counter 0 is selected. Read /load lower 8-bits and then higher 8-bits. Procedure: Connect pulser key to clock, gate to Vcc, connect RST 6.5 to OUT 0 after executing the program and then press pulser key. Press the pulser key according to data and the interrupt service routine executes. 2) The counter is in mode 1, i.e. programmable one shot. Binary counter 0 is selected. Read /load lower 8-bits only. Procedure : Connect pulser key to clock, gate to ground. Execute the program. Connect the gate to Vcc through a tag and start giving the pulse. The output of the counter will go low for count period and then it begins to glow again. 3) The counter is in mode 2, i.e. rate generator. Binary counter 0 is selected. Read /load high order 8-bits only. Procedure : Connect clock 0 to pulser key. Check mode 2 operation.
[43]
4) The counter is in mode 3, i.e. square wave generator. BCD counter 0 is selected, load lower 8-bit count first followed by higher 8-bit count. Procedure : Connect gate to low, execute the program and then make it high ( Vcc). Give clock pulses.
[44]
[45]
[46]
[47]
Date:
Signature:
Grade:
EXPERIMENT-09 TO INTERFACE 8257 STUDY CARD WITH 8085 MICROPROCESSOR. 8257 Study Card: 1. This study card is interfaced with 8085 kit through 50 pin cable. 2. It consists of two 8257, buffers to drive LEDs, Vcc and ground tags. 3. I/O addresses are as under Selection Address ADD_CH0 30H CNT_CH0 31H ADD_CH1 32H CNT_CH0 33H ADD_CH2 34H CNT_CH0 35H ADD_CH3 36H CNT_CH0 37H MODE_PORT 38H General Procedure:
[48]
1. 2. 3. 4.
Keep 8257 study card to the left side of the 8085 kit. Connect 8257 card to 8085 kit through 50 pin cable. Do not connect/remove card when power is ON. Enter your program in RAM area (i.e. C000H ) for your experiment. 5. Execute the program and check working of 8257. 6. Similarly check working of 8257 in different modes by writing programs for the same.
Programs 1) To study 8257 in DMA read mode. 2) To study 8257 in DMA write mode.
[49]
[50]
[51]
Date:
Signature: EXPERIMENT-10
Grade:
TO INTERFACE 8259 STUDY CARD WITH 8085 MICROPROCESSOR. 8259 Study Card: 1. This study card is interfaced with 8085 kit through 50 pin cable. 2. It consists of two 8259, buffers to drive LEDs, Vcc and ground tags. 3. I/O addresses are as under ICW1-30H, ICW2-31H for master 8259 General Procedure: 1. 2. 3. 4. Keep 8259 study card to the left side of the 8085 kit. Connect 8259 card to 8085 kit through 50 pin cable. Do not connect/remove card when power is ON. Enter your program in RAM area (i.e. C000H ) for your experiment. 5. Execute the program and check working of 8259.
[52]
6. Similarly check working of 8259 in different modes by writing programs for the same. Programs 1) To study 8259 in stand alone mode. Procedure : Check the status of LEDs after execution of program.
[53]
[54]
Date:
Signature: EXPERIMENT-11
Grade:
TO INTERFACE TRAFFIC CONTROL STUDY CARD WITH 8085 MICROPROCESSOR. Traffic Study Card: 1. This study card is interfaced with 8085 kit through 50 pin cable. 2. It consists of buffer, 4 latches and LEDs. 3. I/O addresses are as under Port 01 20H Port 02 28H Port 03 30H Port 04 38H General Procedure: 1. Keep Traffic control study card to the left side of the 8085 kit. 2. Connect Traffic control card to 8085 kit through 50 pin cable. 3. Do not connect/remove card when power is ON.
[55]
4. Enter your program in RAM area (i.e. C000H) for your experiment. 5. Execute the program and check working of Traffic control. Programs 1) Operate port-01 in traffic control sequence.
[56]
[57]
Date:
Signature:
Grade:
[58]