This document provides a detailed explanation of the Microprocessor Lab tasks. Open PDF
LAB 1 β LED'sββ|ββπ Open Folder
π₯οΈ TASK #1ββ|ββπ Open File
π΄πΉ Light one LED starting from LED 1.
π» TASK #2ββ|ββπ Open File
π΄π Light one LED (reversely) starting from LED 4.
π¨βπ» TASK #3ββ|ββπ Open File
π π‘ Light the LEDs in pairs:
- LED 4 & 3 β LED 3 & 2 β LED 2 & 1 β LED 1 & 4.
π₯οΈ TASK #4ββ|ββπ Open File
π΄π‘ Let the RED LEDs blink for 3 times.
π» TASK #5ββ|ββπ Open File
π¨π’ Design Emergency Sequence:
- RED1: Green
- On: Off
- Off: On
- Repeat 7 times.
π¨βπ» TASK #6ββ|ββπ Open File
π¦π Design Traffic Light:
- Red π΄ (3 seconds)
- Yellow π‘ (blink 3 times)
- Green π’ (5 seconds)
- Repeat this sequence continuously.
LAB 2 β 7-Segmentsββ|ββπ Open Folder
π₯οΈ TASK #1ββ|ββπ Open File
βΏπ’ Show the even numbers on the 7-Segment display using a counter.
π» TASK #2ββ|ββπ Open File
π’β‘οΈ Show the numbers from 3 β C on the 7-Segment.
π¨βπ» TASK #3ββ|ββπ Open File
ππ‘ Update Lab 1 - Task 4 to count the number of blinks and show the count on the 7-Segment.
LAB 3 β Keypadββ|ββπ Open Folder
π₯οΈ TASK #1ββ|ββπ Open File
π7οΈβ£ Show the number you pressed on the 7-Segment.
π» TASK #2ββ|ββπ Open File
π’
π¨βπ» TASK #3ββ|ββπ Open File
ππ‘ Let the green LED flash for the pressed key number.
π₯οΈ TASK #4ββ|ββπ Open File
ππ Update Task 3 to stop flashing immediately once key 0 is pressed.
π» TASK #5ββ|ββπ Open File
ππ‘π’ Let the yellow LED flash, then show the number on the 7-Segment.
π¨βπ» TASK #6ββ|ββπ Open File
β7οΈβ£ Update Task 5 to make the number on 7-Segment disappear if you press key F.
LAB 4 β Stepper Motorββ|ββπ Open Folder
π₯οΈ TASK #1ββ|ββπ Open File
β©
π» TASK #2ββ|ββπ Open File
πβ Let the stepping motor move for 90 degrees and stop.
π¨βπ» TASK #3ββ|ββπ Open File
β³π Move 90Β°, pause, then continue β repeat 4 times.
π₯οΈ TASK #4ββ|ββπ Open File
π
΅
π» TASK #5ββ|ββπ Open File
π’βοΈπ Move (pressed key Γ 10) steps (keys 1β5).
π¨βπ» TASK #6ββ|ββπ Open File
π7οΈβ£ Show pressed key on 7-Segment after motor stops.
π₯οΈ TASK #7ββ|ββπ Open File
3οΈβ£β‘οΈ Press key 3 to make the motor move faster.
LAB 5 β Dot Matrix I - Flashββ|ββπ Open Folder
π₯οΈ TASK #1ββ|ββπ Open File
π΄β¬οΈ Scroll from top to bottom row with red color.
π» TASK #2ββ|ββπ Open File
π§π² Light a 4Γ4 square in the center with orange color.
π¨βπ» TASK #3ββ|ββπ Open File
ππ³ Move the square from center to top, then come back from bottom, 3 times.
π₯οΈ TASK #4ββ|ββπ Open File
πΌοΈπ Light the specific shape as shown in the figure.

π» TASK #5ββ|ββπ Open File
ππ’ Show number of columns = number of pressed buttons.
π¨βπ» TASK #6ββ|ββπ Open File
ππ£
LAB 6 β Dot Matrix - Scanββ|ββπ Open Folder
π₯οΈ TASK #1ββ|ββπ Open File
π β¨ Display the first letter of your name on Dot Matrix.
β‘οΈ (We choose the letter H as an example.)
π» TASK #2ββ|ββπ Open File
π€π Show the word CSE letter by letter, repeated 3 times only.
π¨βπ» TASK #3ββ|ββπ Open File
πΌοΈβ¬οΈ Display the specific figure at the bottom center of Dot Matrix.

π₯οΈ TASK #4ββ|ββπ Open File
π» TASK #5ββ|ββπ Open File
πβΉοΈ Update Task 4 to make the movement happen 4 times only, then stop.
π¨βπ» TASK #6ββ|ββπ Open File
ππ’ Update Task 5 to repeat the shape movement based on the number you pressed on the keypad.
LAB 7 β Elevator - Part 1β|ββπ Open Folder
π₯οΈ TASK #1ββ|ββπ Open File
π»π’ If the cage is at a higher floor, move the cage down (with red LED).
π» TASK #2ββ|ββπ Open File
βΉοΈ Let the cage stop at floor 2.
π¨βπ» TASK #3ββ|ββπ Open File
7οΈβ£π Show the floor number (2) on the 7-Segment once the cage stops.
π₯οΈ TASK #4ββ|ββπ Open File
π‘πͺ Light the floor sign LED for floor 2 once the cage stops.
π» TASK #5ββ|ββπ Open File
π2οΈβ£ Repeat all previous tasks only if you pressed button "2F".
π¨βπ» TASK #6ββ|ββπ Open File
β¬οΈβ¬οΈ Handle both cases:
-
π Trigger this logic only if button "2F" is pressed.
-
If cage is at floor > 2, go down to floor 2.
-
π Trigger this logic only if button "3F" is pressed.
-
If cage is at floor < 3, go up to floor 3.
LAB 8 β Elevator - Part 2ββ|ββπ Open Folder
π₯οΈ TASK #1ββ|ββπ Open File
π’π» If the cage is at floor 4 and you press button 1F, let the cage move and stop at floor 1.
π» TASK #2ββ|ββπ Open File
ππ‘ Update Task 1 to show the floor number on the 7-Segment and light the LED for each floor it passes.
π¨βπ» TASK #3ββ|ββπ Open File
ππ’ Redo Task 2 to handle calls to floors 1, 2, or 3, and let the cage move and stop at the called floor.
π₯οΈ TASK #4ββ|ββπ Open File
ππ’ Independent of the cage's current location, let the elevator move and stop at the called floor, showing:
- β All passed floor numbers
- β Relevant LED signs
- β Correct 7-Segment display
π» TASK #5ββ|ββπ Open File
ππ Update Task 4 to make it work even if the cage position is between floors, and continue to the nearest called floor, showing all details as usual.


