Propeller capability with asynchronous inputs
lz
Posts: 3
I have a potential application that would require knowing an asynchronous state change on two separate inputs to within 5 uSec of their changes.
Is this possible with a propeller chip? Since interrupts are not available on the prop. chip and I can not poll for these events, how would this be done.
Thanks.........
Is this possible with a propeller chip? Since interrupts are not available on the prop. chip and I can not poll for these events, how would this be done.
Thanks.........
Comments
A better way would be to use WAITPNE to wait for one of the pins to change state. Then grab CNT and use a bit of boolean logic to figure out which pin changed. With this method the input events could be detected with an accuracy of one clock cycle as long as they didn't happen too close together. (within limits, this should work well even in spin)
Lawson
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lunch cures all problems! have you had lunch?
Lawson
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lunch cures all problems! have you had lunch?