The subsequent problems deal with the following PIC circuit, where the PORTB pins are attached directly up to the individual segments of a 7-segment LED display as shown. (Note - All seven segments "a"-"g" are wired as shown for segment "g," with a pull-up resistor to 5V.) Assume the PORTB pins are declared as outputs.
What number would appear on the LED display after the following line of code:PORTB = %00100100
A. an upside-down and/or backward "L" shape
B. an "L" shape
C. the number 7
D. the number 5
E. none of the above
Answer: D
You might also like to view...
A group of engineers have an office pool for football games of their alma mater. The winner is the one that ends the season with the fewest demerits. Demerits are awarded after each game on the following basis: three demerits for each one point that one errs in guessing the correct difference in the final scores of the two teams; and one demerit for each point one is incorrect in the final score of each team. [For example: One engineer predicts the home team to win 14 to 7, but the final score is home team 10, visitors 21. Demerits = (11 + 7)3 + (14 ? 10) + (21 ? 7) = 72 demerits.] Draw a flowchart describing this pool.
What will be an ideal response?
For the highway links in Example 4.6 that have “similar volume characteristics,” what are the important characteristics that highway segments must have in order to be considered similar?
What will be an ideal response?
Two technicians are discussing disc brake rotor service. Technician A says that the inner races (bearing cups) should be removed from the rotor before it is mounted on the lathe. Technician B says that a non-directional finish on the rotor surfaces can be obtained by using sandpaper. Which technician is correct?
A) Technician A only B) Technician B only C) Both technicians D) Neither technician
The output from an OR gate is HIGH ________
A) only when all inputs are LOW B) when at least one input is HIGH C) only when all inputs are HIGH D) none of the above