Search found 3 matches

by mte
19 February 2010, 10:35 AM
Forum: ZBasic Language
Topic: zx-24a inputcapture routine
Replies: 5
Views: 3229

The only problem that I seem to be having is that when I output my pulse readings (as shown below), it seems to be reading only the high(or low) the portion of the pulse. Am I missing something? Thanks, kemt Public Sub pulsecount() ' to get pulse from channel A count = 1 ' capture bo...
by mte
18 February 2010, 12:43 PM
Forum: ZBasic Language
Topic: zx-24a inputcapture routine
Replies: 5
Views: 3229

Thanks for your response. I had one more question. On page 132 of the ref. maual, on the description of "inputcaptreEX' , it says, InputCaptureEx(pin, data, count, flags) data is "The array in which pulse width information will be stored" & "The stored data reflects the width...
by mte
17 February 2010, 9:12 AM
Forum: ZBasic Language
Topic: zx-24a inputcapture routine
Replies: 5
Views: 3229

zx-24a inputcapture routine

hello, I am measuring pulse widths from an incremental encoder for a fairly easy application. Since the revolution on the shaft varies over a long range, I want to be able to read for as long as possible without losing accuracy. Right now, I have set the register.timerspeed1 @ 1/256th pre-scaled val...