Portb.6 connects to a 1K resistor and NPN base. My original post was a logical error, the basic problem that I was trying to solve, was that portb.6 was not producing an output sometimes. It turned out that the 5 volt supply was sagging after 4 seconds causing brownout reset. I was confused by the program running so long before failing.
Bookmarks