Help asm
ratronic
Posts: 1,451
I am trying to figure out how to wait or set sysclk to 0 and also to get cnt back in spin after. I really haven't any asm code to show you , but maybe you can show me an example how to read the clk into a variable so·that I can print it in spin or from asm. And how to cnt input pin 7 in asm. ·I have been trying but am unclear of syntax w/waitpne or ina in asm. Any help would be appreciated!! Thanks Dave.
P.S. I promise to learn if somebody can get started! (I am trying to time a negative pulse as fast as I can.)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
P.S. I promise to learn if somebody can get started! (I am trying to time a negative pulse as fast as I can.)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D RatFix it if ain't broke·
Comments
The system clock is an internal counter that cannot be reset. It can be read at any time by using the value "CNT" in Spin or the memory location "CNT" in assembly. Look in the Propeller Manual under CNT. For information about counting or timing a input on pin 7, read the application note (AN001) on the built-in counters here: www.parallax.com/propeller/downloads.asp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ D Rat
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ D Rat