Professional Documents
Culture Documents
MCMP Lab Record 1919106016
MCMP Lab Record 1919106016
Name. : Balaji G
Branch : IT
Semester :4
Certified that this is the Bona-fide Record of the work done by the
above Student in U19IT406 – MICROPROCESSORS LAB during the
year 2020-2021.
AIM:
To study the component layout and functional block diagram of 8085-EB trainer.
Microprocessor Lab
DESCRIPTION:
The functional block diagram provides the complete system design in blocks. The
component layout is also provided for the reference. Referring to the figure F1.1 the
following explanation outlines the working of the trainer as a system.
The CPU gets the clock from the clock generator which is a crystal at 6.144 MHz. The
reset*, interrupt lines, and data lines are also inputs to the CPU. The CPU outputs comprise
the clock, reset, address lines, data lines and control lines.
The lower order address lines are latched using ALE and thus demultiplexed from the
data lines. The higher order address lines are taken directly from the 8085. These two sets of
lines make the 16 bit address bus. The 8 data lines are taken directly from the 8085.
iii) Control bus:
The other bus is the control bus. The control signals required for proer operation of the
system are the IOR* (I/O read), IOW*(I/O write), MR*(Memory Read) and MW*(Memory
Write). The peripherals on the trainer are all I/O mapped and hence to input from or output to
a peripheral IOR* and IOW* are utilized. The memory read and memory write signals are
used to enable an EPROM & RAM and write into a RAM respectively. These signals are
generated from the IO/M* and WR*, RD* signals.
iv) Chip select logic:
The selection of any peripheral or memory requires a CS* to enable that particular
device. This requires address decoding, both memory and I/O. All the above signals address,
data, control and chip select are routed to all the peripherals and memory devise in thee
trainer.
The block diagram shows a 21 keys keyboard and an eight digit display. This is the unit
with which the user communicates with the system. The keypad and display are interfaced
with the CPU with the help of an 8279, I/O mapped with the CPU. The display is driven by
display drivers driven by the KDC (8279). The keyboard lines are encoded and sent to the
KDC.
The 8253 TIMER for baud clock generation and single step operation; the 8251 USART
for serial communication with associated drivers for interference immunity and overcoming
attenuation; the 8255 PPI for TTL I/O drivers; the audio cassette interface are also depicted
in the block diagram.
CONCLUSION:
Thus the component layout and functional block diagram of 8085-EB trainer
is studied.
AIM
To write an assembly language program to perform
1. Addition on two 8 bit numbers 2.
Subtraction on two 8-bit numbers.
3. Multiplication on two 8-bit numbers
4. Division on two 8-bit numbers
APPARATUS REQUIRED:
No
Is carry
flag
set?
YES
CARRY =CARRY+1
STOP
PROGRAM:
OBSERVATION:
2. AB CD 78 01
No
Is carry
flag
set?
YES
STOP
PROGRAM
OBSERVATION
Section:IT-A
Microprocessor Lab
Start
PRODUCT=PRODUCT+MULTIPLICAND
No
Is the carry
flag set?
Yes
CARRY=CARRY+1
Multiplier =Multiplier- 1
NO
Is Multiplier
is =0?
YES
2. AC 05 5C 03
Start
Yes
Is
CR=1
No
Sub divisor from dividend
Stop
PROGRAM Division of two 8-bit numbers
Name:DILOSHAA SRI.R Reg.No:1919106024 Section:IT-A
Microprocessor Lab
2. 15 BD 09 00
RESULT
16-BIT MANIPULATIONS
AIM
To write an assembly language program to perform
1. Addition of two 16- bit numbers 2.
Subtraction of two 16-bit numbers.
3. Multiplication of two 16-bit numbers
APPARATUS REQUIRED:
Double Add HL to DE
No
Is carry
flag
set?
YES
CARRY =CARRY+1
STOP
PROGRAM:
START
Subtract higher order value of minuend from the subtrahend with borrow
No
Is carry
flag
set?
YES
STOP
OBSERVATION
2. 28 92 60 45 C8 4C 00
NO
I Is carry
flag
set?
YES
Carry = carry + 1
Multiplier = multiplier
–1
NO Is
multipli
er=0?
YES
STOP
Name:DILOSHAA
SRI.R Reg.No:1919106024
Section:IT
-A
PROGRAM
Name:DILOSHAA SRI.R Reg.No:1919106024 Section:IT-A
Microprocessor Lab
RESULT
The assembly language program for addition, subtraction and multiplication of two
16-bit numbers are performed and the results are verified with the manual work.
AIM
APPARATUS REQUIRED
Start
Multiply MS digit by 10
Stop
PROGRAM BCD to Binary Conversion
OBSERVATION
Start
Stop
Sub Routine DIVSUB
DIVSUB
Move FF to B register
No
Is
Carry=1
Yes
DIVSUB
PROGRAM Binary to BCD Conversion
OBSERVATION
AIM:
To write an assembly language program for decimal arithmetic using 8085 & bit
manipulation of 8085
APPARATUS REQUIRED
FLOW CHART
Start
Convert to decimal
Store the
result
Move A register to H
register and add D
register and carry
Name:DILOSHAA SRI.R Reg.No:1919106024 Section:IT-A
Microprocessor Lab
Convert to decimal
Stop
PROGRAM Decimal Arithmetic
OBSERVATION
Sl.No
Input Memory Input Data Output Memory Output Data
Location Location
1. 4200 72 4202 71
Name:DILOSHAA SRI.R Reg.No:1919106024 Section:IT-A
Microprocessor Lab
4201 99 4203 01
FLOW CHART
Start
Storehe
t result
Store resultmemory
in location
Stop
PROGRAM: Bit Manipulation
OBSERVATION
RESULT
Thus the assembly language program for decimal arithmetic and bit manipulation
using 8085 is executed successfully.
AIM:
To study the component layout and functional block diagram of 8086/88-LCD trainer.
DESCRIPTION:
The functional block diagram provides the complete system design in blocks. The
component layout is also provided for the reference. Referring to the figure F1.1 the
following explanation outlines the working of the trainer as a system.. To locate the
individual components refer to the component layout.
The CPU gets the clock from the clock generator 8284 which uses a crystal at 15 or 14.318
MHZ and if it is an 8 MHZ trainer, 24 MHZ. The reset, interrupt lines, and data lines are also
inputs to the CPU. The CPU output5s comprise the Address lines, Data lines and control
lines.
ii) Address and Data Bus:
The 16 bit 8086 bidirectional multiplexed ADDRESS / Data lines and the higher order 4
address lines are brought to latches and buffers. The address lines are latched using ALE and
thus demultiplexed from the data lines. The data lines are buffered through octal transceiver.
The outputs of these IC comprised the 20 bit address and 16/8 bit data bus as the case may
be. The direction of data transfer is decided by direction selection input of transceiver which
is the DT/R* output of the CPU
iii) Control Bus
The other bus is the control bus. The Control signals required for proper operation of the
systems are the IOR* (I/O Read). IOW* (I/O Write), MR* (Memory Read) and MW*
(Memory Write) signals. The Peripherals on the trainer are all I/O mapped and hence to
input from or out[put to a peripheral, IOR* and IOW* are utilized. The MR* and MW* signals
are used to output enable an EPROM & RAM respectively. These signals are generated from
the IO*/M or M/IO* and WR*, RD* signals in minimum mode operation.
Name:DILOSHAA SRI.R Reg.No:1919106024 Section:IT-A
Microprocessor Lab
iv) Chip Select Logic
The selection of any peripheral or memory requires a chip select signal CS* to enable that
particular device. This requires address decoding, both memory and I/O where in decoding is
separately achieved for EPROM,RAM and I/O devices. All the above signals- address, data,
control and chip select are routed to all the peripherals and memory devices in the trainer.
The block diagram shows a AT keyboard nd LCD display. Thia is the unit with the user
communicates with thw system 16 * 2 LCD module is used for displaying the command and
data. IBM-PC keyboard is used for entering data and control commands. 16x2 LCD module
is used for displaying the commands and data. Eight digits of seven segment displays are
available as an optional peripheral.
vi) Memory
The block diagram shows two sockets for RAM both odd and even in the case of 8086
and 2 RAM sockets for contiguous locations in memory in the case of 8088. Two sockets are
provided for RAM expansion. The basic EPROM capacity available is 16 KB arranged as
odd and even banks in the case of 8086 and continuous locations in the case of 8088.The
remaining EPROM capacity which is 16 KB can be availed as an optional facility. Each of
the EPROM sockets can support 8 /16 / 32 KB memory devices and the RAM sockets 8 / 32
KB devices.
vii) Peripherals
CONCLUSION
Thus the component layout and functional block diagram of 8086 trainer is
studied.
ADDITION AND SUBTRACTION
APPARATUS REQUIRED
FLOW CHART
Start
Stop
OBSERVATION:
FLOW CHART
Start
AX=[AX]+[1104]
AX=[1102]
Move AH to [1204]
Stop
OBSERVATION:
FLOW CHART
Start
Stop
OBSERVATION:
FLOW CHART
Start
Move AX to [1400],[1400]=[AX]
MSW of Subt
rachend in [AX]
AX=[1302]
Store resul
t in [1402]
Move AH to [1404]
Stop
OBSERVATION:
RESULT:
AIM:
To write an assembly language program to perform 16-bit multiplication and division
using 8086.
APPARATUS REQUIRED
FLOW CHART
Start
Stop
OBSERVATION:
FLOW CHART
Start
Stop
OBSERVATION:
RESULT:
Thus the assembly language program for 16-bit multiplication and division has been
performed.
STRING MANIPULATION
AIM:
To write an 8086 based assembly language program to move a string from one
location to another location
APPARATUS REQUIRED:
• Personal Computer
• MASM assembler
PROGRAM:
EXTRA SEGMENT
EXTRA1 EQU 6000H
DES EQU 2000H
EXTRA ENDS
CODE SEGMENT
ORG 1000H
CODE ENDS
END START
RESULT:
Thus the 8086 based assembly language is written to search and replace a string and
to move a string from one location to another location.
AIM:
To write an 8086 based assembly language program to read a code and scan code
from keyboard and display control using a MASM assembler in 8086
APPARATUS REQUIRED:
• Personal Computer
• MASM assembler
PROCEDURE:
• The program is typed through the keyboard. • It is then executed in the DOS prompt
Name:DILOSHAA SRI.R Reg.No:1919106024 Section:IT-A
Microprocessor Lab
• The .obj and .exe files are created.
• The files are then debugged.
• The output is viewed in the screen by specifying the starting address of the program.
PROGRAM:
CODE SEGMENT
RESULT:
Thus the display control has been implemented using a MASM assembler in 8086 and
also keyboard control has also been implemente
FILE MANIPULATION
AIM:
To create and delete a file using a MASM assembler in 8086.
APPARATUS REQUIRED:
• Personal Computer
• MASM assembler
PROCEDURE:
• The program is typed through the keyboard. • It is then executed in the DOS prompt
• The .obj and .exe files are created.
• The files are then debugged.
• The directory content is then viewed to see if the file is created or deleted.
PROGRAM:
• FILE DELETION
RESULT:
Thus the 8086 based assembly language is written to create and delete a
EXPERIMENTS WITH 8255 IN MODE 0 USING 8085
AIM:
Apparatus required:
Program I
Program II
Getting Input through Port A and Send the data to port B output port
Memory Machine
Mnemonics Comments
Address Label Code
Opcode Operand Opcode Operand
4100 3E 90 MVI A,90 ;initialize Port
A as input
4102 D3 C6 OUT C6 ;Out to Control
register
4104 DB C0 IN C0 ;Read port A
4106 D3 C2 OUT C2 ;out to port B
B7 B6 B5 B4 B3 B2 B1 B0
0 -RESET
1 - SET
Memory Machine
Mnemonics
Address Label Code Comments
Opcode Operand Opcode Operand
4100 3E 90 MVI A,90 ;Initialize Port
A as input
4102 D3 C6 OUT C6 ;Out to Control
register
4104 3E 80 MVI A,80 ;Read input data
To send data to port C in mode 0 and set or Reset 1 Bit in BSR Mode.
Memory Machine
Mnemonics
Address Code Label Comments
Opcode Operand Opcode Operand
4100 3E 90 MVI A,90 ;Initialize Port
A as input
4102 D3 C6 OUT C6 ;Out to Control
register
4104 3E 01 MVI A,01 ;Move 01 To
Acc
4106 D3 C4 OUT C4 ;Out to Port C
Observation:
Result:
Thus experiments with 8255 in mode 0 have been carried out successfully.
EXPERIMENTS WITH 8255 IN MODE 0 USING 8086
AIM:
APPARATUS REQUIRED:
Program I
Getting Input through Port A and Store data in memory location
Memory
Machine
Address Mnemonics Comments
Code
4100 BE 00 15 MOV SI, 1500H ;initializes SI
with 1500H
4103 B0 90 MOV AL, 90 Loads AL with
90
4105 E6 C6 OUT C6, AL ;out to control
register
4107 E4 C0 IN AL, C0 ;read port A
Name:DILOSHAA SRI.R Reg.No:1919106024 Section:IT-A
Microprocessor Lab
4109 88 04 MOV [SI], AL ;move AL to
[SI]
410B F4 HLT ;end of program
Program II
Getting Input through Port A and Send the data to port B output port
Memory
Machine
Address Mnemonics Comments
Code
4100 B0 90 MOV AL, 90H ;initializes port
A
4102 E6 C6 OUT C6, AL ;out to control
register
4104 E4 C0 IN AL, C0 ;read port A
4106 E6 C2 OUT C2, AL ;out to control
register
Memory Machine
Mnemonics Comments
Address Code
4100 B0 90 MOV AL, 90 ;initializes port
A
4102 E6 C6 OUT C6, AL ;out to control
register
4104 B0 80 MOV AL, 80 ;loads AL with
80
4106 E6 C4 OUT C4, AL ;out to control
register
4108 F4 HLT ;end of program
Program IV :
To send data to port C in mode 0 and set or Reset 1 Bit in BSR Mode.
Memory
Machine
Address Mnemonics Comments
Code
4100 B0 80 MOV AL, 80 ;initializes port A
4102 E6 C6 OUT C6, AL ;out to control
register
4104 B0 01 MOV AL, 01 ;moves AL with 01
4106 E6 C4 OUT C4, AL ;out to control
register
4108 B0 07 MOV AL, 07 ;moves AL with 01
410A E6 C6 OUT C6, AL ;out to control
register
410C F4 HLT ;end of program
OSERVATION:
Result:
Thus experiments with 8255 in mode 0 have been carried out successfully.
KEYBOARD/DISPLAY INTERFACE WITH THE 8085
AIM :
To interface a keyboard and a display with the 8085 microprocessor and
write assembly language programs for
1. Displaying a character.
2. Reading the scan code of a key.
APPARATUS REQUIRED :
THEORY :
INTEL-8279 Keyboard and Display controller (KDC) is responsible for the Keyboard
/ Display interface of Micro-85EB. It’s main features are
The control signals of the 8279 with the CPU are Active low read input(/RD), Active
low write input(/WR), Reset input(RST), Active low chip select(/CS), Buffer address
select(A0), Interrupt request output(IRQ). The functional definition depending upon the
status of the above signals are.
1 0 0 Read status
1 1 0 Write command
Programming Sequence :
The Keyboard and the Display controller requires proper loading of the following
command words for satisfactory operation…
1. Select the display mode, with the proper number of digits and entry mode.
2. Select the keyboard mode whether encoded, decoded etc..
3. Clear the digits of the display.
4. Select row address for display and auto – increment or non-auto-increment
mode.
5. Write the data to be displayed in the correct segment definition into the data
buffer, or input the key code after the keyboard read operation in the data
buffer.
(Steps 1. to 4. are to be performed with the control section and step 5. is the actual
data section).
SEGMENT DEFINITION
a
f b
g
e c
Data BUS D7 D6 D5 D4 D3 D2 D1 D0
8279 output A3 A2 A1 A0 B3 B2 B1 B0
Segments d c b a dp e g f
8279 Commands
0 0 0 D D K K K
DD – Display mode
1 0 0 AI A A A A
automatically.
3) CLEAR DISPLAY
1 1 0 CD CD CD CF CA
CD CD CD
0 x
- A0- A3 B0-B3 = 00 = ( 0000 0000 )
0
x - A0- A3 B0-B3 = 00 = ( 0000 0000 )
0
x - A0- A3 B0-B3 = 20 = ( 0010 0000 )
1 x - A0- A3 B0-B3 = FF = ( 1111 1111 )
Enables clear display when CD = 1. The rows of display RAM are cleared by the code set
by lower CDbits. If CD = 0 contents of RAM will be displayed
DU S/E O U F N N N
no of characters in FIFO
FIFO full
Display unavailable
1-available
0-unavailable
FIFO RAM:
0 1 0 AI * A A A
Initial RAM
address
Not used
Auto increment
mode AI
1-enabled
0-disabled
PROGRAMS :
1. Displaying a character.
OBJECTIVE
To initialize 8279 and to display the required character in the required digit of the
display
FLOWCHART
START
Write the data to be displayed, which is found in the data bus and display
correspondence given below.
STOP
PROGRAM
OBJECTIVE
FLOWCHART
START
Check for a Key press by checking whether the LS 3 bits is less than 0111
because any key closure will increment the row indicated by AAA bits.
NO
Closure
met
YES
Write the command word for Reading the FIFO RAM and then read the
FIFO RAM
STOP
PROGRAM
OSERVATION:(DISPLAY)
OSERVATION:(KEYBOARD)
RESULT:
Thus the 8279 Keyboard / Display controller is interfaced with the 8085
microprocessor and programs for displaying a character and reading the key code of the key
pressed are executed and verified.
KEYBOARD/DISPLAY INTERFACE WITH THE 8086
AIM:
To interface a keyboard and a display with the 8085 microprocessor and
write assembly language programs for
1. Displaying a character.
2. Reading the scan code of a key.
APPARATUS REQUIRED :
1. Displaying a character.
PROGRAM
2. Read a key:
RESULT :
Thus the 8279 Keyboard / Display controller is interfaced with the 8086 microprocessor and programs for displaying a
character and reading the key code of the key pressed are executed and verified
AIM:
To generate square waveform using 8253 timer interface card.
APPARATUS REQUIRED:
THEORY:
The 8253 is organized, as three 16-bit counters each with a count rate of up to
2MHZ.The three counters are identical in operation. Each counter consists of a single, 16-bit,
pre-settable, down counter. The counter may operate in either binary or BCD and its input
gate and output are configured by the selection of modes stored in the control register.
The counters are fully independent and each can have separate mode configuration
and counting operation. The reading of the contents of each counter is available to the
programmer with simple READ operations for event counting applications.
The control word register controls the operation mode of each counter, selection of
binary or BCD counting and the loading of each count register depending upon the
information stored in it.
Program – 1
Memory
Opcode /
Address Mnemonics Comments
operands
4100 3E
MVI A, 36 Move the data 36 to the accumulator
4101 36
4102 D3 Initialize timer in channel-0 and in
OUT CE
4103 CE mode-2
4104 3E
MVI A, 0A Move the data 0A to the accumulator
4105 0A
4106 D3 OUT C8
Move LSB to counter
4107 C8
4108 AF
XRA A Clear the accumulator
4109 D3
410A C8 OUT C8 Move MSB to counter
410B 76 HLT Halt the execution
RESULT:
APPARATUS REQUIRED:
THEORY:
The 8253 is organized, as three 16-bit counters each with a count rate of up to
2MHZ.The three counters are identical in operation. Each counter consists of a single, 16-bit,
pre-settable, down counter. The counter may operate in either binary or BCD and its input
gate and output are configured by the selection of modes stored in the control register.
The counters are fully independent and each can have separate mode configuration
and counting operation. The reading of the contents of each counter is available to the
programmer with simple READ operations for event counting applications.
Memory
Opcode /
Address Mnemonics Comments
operands
4100 B0 AL,
MOV
4101 36 36H
4102 E6 Initialize timer in channel-0 and in
OUT CE,AL
4103 CE mode-2
4104 B0
MOV AL, 0A
4105 0A
4106 E6 OUT C8,AL
Move LSB to counter
4107 C8
4108 B0
MOV AL,00H
4109 00
410A E6
OUT C8,AL Move MSB to counter
410B C8
410C F4 HLT Halt the execution
RESULT:
Thus Square waveform and pulse waveform are generated using timer interface 8253.
AIM:
To transmit and receive a character using 8251 interface card.
APPARATUS REQUIRED:
Name:DILOSHAA SRI.R Reg.No:1919106024 Section:IT-A
Microprocessor Lab
THEORY:
The 8251A is used here as a peripheral device for serial communication and is
programmed by the CPU to operate using virtually any serial data transmission technique.
The USART accepts data characters from the CPU in parallel format and then converts them
into a continuous serial data stream for transmission. Simultaneously, it can receive serial
data streams and convert them into parallel data characters for the CPU. The CPU can read
the complete status of the USART at any time. These include data transmission errors and
control signals.
The 8251A commands are written into two registers, namely the mode instruction
register and the command instruction register. These two registers cannot be read from.
This format defines the general operational characteristics of the 8251A. it must
follow a reset operation immediately. This format defines the baud rate, character length,
parity and stop bits required to work with asynchronous data communication. By selecting
the baud factor to sync mode the 8251A can be made to operate in the synchronous mode.
This format defines a status word that is used to control the actual operation of
8251A. all control words written into 8251a after the mode instruction will load the
command instruction. The command instruction can be written into 8251A at any time in the
data block during the operation of the 8251A. to return to the mode instruction format, a
master reset is required. The command instruction format controls the actual operation of the
selected format.
It is the standard developed by EIA (Electronics industries Association) for serial data
transfer. The standard follows the following voltage level i.e., logic high – 12V and for a
logic low +12V.
Memory
Opcode /
Address Mnemonics Comments
operands
1000 3E move the 36 to
MVI A, 36
1001 36 accumulator
1002 D3 out the accumulator
OUT CE
1003 CE data to CE
1004 3E move the 0A to
MVI A,0A
1005 OA accumulator
1006 D3 OUT C8 out the accumulator
1007 C8 data to C8
1008 3E move the 00 to
MVI A, 00
1009 00 accumulator
100A D3 out the accumulator
OUT C8
100B C8 data to C8
100C 3E move the 4E to
MVI A, 4E
100D 4E accumulator
100E D3 ; out the accumulator
OUT C2
100F C2 data to C2
1010 3E move the 37 to
MVI A,37
1011 37 accumulator
1012 D3 ; out the accumulator
OUT C2
1013 C2 data to C2
1014 37 move the 41 to
MOV A,41
1015 41 accumulator
1016 D3 out the accumulator
OUT CO
1017 CO content to C0
1018 CD
INT 2
1019 O2
To receive data:
RESULT:
AIM:
To transmit and receive a character using 8251 interface card.
APPARATUS REQUIRED:
THEORY:
Name:DILOSHAA SRI.R Reg.No:1919106024 Section:IT-A
Microprocessor Lab
The 8251A is used here as a peripheral device for serial communication and is
programmed by the CPU to operate using virtually any serial data transmission technique.
The USART accepts data characters from the CPU in parallel format and then converts them
into a continuous serial data stream for transmission. Simultaneously, it can receive serial
data streams and convert them into parallel data characters for the CPU. The CPU can read
the complete status of the USART at any time. These include data transmission errors and
control signals.
The 8251A commands are written into two registers, namely the mode instruction
register and the command instruction register. These two registers cannot be read from.
This format defines a status word that is used to control the actual operation of
8251A. all control words written into 8251a after the mode instruction will load the
command instruction. The command instruction can be written into 8251A at any time in the
data block during the operation of the 8251A. to return to the mode instruction format, a
master reset is required. The command instruction format controls the actual operation of the
selected format.
It is the standard developed by EIA (Electronics industries Association) for serial data
transfer. The standard follows the following voltage level i.e., logic high – 12V and for a
logic low +12V.
To initialize 8253 & 8251 & to check the transmission & reception of a character.
The program first initializes the 8253 to give an o/p clk frequency of 150KHZ at
channel 0 which will give a 9600 band rate of 8251.Then 8251 is also initialized with data
4E & 37.
Make sure that the o/p of channel 0 is connected to transmitter clk & receiver clk of
8251 connect the RTS with CTS & TXD with RXD by setting the jumpers accordingly.
Execute the program starting from location 4100(Hex). It instructs the 8251 to send data 41
serially & it also resets the system. Now execute the following program which receives the
character 41H & stores it at location 1250H.
Memory
Opcode /
Address Mnemonics Comments
operands
1000 B0 Move the content 36
1001 MOV AL,36
36 to AL
1002 E6 Move the lower
OUT CE,AL accumulator content
1003 CE
to CE
1004 B0 Move the 0010
1005 MOV AL,10
10 content to AL
1006 E6 Move the AL content
1007 OUT C8,AL
C8 to C8
1008 B0
1009
MOV AL,00 Move the 00 to AL
00
100A E6 Move the AL content
100B
OUT C8,AL
C8 to C8
100C B0 Move the 4E to lower
100D MOV AL,4E
4E accumulator
100E E6 Move the lower
100F OUT C2,AL
C2 content to C2
1010 B0 Move the content 37
MOV AL,37 to lower ac23c
1011 37
content
1012 E6 Out the AL content to
1013 OUT C2,AL
C2 C2
1014 B0 Move the content 41
1015 MOV AL,41
41 to AL
1016 E6 Out the AL content to
1017 OUT C0,AL
C0 C0
1018 C0 2
1019
INT
02 Halt the program
101A
HALT
FE
Program : To Receive data
Memory
Opcode /
Address Mnemonics Comments
operands
1200 E4 Move the content 36
1201 CO MOV AL,36
to AL
1202 BB 50 MOV BX,1250 Move the content to
RESULT:
AIM:
To study the component layout and functional block diagram of 8051-EB trainer.
DESCRIPTION:
The CPU gets the clock from the clock generator which is a crystal at 12 MHz. The
reset, interrupt lines, and data lines are also inputs to the CPU. The CPU outputs
comprise the address lines, data lines and control lines.
ii) Address and Data Bus
In 8051, Port 0 is (also) the multiplexed low-order address and data bus. Port 2 emits
the high-order address byte during accesses to external program and data memory. The
multiplexed address/data lines are brought to address latches and data transceivers
respectively. The higher order address lines are brought to the address latches. The
outputs of the address latches and transceivers comprise the 16-bit address bus (A0-A15)
and 8-bit data bus (D0-D7) respectively. The direction select input of the transceiver
depends upon RD* and WR* signals.
iii) Control Bus
The other bus is the control bus. The Control signals required for proper operation of
the system are the IOR* (I/O Read). IOW* (I/O Write), MR* (Memory Read) and MW*
(Memory Write) signals. The Peripherals on the trainer are all memory mapped utilizing
the memory address from FF00 to FFFF. Hence, IOR* and IOW* will select for address
from FF00 to FFFF. The MR* and MW* signals are utilized to read or write the memory
devices namely, EPROM and RAM.
iv) Chip Select Logic
The selection of any peripheral or memory requires a chip select signal CS* to enable
that particular device. This requires address decoding, both memory and I/O. All the
above signals address, data, control and chip select are routed to all the peripherals and
memory devices in the trainer.
v) IBM-PC Keyboard and LCD
In this version of Micro-51 EB, IBM-PC keyboard is used for entering data and
control commands. 16x2 LCD module is used for displaying the commands and data.
Eight digits of seven segment displays are available as an optional peripheral.
vi) Memory
The block diagram shows an 32 Kbytes EPROM, and 32 Kbytes RAM (the address
locations FF00-FF1F and FFC0-FFFF can not be used as they are used for I/O mapping).
The external Program memory and Data memory of 8051 are combined in Micro-51 EB
with the help of appropriate circuitry.
vii) Peripherals
Serial port of 8051 is used for serial communication with associated driver IC 232 for
interface immunity and overcoming attenuation; two 8255 PPI (Programmable Peripheral
Name:DILOSHAA SRI.R Reg.No:1919106024 Section:IT-A
Microprocessor Lab
Interface) for TTL I/O drivers. System expansion is facilitated by the VXT_bus provided
Onboard.
CONCLUSION:
Thus the component layout and functional block diagram of 8051-EB trainer
is studied
8-BIT MANIPULATION
AIM:
APPARATUS REQUIRED:
PROGRAM
810A FE
RESULT
The assembly language program for addition, subtraction and multiplication of two 8-
bit numbers are performed and the results are verified with the manual work.
16-BIT MANIPULATION
AIM
APPARATUS REQUIRED
PROGRAM
OSERVATION:
RESULT
The assembly language program for addition and multiplication of two 8-bit numbers
are performed and the results are verified with the manual work.
ARRAY OPERATIONS – SUM OF N ELEMENTS
AIM:
APPARATUS REQUIRED
PROGRAM
811D E5 MOV A, B
811E F0
811F F0 MOVX @DPTR, A
8120 80 HLT : SJMP HLT
8121 FE
RESULT
The assembly language program for sum of N elements is performed and the
results are verified with the manual work.