Haberler:

Foruma Resim Yükleme ve Boyut Sınırlaması ( ! )  https://bit.ly/2GMFb8H

Ana Menü

RCTIME NE YAPAR

Başlatan lordtorm, 17 Ağustos 2007, 16:35:55

lordtorm

PBP DA RCTIME KOMUTU TAM OLARAK NE İŞ YAPAR BİLEN VARSA YARDIM ELİ UZATSIN
bırakayım diyorum bu işleri

SpeedyX

RCTIME Pin, State, Var

Make "Pin" an output. Take "Pin" to "State".

In this case HIGH PORTA.0

PAUSE to let "Pin" charge or discharge the cap to "Pin" "State".

PAUSE 10

Now make "Pin" an input, start the timer, and record how long it takes
for "Pin" to change from "State".

In this case, how long does "Pin" stay at "State" or logic 1 once "Pin"
has been made an input. As soon as "Pin" reaches the PICs input
threshold RCTIME ends and returns the time in 10uS or 2uS counts
depending on the oscillator frequency.

State should always be the opposite of what the resistive element
in the RC network is connected to for RCTIME to return the expected
value. You'll pretty much always want to use a word sized var for the
result.

M_B

RCTIME  Pin , Konum; Değişken

RCTIME komutu bir pinin konumunu koruma suresını ölcmek için kullanılır. PULSIN komutuyla cok benzerdir. Pin 0-15 arasında bir sayı, 0-15 sayılarını ıceren degısken (orn. BO) yada pin adı (orn. PORTA.0)  olabılır.

RCTIME , potansiyometre ( veya benzer bir omik direnc) değerini okumak ıcın kullanılabılır. Değişken icerisinde okunacak olan direnc degeri bir kondansatorun direnc uzerınden  şarj olma suresı veya desarj olma suresını olcerek bulunabılır.

Ornk.
low PORTB.3   ' kondansatorun deşarjını baslat.
Pause 10        ' 10ms Desarj yap
RCTIME PORTB.3, 0, WO   ' Pin deki potansiyometre direncini oku ve WO yaz.


Kolay gelsın
İmkanın sınırlarını görmek için imkansızı denemek lazım.                                                             Fatih Sultan Mehmet

lordtorm

M_B hocam yani palsin bir oldugu yada sıfır oldugu süreyimi ölçüyor
bırakayım diyorum bu işleri