Re: I'm at a loss

Originally Posted by
ERMEGM
The 10k resistor is part of the pull up resistor of the optocoupler.It's a 5 volt supply through the 10k and then to rb 6. Same setup for rb7. Rb 6 and 7 are driven high, then pulled low when triggered. Standard setup.
Should I apply power to the circuit when programming it, maybe?
Why don't you use the internal pull-ups in your chip? The following is from the melabs webpage
http://melabs.com/support/icsp.htm
From the website
1. If possible, dedicate the Programming Clock and Data pins to ICSP. If you must also use these pins for other purposes on your board, some thought should be given to the type of hardware that is connected. The best case is to use the programming pins for normally-open, pushbutton inputs. As long as you don't push the buttons while programming, the switches won't affect things at all.
If loads are connected to the clock and data lines, they must not interact with the clock and data signals. Capacitive loads will cause problems. High-impedance loads are usually ok. LEDs with current-limiting resistors are less desirable, but usually don't cause problems.
You should always prototype and test the ICSP connections before sending your PCB design out for fabrication.
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks