if i want to define a variable, do i have to write
let w0 = 15
or can i just type
w0 = 15
and i want to build a tachometer for a single cylinder engine (for now)...
but it's going to be a while. for now i'm playing with the pulsin command.
i'm using a 555 timer to provide the pulse and debug to view.
my question is if i have pulsin 1,0,w0, it reads the time that pin 1 is low between pulses, correct? and writes that time in units of 10 us to w0 (4 Mhz). Does it "refresh" w0 each time the program loops? as in if there is no pulse will w0 go back to 0?
thanks for the help, i appreciate it!
this is all new to me... i'm studying mech. engr. but wish it was mechatronics. so much more fun.
let w0 = 15
or can i just type
w0 = 15
and i want to build a tachometer for a single cylinder engine (for now)...
but it's going to be a while. for now i'm playing with the pulsin command.
i'm using a 555 timer to provide the pulse and debug to view.
my question is if i have pulsin 1,0,w0, it reads the time that pin 1 is low between pulses, correct? and writes that time in units of 10 us to w0 (4 Mhz). Does it "refresh" w0 each time the program loops? as in if there is no pulse will w0 go back to 0?
thanks for the help, i appreciate it!
this is all new to me... i'm studying mech. engr. but wish it was mechatronics. so much more fun.