Practical No.15
Practical No.15
Practical No.15
DEVELOP A PROGRAM TO MOVE AND EXCHANGE DATA BETWEEN
DIFFERENT LOCATIONS IN ASSEMBLY LANGUAGE. SIMULATE IT IN
SOFTWARE AND HARDWARE.
APPRATUS REQUIRED:
• Desktop Computer/Laptop
• Software Keil 5 for programming
• Software Proteus 8.0 for simulation
• Software Mini pro programmer for programmer I.C
• RIMS Microcontroller Trainer DEV-2763E
• Connecting Wires
• Power Supply
PROCEDURE:
1. PROGRAMMING:
MOV P1,#00H
LOOP:
MOV A, #53H
MOV B, #6AH
MOV P1, A
MOV P1, B
MOV P3, B
ACALL DELAY
MOV P3, A
ACALL DELAY
MOV P3, B
ACALL DELAY
MOV A, #53H
MOV P1, A
ACALL DELAY
MOV P1, R0
ACALL DELAY
LJMP LOOP
DELAY:
MOV R1, #64H
AG:
MOV R2, #78H
SR:
MOV R3, #1EH
DJNZ R3, $
DJNZ R2, SR
DJNZ R1, AG
RET
END
• Go to the target 1 and right click on the “Source group ON” and select the “Add Exiting file to the
source group 1”
• Select the file of type “asm” and then select asm file
• Right click on Target 1 and then click on “Option for Target 1…”
• Change the frequencies on 12MHz and in output options click on “create HEX File” and press
“OK”
• Right click on the: Target 1”and click on “Build Target”
2. SOFTWARE SIMULATION:
I took required components from library and made connections as per circuit required. I loaded hex
file of above program in the circuit and run the circuit. I observed the working.
3. Hardware Simulation:
SAFETY PRECAUTION:
• During program development in Kiel file name and project name should be same.
• I.C should be inserted properly in Mini Pro programmer as well as in trainer in right direction.
• Power supply should not be applied directly to I.C carefully.
• Hold I.C in hand / in such a way that pins of I.C should not bend.