If you programmed a Basy3 Board with the enable switch off, what would be the state of the LEDs (could be all be off or all on, or some off and some on)? For 0 ≤ a < b < 2n, could you create an n-bit counter with count sequence a, a + 1,···,b,a without using an n-bit counter with load? How? What is the adverage of using the parameter command (rather than putting specific constant values in the body of the code)? Could you use a 4-bit shift instead of a counter to generate Pattern 3? (The image below is only to answer number 4)

icon
Related questions
Question

Please answer the following questions:

  1. If you programmed a Basy3 Board with the enable switch off, what would be the state of the LEDs (could be all be off or all on, or some off and some on)?
  2. For 0 ≤ a < b < 2n, could you create an n-bit counter with count sequence a, a + 1,···,b,a without using an n-bit counter with load? How?

  3. What is the adverage of using the parameter command (rather than putting specific constant values in the body of the code)?
  4. Could you use a 4-bit shift instead of a counter to generate Pattern 3? (The image below is only to answer number 4)
count
0
-
2
3
4
.
O
O
0
0
.
0
0
LED states (dark is unlit)
0
0
● O
0
000. о
O
.
0 o
O .
O O
0
o o o o o o o o o o o o o o o o
Figure 4: An illustration of lighting LEDs for Pattern 3.
Transcribed Image Text:count 0 - 2 3 4 . O O 0 0 . 0 0 LED states (dark is unlit) 0 0 ● O 0 000. о O . 0 o O . O O 0 o o o o o o o o o o o o o o o o Figure 4: An illustration of lighting LEDs for Pattern 3.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer