[SOLVED] Microprocessor Lab 6

24.99 $

Category: Tags: , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab6-recop2.zip (693.9 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

 

⚫ Data :https://docs.google.com/presentation/d/10ZMcQxYtCXkrXLtKLX
Vb12kVCReyMAF0/edit?fbclid=IwAR3pleVvyN-
4VqH7BsrvsYb4qna0XRQa3WoiM30j5vhG9pdyCmiEZYeK_uU#slide=id.
p1
⚫ Video: https://youtu.be/fjocqiF3gZE ⚫ Basic
◼ Description: Connect a push-button at RB0 port with pull-up or pull-down resistor. Connect four LEDs at RA0 ~ RA3 port. Press the button to change the blinking pattern of LEDs, as in the figure below.

◼ Standard of Grading:
1. Connect all the LEDs and button to the proper ports.
2. The LEDs should change the state after pressing the button.

⚫ Advanced
◼ Description: Connect a push-button at RB0 port with pull-up or pull-down resistor. Connect four LEDs at RA0 ~ RA3 port. Press the button to change the blinking pattern of LEDs, as in the figure below.

Bonus
◼ Description: Connect a push-button at RB0 port with pull-up or pull-down resistor. Connect four LEDs at RA0 ~ RA3 port. Press the button to change the blinking pattern of LEDs, as in the figure below.
RA0 RA1 RA2 RA3
AB

CD

E

➢ First press: a -> 0.5s-> b -> 0.5s-> c -> 0.5s-> d -> 0.5s->e
➢ Second press b -> 0.5s-> c -> 0.5s-> d -> 0.5s-> a -> 0.5s->e
➢ Third press c -> 0.5s-> d -> 0.5s-> a -> 0.5s-> b -> 0.5s->e ➢ Fourth press d -> 0.5s-> a -> 0.5s-> b -> 0.5s-> c -> 0.5s->e ➢ Fifth press: Same as the First press.
➢ Sixth press: Same as the Second press.

◼ Standard of Grading:
1. Connect all the LEDs and button to the proper ports.
2. The LEDs must work, as the figure shows above.
3. Write a macro named “delay” for blinking for 0.5s.

  • Lab6-recop2.zip