ECE348 Circuit Debugging Tips
These kinds of guidelines can be useful to you if your brake lines are not working as organized:
Check the Microcontroller Control Signup Settings
At times you have to set up multiple control settings one which just enable a pin for a particular purpose (input, output, A/D conversion, etc). Section 2 . 3. two of the MCU datasheet explains the control registers linked to various plug-ins. Sometimes you may have to look in other parts of the datasheet (for example, the A/D section) for more details in enabling as well as setting a particular peripheral.
Look at your IDE Adjustments
Verify the file you are croping and editing is the same one the compiler is defined to make and the debugger/serial monitor is set to load for the correct target. This can be a difficulty if you have multiple targets or perhaps multiple projects open.
Look at your Debugger
Keep in mind that you have to press the Green Arrow / F5 / Operate > Start off command in the debugger before the program you might have loaded will start executing.
Point-to-point Wiring Examine
Wiring faults are easy to make. If possible, have someone apart from the person who have wired the circuit check it intended for mistakes. Treatment will give you a systematic way to check the wiring. This method is far more reliable than tracing cables, especially if there are a great number of overlapping wire connections on your plank, or various that are a similar color. Focus on a schematic of your circuit. If you don't have a circuit, pull one out. No outlet is " too simpleвЂќ to need a schematic. In case the circuit is not hard, the schematic should be simple to draw.
Check each connection on the outlet using the multimeter. Some multimeters have a continuity band which will engagement ring when a low-resistance connection is done. Even if your multimeter does not have this feature, set this for the cheapest resistance establishing. If you browse 0 (or very low number of ohms) between your test prospects, they are born together. Use a highlighter to mark every single connection on the schematic as your verify this....