Shop OBEX P1 Docs P2 Docs Learn Events
Counter — Parallax Forums

Counter

haimhaim Posts: 25
edited 2007-11-15 02:55 in Propeller 1
Hi,

I am stucked with·a counter problem. I have tried for hours, but still can not figure it out. For the counter project, I have two incoming signals. One is connected to pin0 and the other connected to pin4. The frequency of the pin0 is about 20 Hz, and the pin4 is about 20KHz. I used·pin0 as the counter start and reset.·After the counter started, the counter kept·accumulating·the incoming pulse, when it reached the set point·then an output pulse·was sent. Please see the code file attached. Thanks for helping.

Hai
Sign In or Register to comment.