czestotliwosc w bascom

Apr 07, 2007 2 Replies

MAm pytanie do znawców tematu czy tak napisany program w bascom mo¿e dzia³aæ .Chodzi mi o to ¿e uk³ad ma mierzyæ czêstotliwo¶æ impulsu .


Config Timer0 = Counter , Edge = Rising



Config Lcd = 16 * 1a Dim Frequency As Word Cls Wait 1 Start Counter0 Do Cls Lcd "OBR=:" ; Frequency ; "" Frequency = 0 Counter0 = 0 Start Counter0 Wait 1 Stop Counter0 Frequency = Counter0 Loop



Ani praktycznie, ani teoretycznie nie ma mo¿liwo¶ci pomiaru czêstotliwo¶ci impulsu :)))

Counter=licznik ; Timer = timer

timer0

wait jest cholernie niedok³ade u¿yj timera 1 do liczenia ,a t0 to bramkowania... poszukaj w sieci znajdziesz na pewno taki program.( Bascom Collage tutaj by k³ani³ - jest to na 2051 ale przerobiæ go na avr jest prosto)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required