Skip to content

Ghaida-jaaisa/Microprocessor_Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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 & 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

πŸ”’πŸ…°οΈ 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

No packages published