Upload
lyhanh
View
216
Download
3
Embed Size (px)
Citation preview
Lab Instructions
Whether an experiment contains one or
several practicals /programs
One
practical / program
Several
practicals / programs
Whether practical has been verified
and signed by the lab teacher?
Students write experiments in practical files and get them signed by the lab teacher
Students make entries in the list of contents of the practical files and get them signed by
the lab teacher
All Students need to perform the practical/program
Lab Teacher forms groups of the students based on
Assign all practicals /programs among all groups
?
Teacher decides whether the completed practicals / programs can be appropriately described
using flow chart, algorithm, query statement, etc.
Teacher issues necessary instructions to the students for writing practicals / programs
accordingly
In case of an experiment containing several practicals, a lab teacher needs to think whether a practical performed by the students in one group needs to be repeated by the other groups in lab on the same day?
OR A practical performed by the students in one group needs to be repeated as assignments to be completed by the students of other groups in their hostels? Here, an assignment includes both executing a program on computer and also writing the same in practical file.
OR A practical performed by the students in one group needs to be repeated as assignments, only writing practicals in their practical files, for the students of other groups in their hostels?
Teacher issues necessary instructions to the students accordingly.
If a student has not completed a practical, he/she is expected to complete it at his/her
own with the help of his/her fellow students in his/her hostel
The student completes the practical file and submits it to the concerned teacher in
his/her office or mail box on next working day
?
1
Lab Manual Microprocessors (Pr)
COT-214 and IT-315
L T P
- - 2
Practical exam: 40
Sessional: 60
Experiment 1 (Printing)
I. Write a program to print the alphabets (A-Z).
II. Write a program to print the alphabets (a-z).
III. Write a program to print the numbers from 0-9.
IV. Write a program to print ASCII table.
V. Write a program to print AaBbCc……..Zz.
VI. Write a program to print AaaBbbCcc…..Zzz.
VII. Write a program to print AbCd………………..Z.
VIII. Write a program to print the alphabets (a-z).
Experiment 2 (Strings)
I. Write a program to print the string using 09h function.
II. Write a program to print the string character wise.
III. Repeat the program 1 for 16-bit string.
IV. Repeat the program 2 for 16-bit string.
V. Write a program to convert the given string into reverse form.
VI. Repeat the program for 16-bit string.
VII. Write a program to check that given string is palindrome or not.
VIII. Repeat the program for 16-bit string.
Experiment 3 (Arithemetics)
I. Write a program to sum two 8-bit single digit numbers.
II. Write a program to sum two 16-bit single digit numbers.
III. Write a program to sum two 8-bit multi digits numbers.
IV. Write a program to subtract two 8-bit single digit numbers.
V. Write a program to subtract two 16-bit single digit numbers.
VI. Write a program to subtract two 8-bit multi digits numbers.
VII. Write a program to multiply two 8-bit single digit numbers.
VIII. Write a program to multiply two 16-bit single digit numbers.
IX. Write a program to divide two 8-bit single digit numbers.
2
Experiment 4 (Coversion)
I. Write a program to convert single digit decimal number into hexadecimal.
II. Repeat the same exercise for multi digits number.
III. Write a program to convert binary input number into hexadecimal.
IV. Repeat the same exercise for 16-bit number.
V. Write a program to convert binary input number into octal.
VI. Repeat the same exercise for 16-bit number.
VII. Write a program to convert single digit hexadecimal number into octal.
VIII. Repeat the same exercise for multi digits number.
Experiment 5 (Positive/negative, odd/even)
I. Write a program to find that 8-bit number is positive or negative.
II. Repeat the same exercise for 16-bit number.
III. Write a program to find that 8-bit number is odd or even.
IV. Repeat the same exercise for 16-bit number.
Experiment 6 (Gray code conversion)
I. Write a program to covert binary code into gray code.
II. Repeat the same exercise for 16-bit number.
III. Write a program to covert gray code into binary code.
IV. Repeat the same exercise for 16-bit number.
Experiment 7 (Factorial)
I. Write a program to find the factorial of a given number.
II. Repeat the exercise for different type of numbers (i.e. multi-digit 8-bit, 16-bit etc.).
Experiment 8 (Fibonacci series)
I. Write a program to print the Fibonacci series up to 233.
Experiment 9 (Sorting)
I. Write a program to sort n 8-bit numbers.
II. Repeat the same exercise for 16-bit number.
III. Repeat the same exercise using modular programming.
3
Experiment 10 (INT 10h)
I. Write a program to change the size of the cursor, position as per user’s choice using INT
10h.
II. Write a program to draw the line using INT 10h.
III. Write a program to change the mode of monitor and also draw the single pixel INT 10h.
Experiment 11 (INT 33h)
I. Use INT 33h, write a program to create a textual mouse “button”.
II. Use INT 33h, write a program to check the mouse driver is present or not.
III. Use INT 33h, write a program which turns on your mouse cursor and pause the computer
until a mouse button is pressed.
Experiment 12 (Application)
I. Write a program to rotate the steeper motor in clock as well as anti-clock wise direction
as per given the number of rotations.
II. Repeat the same exercise for different number of rotation and delays.
III. Write a program to implement the traffic light system.
IV. Repeat the same exercise for different delays.
V. Write a program to implement thermometer application with different delays and
temperatures.