0% found this document useful (0 votes)
60 views

DR/ Hassan Shehata: Microprocessor Assignments 1, 2,3

This document contains 3 microprocessor assignments from Ain Shams University for a 3rd year computer and systems department student named Salem Ahmed Hassen. The first assignment involves writing assembly programs that perform addition and movement of data between registers and memory locations. The second assignment requires writing the same programs in machine language and indicating the contents of memory registers at different steps. The third assignment topic is an automated multi-stored car parking system using an Intel 8051 microcontroller.

Uploaded by

manhag
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

DR/ Hassan Shehata: Microprocessor Assignments 1, 2,3

This document contains 3 microprocessor assignments from Ain Shams University for a 3rd year computer and systems department student named Salem Ahmed Hassen. The first assignment involves writing assembly programs that perform addition and movement of data between registers and memory locations. The second assignment requires writing the same programs in machine language and indicating the contents of memory registers at different steps. The third assignment topic is an automated multi-stored car parking system using an Intel 8051 microcontroller.

Uploaded by

manhag
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

Faculty of Engineering -Ain-shams university

3rd year computer and systems department

Microprocessor Assignments
1 ,2,3

DR/ HASSAN SHEHATA

Student/ Salem Ahmed Hassen


section: 03
Assignment 1
.Write a program in assembly notation-
1) ADI byte // Acc = Acc+ immediate data.
----------------------------------------------------------------------------
2) ADD B // D = Acc+B
MOV D,A
------------------------------------------------------------------------------
3) DAD B //H&L = H&L + B&C
-------------------------------------------------------------------------------
4) MOV H,D //D,E = D,E + B,C
MOV L,E
DAD B
MOV D,H
MOV E,L
--------------------------------------------------------------------------------------
5) ADD M1 //M2 = M1 + Acc
MOV M2,A
6) LHLD M1 //M4 = M3 + B,C
DAD B
SHLD M2

-Write The program in Machine Language notations.


1) oxC6
ox36
2) ox80
ox57
3) ox09
4) ox62
ox6B
ox09
ox54
ox5D
5) ox86
ox77
6)ox2A
ox09
ox22
-Indicate memory and registers contents.

AC=‘00110101’ , ‘01000110’
after 1st instruction
AC=‘01111011’
AC=‘00110101’ , B=‘01000110’
after 2nd instruction
AC=‘01111011’ , D=‘01111011’ , B=‘01000110’
B=‘01000110’ , C=‘00000001’, H=‘00110101’ ,L=‘00000001’
after 3rd instruction
B=‘01000110’ , C=‘00000001’, H=‘01111011’ ,L=‘00000010’
B=‘01000110’ , C=‘00000001’, D=‘00110101’ ,E=‘00000001’ ,H=‘oxxx’ , L=‘oxxx’
after 4th instruction
B=‘01000110’ , C=‘00000001’, H=‘01111011’ ,L=‘00000010’, D=‘01111011’ ,E=‘ox20’
AC=‘01000110’ , M1=‘00000001’, M2=‘xxxxxxxx’
after 5th instruction
AC=‘01000111’ , M1=‘00000001’, M2=‘01000111’
M3=‘0100011000000001’, B=‘00110101’ ,C=‘00000001’ ,H=‘oxxx’ , L=‘oxxx’ ,
M4=‘xxxxxxxxxxxxxxxxxx’
after 6th instruction
M3=‘0100011000000001’, B=‘00110101’ ,C=‘00000001’ ,
H=‘01111011’ , L=‘00000010’ ,
M4=‘0111101100000010’
Assignment 3
DC Motor Controlling System using
PIC IC 61F84A
Automated multi-stored car parking system using intel 8051
Idea :Automatic multistoried car parking system helps to minimize the car parking area.
, it is become necessity to avoid the wastage of space . In places where more than 100 cars need to
be parked, this system proves to be useful in reducing wastage of space using intel 8051 . This
Automatic Car Parking System enables the parking of vehicles, floor after floor and thus reducing
the space used. Here any number of cars can be parked according to the requirement. This makes
the system modernized and even a space-saving one.
Main sections in this model are
3.1.   Display section
3.2.   Keyboard, indicator & Beeper section
3.3.   Lift & motor section
3.4.   Sensor section
3.5.   LCD section

The 8051 microcontroller generic part number actually includes a whole family of microcontrollers
that have numbers ranging from 8031 to 8751.
The features unique to microcontrollers:
1. Internal ROM and RAM
2. I/O ports with programmable pins
3. Timers and counters
4. Serial data communication
The 8051 architecture consists of these specific features:
1. 8 bit CPU with registers A and B
2. 16 bit PC &data pointer (DPTR)
3. 8 bit program status word (PSW)
4. 8 bit stack pointer(SP)
5. Internal ROM or EPROM (8751)of 0(8031)to 4k(8051)
6. Internal RAM of 128 bytes.
7. 4 register banks , each containing 8 registers
8. 80 bits of general purpose data memory
9. 32 input/output pins arranged as four 8 bit ports:P0-P3
10. Two 16 bit timer/counters:T0-T1
11. Two external and three internal interrupt sources
12. Oscillator and clock circuits
Assignment 2
The transitional shift of processors “Zilog Z80 - Intel 8086 – Motorola M68000 ”

Zilog Z80:
The Z80 offered many real improvements over the 8080, 16 registers (2 of them “index registers
offering indexing capabilities and an interrupt-vector register and memory refresh register to
provide special interrupt functions and dynamic memory capabilities.”)
it included a memory controller and 10 addressing modes
Less hardware required for power supply, clock generation and interface to memory and I/O
A non maskable interrupt (NMI) which can be used to respond to power down situations and/or
other high priority events (and allowing a minimalistic Z80 system to easily implement a two-level
interrupt scheme in mode 1).

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy