AEIE Document
AEIE Document
AEIE Document
MICROPROCESSOR AND
MICRO-CONTROLLER LABORATORY
LABORATORY MANUAL
&
ASSIGNMENTS
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
1. CONNECT THE 5-VOLT POWER SUPPLY FROM THE SMPS TO THE MICROPROCESSOR KIT.
2. THE WORD ‘SDA 85’ SHOULD BE DISPLAYED IN THE INTEGRAL DISPLAY OF THE KIT
AFTER POWER IS SWITCHED ON. IF NOT , PRESS ‘RESET’ KEY.
3. TO WRITE THE PROGRAM IN THE KIT FOLLOW THE INSTRUCTIONS GIVEN BELOW: -
CONTINUE IN THIS WAY TILL ALL THE HEX CODES HAVE BEEN ENTERED. DO NOT FORGET
TO PRESS THE ‘NEXT’ KEY AFTER THE LAST HEX CODE HAS BEEN ENTERED.
>PRESS ‘EXAM REG’ after that ‘Reg A’ KEY (OR ‘Reg B’, ‘Reg C’, ‘Reg D’, ‘Reg E’, ‘Reg H, ‘Reg L’
KEY)
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
INITIAL CHECKING:
1) TALK OPTION Target Board 8085 KIT
2) TALK Properties DRT enable
2) To assemble a program type A, it ask for program starting address put address then write program as
follows and press <Esc> at the end of the program.
Eg. starting address: 9100 <press enter>
Line Source Code Loc OBJ
0001 MVI A, 02 9100 3E, 02
0002 RST 1 9102 CF
3) To disassemble a program type Z, it ask for program starting address put address then it shows whole
program as follows
Eg. starting address: 9100 <press enter>
ending address: 9106 <press enter>
Line Source Code Loc OBJ
0001 MVI A, 02 9100 3E, 02
0002 RST 1 9102 CF
5) To see the register content type X, it ask for register name, put required register name
Eg. Register: A <press spacebar> B <press spacebar>…….<Esc>
6) To load data in memory address, type M to modify, it ask for starting address put address then press
<space> followed by data.
Eg. program starting address: 9101 < press spacebar> 02 – 04< press spacebar>……. <Esc>
7) To insert data in memory address, type I, it ask for address followed by data.
starting address of user program:
ending address of user program:
Data to be inserted at address:
No. of byte: 2<press,> or <press spacebar> 02 – 04<press space>……. <Esc>
8) To delete data in memory address, type K, it ask for address followed by data.
starting address of user program:
ending address of user program:
starting address:
ending address:
02 –<Esc>
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
SYSTEM SPECIFICATION:
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
POWER : +5V DC with 2.5 Amps current rating (max)
REQUIREMENTS
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
The trainer requires a DC regulated power supply with +5V at 1.5Amps outputs for its basic operation. The
power connections are made through 9-pin D type connector.
Keyboard Operation
As soon as +5V and GND are connected and power supply is switched on, the sign on message ” SDA 85”
should appear on the display. The labeling of the keys clearly indicates their function.
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
Memory Configuration
RAM configuration
KEYBOARD D0 DATA
DISPLAY D1 CONTROL
CONTROLLER
8279 (U5)
PPI, 8255 (U4) D8 PORT A
D9 PORT B
DA PORT C
DB CONTROL
PPI, 8255 (U3) F0 PORT A
F1 PORT B
F2 PORT C
F3 CONTROL
8251(U6) C0 DATA
C1 CONTROL
Timer 0 of the 8253 has been used on card for the single step function. To enable this capability ensure that
the jumper JP9(1-2) should be close.
Timer1 of the 8253 has been used on card for generation of the TXD and RXD baud clock required by
USART (8251A). To enable this short JP9(3-4) should be close.
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
All timer gate, clock and out lines are terminated at 26 pin connector P5
We can operate the serial I/O port for RS232C using DB9 connector P1
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
23 I/P of 8259A(IRQ6) 24 I/P of 8259A(IRQ7)
The port lines of 855I and II (U14, U15) are terminated in this connector, as shown below:
Power Connector P4
Pin No Signal description Colour Code
4,5 GND White /Orange/Blue
9 + 5V I/P Black/Yellow
To branch to the serial monitor commands the following initialization of memory is required to select the
baud rate
FFA6 FFA7 BAUD RATE
05 00 19200
0A 00 9600
14 00 4800
28 00 2400
50 00 1200
A0 00 600
40 01 300
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
CRT command
Syntax: E/CRT
This command allows the mode to be change to serial for communication with a crt or PC.RAM locations
FFA6 and FFA7 should be initialized to the values corresponding to the required baud rate. Pressing the E?
CRT key followed by ‘0’ invokes serial monitor. Pressing the E/CRT key followed by ‘1’ selects CRT/KBD
mode of operation. Mode identifier is initialized to 01H. Control is transferred to the CRT/keyboard, the
system display is cleared and the keyboard is locked out, pressing the RESET key restores the mode to
system keyboard/display.
The RESET key is then pressed followed by E CRT & 0 key to transfer control to a CRT terminal or a PC
COM port connector to the connector DB9-P1. The above values are based on the 1.536 MHz clock/ip to the
8253.
Help Menu
Syntax H<cr>
EX:>H<
Syntax :A
Starting Address :[9100]<cr>
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
Go Command
Syntax :G
starting address :9100<cr>
The above executes the program at location 9100
Insert Command
Syntax :I
starting address :9100<cr>
ending address :9109<cr>
address at which data to be inserted :9105<cr>
no of bytes : 3<space>32-11-91.….<cr>
The above command indicate to insert 3 bytes starting from location 9105.
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
ASSIGNMENT-1
1. LOAD 23H TO D REGISTER AND 5643H TO BC REGISTER PAIR. COPY THE CONTENT OF D REGISTER TO A
REGISTER.
2. LOAD 44H TO A REGISTER AND 08H TO B REGISTER. ‘ADD’ THE CONTENTS OF REGISTER A AND B.
3. LOAD 23H TO A REGISTER AND 08H TO B REGISTER. ‘ AND’ THE CONTENTS OF REGISTER A AND B.
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
ASSIGNMENT-2
1. TWO 8-BIT NUMBERS ARE STORED INTO THE MEMORY LOCATION C100H & C101H.
ADD TWO NUMBERS AND STORED THE RESULT INTO MEMORY LOCATIONS
C102H & C103H.
a. DATA: - C100H → 23H
i. C101H → FAH
3. TWO 16-BIT NUMBERS ARE STORED INTO THE MEMORY LOCATION STARTING
FROM C200H TO C203H. ADD THESE DATA & RESULTS WILL STORED INTO NEXT
MEMORY LOCATION.
DATA: - C200H (LOWER BYTE) → 23H
C201H (UPPER BYTE) → EBH
C202H (LOWER BYTE) → 79H
C203H (UPPER BYTE) → 72H
.
4. .SHIFT A BLOCK OF DATA STARTING FROM MEMORY LOCATION C050H TO
ANOTHER BLOCK STARTING FROM C000H
5. FOUR 8-BIT NUMBERS ARE STORED IN MEMORY LOCATION STARTING FROM C300H.
PERFORM THE BCD ADDITION ON THESE NUMBERS AND STORED THE RESULTS
INTO NEXT MEMORY LOCATION.
DATA: - C200H → 23H
C201H → 44H
C202H → 79H
C203H → 72H
7. LOAD 9EH INTO MEMORY LOCATION C100H. CONVERT THE NUMBER INTO ASCII
CODE AND STORE THE RESULT IN NEXT MEMORY LOCATION.
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
ADDITIONAL ASSIGNMENT
1. FIVE NUMBERS ARE STORED IN MEMORY STARTING FROM C200H LOCATION. ADD ALL POSITIVE
NUMBERS AND STORE THE RESULT INTO MEMORY LOCATION C206H. FIND THE TOTAL NUMBER OF
NEGETIVE NUMBERS AND STORE THE SAME INTO MEMORY LOCATION C207H.
2. WRITE A PROGRAM TO STORE ALL THE ODD NUMBERS STARTING FROM 01H TO 0FH INTO THE
MEMORY LOCATION STARTING FROM C200H. WRITE THE SAME PROGRAM FOR EVEN NUMBER ALSO.
3. STORE A BLOCK OF DATA STARTING FROM C050H. ADD THEM ONE BY ONE TILL
YOU GET A ZERO. STORE THE RESULT IN A REGISTER AND CHECK WHETHER
THERE IS A CARRY.
4. WRITE A PROGRAM TO ARRANGE 5 NUMBERS STORED INTO MEMORY STARTING FROM C200H
LOCATION IN ASCENDING ORDER. REPEAT THE ABOVE FOR DESCENDING ORDER.
5. FEW NUMBERS ARE STORED INTO MEMORY STARTING FROM C300H LOCATION. WRITE A PROGRAM TO
FIND OUT HOW MANY TIMES THE NUMBER 22H IS PRESENT THERE.
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
ASSIGNMENT-3
ASSIGNMENT-4
Interfacing with switches and LEDs and glowing LEDs according to read switch status and scrolling-
blinking using delay subroutines through
a) PPI 8255A with 8085A trainer kit
b) 8051 microcontroller
ASSIGNMENT-5
Interfacing with seven segment displays through 8-bit latch (e.g., 74LS373) using-
a) 8085A trainer kit,
b)8086A trainer kit and 8255A PPI employing absolute and partial decoding concept as a peripheral
mapped output port with absolute address decoding
ASSIGNMENT-6
ADC, DAC and Stepper motor interfacing with 8086A microprocessor/8051 microcontroller and
their programming.
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
SYSTEM SPECIFICATION:
CPU : DYNA-86L is based on Intel 8086 high performance
CPU operating at 8 MHz
MEMORY :
EPROM : Monitor Firmware in two 27256 is placed in the highest
64KB bank (F0000H to FFFFFH)
RAM : 64KB Static RAM with powerful battery backup is
provided in the address range 00000 to 0FFFFH
keyboard/display interface
PARALLEL I/O : Two 8255’s are present onboard,out of which 1 is used
for DYNA-PIO cards and 1 for printer interface
SERIAL I/O : One RS 232C compatible interface using USART 8251,
along with 1488,1489 driver chips provides necessary
signals for this interface. The signals are brought out on
the 9 pin D type male connector (J5).Baud rate is 2400
for this system which can be selected through software.
TIMER : Three 16 bit counter/timers using 8254.CH0 is used for
baud rate generation. CH1 and CH2 signals are brought
out on a 7 pin Relimate connector (J^) and can be used
by the User.
PIC : Programming Interrupt controller using 8259 provides 8
priorities interrupt levels.IRQ5 to IRQ7 are brought out
on 50 pin FRC connector (J7) and can be used by the
user except IRQ3 all other interrupts are masked.
KEYBOARD : Computer keyboard can be hocked on to the trainer.
DISPLAY : 40 X 2 LCD display module.
1. First connect power supply cord to the power socket of the kit
2. Switch on the Power Supply, Display(LCD display) will show DYNA-86
3. Now the system is ready for use.
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
8251 USART 10H and 12H Data reg. and Status reg.
REGISTER INITIALIZATION
When DYNA-86L is initialized during power on or when [RES] key is pressed. The sign on message is
displayed. When initialized the 8086 registers are set to the values shown in the table given below.
CS Code Segment 0H
DS Data Segment 0H
ES Extra Segment 0H
SS Stack Segment 0H
IP Instruction Pointer 0H
FL Flag 0H
SP Stack Pointer 06FFH
LOCAL MODE
The LOCAL mode of DYNA-86L contains almost all the commands available in the HEX KEYPAD mode
of DYNA-86 assembler and disassembler. All commands are typed on the 1010 keys keyboard and results
are displayed on 40 X 2 LCD display
On Power-On or Reset, a jump to the Local Mode takes place and control is passed to its monitor. Press a
Enter key, display shows DYNA-86.
Memory reserved for 0:0 to 0:6FFH. The user program should start from 0000:0700H
Rev_2018
MICROPROCESSOR & MICROCONTROLLER LABORATORY
Rev_2018