What's up with my HomeWork board?
In the "What's a Microcontroller?" workbook for the HomeWork board, there is an exercise on pages 76-78 using the Pushbutton. I built the circuit in Figure 3-6, connected power, wrote the program on page 78 exactly, and something is still wrong: whenever I run the program, IN3 always equals 1, regardless if I'm pushing the button or not.
I took apart the circuit and rebuilt it, and the same thing happens - IN3 always equals 1 in the debug window. Finally I took everything off the board and ran the program, and IN3 keeps coming up as 1.·I can take a picture also and upload it here if needed.
Is there something wrong with the board, or could I have possibly damaged it?
Post Edited (Thomas C.) : 1/27/2010 4:32:12 PM GMT
I took apart the circuit and rebuilt it, and the same thing happens - IN3 always equals 1 in the debug window. Finally I took everything off the board and ran the program, and IN3 keeps coming up as 1.·I can take a picture also and upload it here if needed.
Is there something wrong with the board, or could I have possibly damaged it?
Post Edited (Thomas C.) : 1/27/2010 4:32:12 PM GMT
Comments
Do check the wiring again. You might have made a mistake there. Also, try a different set of holes in the breadboard area. Try the identical layout, but shift everything upwards 3 rows. There might be something wrong with the breadboard.
Note that, if an I/O pin is not connected to anything, then its state (0 or 1) could be anything. That's why the circuit has a 10K resistor connected to Vss and the I/O pin. That forces the default I/O pin state to be zero.
You should get 0V when you're not pushing the button, and right around 5V when you are pushing it. If that's not happening, your wiring isn't right.
I'm glad to hear it wasn't the Homework board.