Pokud je ten spínač sepnutý, tak na C.5 bude díky těm dvou odporům (680R a 22k) nějakých 3.2V a to je určitě víc jak 80% z 3.3V a tedy to je logická 1. No a právě podle toho se pozná, že Picaxe má nahrávat nový kód. To se sice příkazem
DISCONNECT vypne (zakáže), ale než po startu na ten příkaz dojde, tak platí, že Picaxe podle toho pozná, že do něj někdo chce nahrávat nový program. Protože ale to je ten vypínač, tak samozřejmě žádný program nepřijde a Picaxe čeká a čeká a v něm uložený program nespouští, tedy navenek se to chová jako že "se nerozběhne".
Ta Vláďou odkazovaná diskuse je relevantní, konkrétně třetí příspěvek to říká jasně:
nick12ab
02-03-2012, 21:44
That is correct as pin 2 is the serial programming pin and if it goes high the PICAXE will try to start a program download. As the pin has no internal pull-down resistor (none of them do) the pin will float into either state causing unreliable operation without the serial in pin being connected to 0V.
ADDED:
If you otherwise want to use pin 2 for an input then include the 'disconnect' command in your programme.This, however, is no substitute for including a pull-down resistor or a connection to 0V as the PICAXE checks the Serial In pin for a download before the first command gets executed (otherwise you'd never be able to reprogram a PICAXE that had had the disconnect command used at the start) so if the pin is floating high at power on then the program will not run.
tedy až na to, že v jejich případě řeší, jestli pin je při startu ve vzduchu nebo stažený pull-down odporem k zemi, ale tady je přes sepnutý spínač při startu přivázaný nahoru (čili místo náhodného porušení, že pin je vždycky 0 tu máme naopak zajištěno, že určitě bude 1)