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.
To declare all of the PORTB pins as outputs, which of the following line of code is appropriate?
A. TRISB = $00
B. PORTB = $FF
C. TRISB = $FF
D. PORTB = $00
E. TRISB = $11
Answer: A
Trades & Technology
You might also like to view...
The primary objective of Manifest Destiny expansionists in the 1850s was
A. Panama. B. Nicaragua. C. Cuba. D. Hawaii. E. None of these choices are correct.
Trades & Technology
As outdoor activities increase and areas become more crowded, the chances for accidents decrease
Indicate whether the statement is true or false
Trades & Technology
Convert 35.9685734’ to feet-inches to the nearest sixteenth.
What will be an ideal response?
Trades & Technology
Penetrants can be safely used on fasteners that are still warm from being heated
Answer the following statement true (T) or false (F)
Trades & Technology