Starting from:

$34.99

Microprocessor Lab 6 Solution

⚫ Data :https://docs.google.com/presentation/d/10ZMcQxYtCXkrXLtKLX
Vb12kVCReyMAF0/edit?fbclid=IwAR3pleVvyN-
4VqH7BsrvsYb4qna0XRQa3WoiM30j5vhG9pdyCmiEZYeK_uU#slide=id. p1
⚫ 影片: https://youtu.be/fjocqiF3gZE

⚫ Data :https://docs.google.com/presentation/d/10ZMcQxYtCXkrXLtKLX
Vb12kVCReyMAF0/edit?fbclid=IwAR3pleVvyN-
4VqH7BsrvsYb4qna0XRQa3WoiM30j5vhG9pdyCmiEZYeK_uU#slide=id.
p1
⚫ Video: https://youtu.be/fjocqiF3gZE ⚫ Basic(70%):
◼ 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.

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

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
ABCDE


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

More products