Skip to content

Ghaida-jaaisa/Microprocessor_Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

150 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💡 Microprocessor Lab

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 & 3LED 3 & 2LED 2 & 1LED 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 3C 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

🔢🅰️ Let the 7-Segment start counting from 0 to 9 only if you press key A.

👨‍💻 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

⤵️ Move the stepping motor counter-clockwise with fast motion.

💻 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

🅵▶️ Start the motor only if you press key F.

💻 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.
matrix

💻 TASK #5  |  📄 Open File

🔘🔢 Show number of columns = number of pressed buttons.

👨‍💻 TASK #6  |  📄 Open File

📍🟣⤴️ Move any corner dot diagonally, any color, forever.


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.
image

🖥️ TASK #4  |  📄 Open File

⤴️🔄 Update Task 3 to move the shape upward, then re-enter from the bottom — repeat forever.

💻 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.

Final |  📁 Open Folder

Screenshot 2025-06-29 150158 Screenshot 2025-06-29 150141 Screenshot 2025-06-29 150151

About

Microprocessor Lab Tasks codes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors