Arduino a rychlost

Jan Waclawek konfera na efton.sk
Středa Leden 25 11:27:45 CET 2017


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 <nostromo at khnet.info>
   Date: Wed, 25 Jan 2017 11:13:02 +0100
     To: HW-news <hw-list at list.hw.cz>

>Dobrý den,
>Další pokusy:
>
>bitWrite(PORTB,6, 0);
>delay(1);
>bitWrite(PORTB,6, 1);
>delay(1);
>bez odporu
>http://xanadu.khnet.info/oscillo/bw_bez_r_delay1.png
>
>bitWrite(PORTB,6, 0);
>delay(1);
>bitWrite(PORTB,6, 1);
>delay(1);
>odpor 5k6 na zem
>http://xanadu.khnet.info/oscillo/bw_r5k6_delay1.png
>
>bitWrite(PORTB,6, 0);
>bitWrite(PORTB,6, 1);
>odpor 5k6 na zem
>http://xanadu.khnet.info/oscillo/bw_r5k6_full.png
>
>bitWrite(PORTB,6, 0);
>10x za sebou
>asm volatile("nop");
>bitWrite(PORTB,6, 1);
>10x za sebou
>asm volatile("nop");
>odpor 5k6 na zem
>http://xanadu.khnet.info/oscillo/bw_r5k6_20xnop.png
>
>a nakonec
>digitalWriteFast(pinNum, HIGH);
>digitalWriteFast(pinNum, LOW);
>s odporem i bez stejné!
>http://xanadu.khnet.info/oscillo/fw_5k6_1.png
>
>
>
>
>S pozdravem,
>
>-- 
>  Aleš Filip
>  Kutná Hora
>  http://xanadu.khnet.info
>
>



Další informace o konferenci Hw-list