<html>
<head>
<meta content="text/html; charset=windows-1250"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dobrý den,
<br>
<br>
Nojo, měl jste pravdu. Já jsem bitWrite nikdy nepoužíval, takže jsem
si myslel, že stačí pinMode(12, OUTPUT);<br>
<br>
Už to vypadá jinak. Bez odporu, a bez vloženého zpoždění :<br>
<pre wrap=""><a class="moz-txt-link-freetext" href="http://xanadu.khnet.info/oscillo/bw_bez_r_delay1.png">http://xanadu.khnet.info/oscillo/bw_bez_r_otoceny.png</a></pre>
<br>
<br>
S pozdravem,<br>
<pre class="moz-signature" cols="72">--
Aleš Filip
Kutná Hora
<a class="moz-txt-link-freetext" href="http://xanadu.khnet.info">http://xanadu.khnet.info</a></pre>
<div id="quoteDIV">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Dne 25.1.2017 v 11:27 Jan Waclawek
napsal(a):<br>
</div>
<blockquote cite="mid:PC195201701251127450593015b917e@wek"
type="cite">
<pre wrap="">Ze Vy mate otoceny ten pin na vstup, tj. zapisom do PORTB zapinate/vypinate
len pullup?
Skuste do inicializacie pridat
bitWrite(DDRB,6, 1);
a dajte prec ten odpor.
wek
----- Original Message ---------------
Subject: Re: Arduino a rychlost
From: Ales Filip <a class="moz-txt-link-rfc2396E" href="mailto:nostromo@khnet.info"><nostromo@khnet.info></a>
Date: Wed, 25 Jan 2017 11:13:02 +0100
To: HW-news <a class="moz-txt-link-rfc2396E" href="mailto:hw-list@list.hw.cz"><hw-list@list.hw.cz></a>
</pre>
<blockquote type="cite">
<pre wrap="">Dobrý den,
Další pokusy:
bitWrite(PORTB,6, 0);
delay(1);
bitWrite(PORTB,6, 1);
delay(1);
bez odporu
<a class="moz-txt-link-freetext" href="http://xanadu.khnet.info/oscillo/bw_bez_r_delay1.png">http://xanadu.khnet.info/oscillo/bw_bez_r_delay1.png</a>
bitWrite(PORTB,6, 0);
delay(1);
bitWrite(PORTB,6, 1);
delay(1);
odpor 5k6 na zem
<a class="moz-txt-link-freetext" href="http://xanadu.khnet.info/oscillo/bw_r5k6_delay1.png">http://xanadu.khnet.info/oscillo/bw_r5k6_delay1.png</a>
bitWrite(PORTB,6, 0);
bitWrite(PORTB,6, 1);
odpor 5k6 na zem
<a class="moz-txt-link-freetext" href="http://xanadu.khnet.info/oscillo/bw_r5k6_full.png">http://xanadu.khnet.info/oscillo/bw_r5k6_full.png</a>
bitWrite(PORTB,6, 0);
10x za sebou
asm volatile("nop");
bitWrite(PORTB,6, 1);
10x za sebou
asm volatile("nop");
odpor 5k6 na zem
<a class="moz-txt-link-freetext" href="http://xanadu.khnet.info/oscillo/bw_r5k6_20xnop.png">http://xanadu.khnet.info/oscillo/bw_r5k6_20xnop.png</a>
a nakonec
digitalWriteFast(pinNum, HIGH);
digitalWriteFast(pinNum, LOW);
s odporem i bez stejné!
<a class="moz-txt-link-freetext" href="http://xanadu.khnet.info/oscillo/fw_5k6_1.png">http://xanadu.khnet.info/oscillo/fw_5k6_1.png</a>
S pozdravem,
--
Aleš Filip
Kutná Hora
<a class="moz-txt-link-freetext" href="http://xanadu.khnet.info">http://xanadu.khnet.info</a>
</pre>
</blockquote>
<pre wrap="">_______________________________________________
HW-list mailing list - sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
<a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
<a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
</pre>
</blockquote>
<br>
</div>
</body>
</html>