PropBasic Counter question.
Mickster
Posts: 2,693
in Propeller 1
How do I simply set the counters to accumulate POS pulses?
This page of the manual is blank.
Cheers!
This page of the manual is blank.
Cheers!
Comments
Let me know if you need more info.
Bean
Do I understand this correctly?
COUNTERA mode{, apin {, bpin{, frqx{, phsx}}}}
mode = 80 (pos edge detection)
apin = 7 (the pin I want to count)
bpin =0 (not using)
frqx = 1 (the increment value ?????)
phsx = 0 (the initial setting of the counter???)
So, at any time in my code, PHSA can be referenced to determine how many pulses have occurred?
Correct.
As always, thank you for PropBasic, it's fantastic for quick, fast prototyping of ideas for sure!
-Mike
Only some optimizations.
I'm actually up to version 1.44, but there are still some things I want to improve.
Bean
-Mike