Professional Documents
Culture Documents
- PIN
- PAUSE
Part B : Digital Logic Gates, Combinational Circuits, Boolean Equations and Circuit
Diagrams
1. Write the Boolean equation for each of the following circuit diagrams. Do not simplify.
2. Draw
Do not simplify.
a)
b)
23cm
51cm
b) Complete the code to move the given robot forward at top speed for 51 cm.
FOR counter = 1 TO _______
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
NEXT
3) Calculating Boe-Bot Turns
a) Assume that the following statements turn the given robot 120 right:
FOR counter = 1 TO 24
PULSOUT 13, 850
PULSOUT 12, 850
PAUSE 20
NEXT
Find the number of loops required to turn the given robot about 140 right. Let x be the number of
loops required to turn the robot right about 140. Solve for x in the following equation:
_____________________________
DEBUG ? NUMB
_____________________________
DEBUG ? NUMC
_____________________________
DEBUG ? NUMD
_____________________________
_____________________________
NUMA = $412C
NUMB = %11010110
NUMC = 29
DEBUG BIN ? NUMA
_____________________________
_____________________________
_____________________________
_____________________________
_____________________________
_____________________________
_____________________________
NUMB = -7
DEBUG ? NUMB
_____________________________
NUMA = 4 + 3 * 2 + 8 / 2
_____________________________
DEBUG ? NUMA
_____________________________
_____________________________
NUMA = 51 / 9
DEBUG ? NUMA
_____________________________
NUMA = 42 // 5
DEBUG ? NUMA
_____________________________