F
Fred Fuque
Guest
Suppose you had a mystery box with 6 buttons on the top and a
4-conductor cable coming out the back. You know that the other end of
the cable is connected to an embedded microcontroller, but you don't
know what's inside the mystery box itself (and you can't open the
box).
Using an oscilloscope, you observe that the 4 wires in the cable have
the following voltages when the system is powered on:
Wire 1 has 5VDC relative to Wire 2.
Wire 2 appears to be a ground.
Wire 3 has ~9VDC relative to Wire 2.
Wire 4 has 5VDC relative to Wire 2.
You also observe that the voltages on wires 1 and 4 change when you
press the buttons:
When no buttons are pressed, wires 1 and 4 have 5V as noted
previously.
When button 1 is pressed, wire 1 drops to 4V.
When button 2 is pressed, wire 1 drops to 3V.
When button 3 is pressed, wire 1 drops to 0V.
When button 4 is pressed, wire 4 drops to 4V.
When button 5 is pressed, wire 4 drops to 3V.
When button 6 is pressed, wire 4 drops to 0V.
What's your best guess regarding the circuit inside the box?
4-conductor cable coming out the back. You know that the other end of
the cable is connected to an embedded microcontroller, but you don't
know what's inside the mystery box itself (and you can't open the
box).
Using an oscilloscope, you observe that the 4 wires in the cable have
the following voltages when the system is powered on:
Wire 1 has 5VDC relative to Wire 2.
Wire 2 appears to be a ground.
Wire 3 has ~9VDC relative to Wire 2.
Wire 4 has 5VDC relative to Wire 2.
You also observe that the voltages on wires 1 and 4 change when you
press the buttons:
When no buttons are pressed, wires 1 and 4 have 5V as noted
previously.
When button 1 is pressed, wire 1 drops to 4V.
When button 2 is pressed, wire 1 drops to 3V.
When button 3 is pressed, wire 1 drops to 0V.
When button 4 is pressed, wire 4 drops to 4V.
When button 5 is pressed, wire 4 drops to 3V.
When button 6 is pressed, wire 4 drops to 0V.
What's your best guess regarding the circuit inside the box?