I was have a atmega just listening to the serial port and printing this to a lcd, its powered by some external 5V. Now in order to test this
I programmed the arduino to output text to the serial board, then connected the RX/TX lines to the atmega and GND to the GND of the
atmega. To my surprise the arduino started up and issued the text to the serial port. Note that the arduino itself had no external power
and was also not connected to USB!
So does where does the arduino get his power from? Only possibility are the RX/TX lines. I am puzzled.
When the IO pins have signal on them and VCC is not powered, the input clamp diodes can be forward biased and leak power into the chip to power it somewhat.
CrossRoads:
When the IO pins have signal on them and VCC is not powered, the input clamp diodes can be forward biased and leak power into the chip to power it somewhat.
I assume this is bad and we should avoid it? I kind of sort of left mine in this state for several hours... the AVR has no "apparent" damage, so maybe I got lucky?
"this is bad and we should avoid it" Yes - data sheet says IO pins should not exceed Vcc by more than 0.5V and not go below Gnd by the same amount. If you had had some LEDs or something connected up, you could have damaged those diodes.
So maybe lucky indeed.
Good when used by design, not good at all in the case of powering digital chips through the clamp diodes. Wikipedia has a good writeup for both analog/digital phantom currents.