Doubts on CTRA
hal2000
Posts: 66
Hello all
I have a doubt on CTRA
I would like to generate a 5kHz signal on pin 20 and simultaneously
counting the pulses that result in a period of time.
Is it possible to use as CTRA oscillator, and PHSA to count the cycles?
Do I need to use PHSB?
Described in the manual, but I do not have enough English to understand
using CTRA
Thank you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Did the curiosity kill the cat?
......................................
I have a doubt on CTRA
I would like to generate a 5kHz signal on pin 20 and simultaneously
counting the pulses that result in a period of time.
Is it possible to use as CTRA oscillator, and PHSA to count the cycles?
Do I need to use PHSB?
Described in the manual, but I do not have enough English to understand
using CTRA
Thank you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Did the curiosity kill the cat?
......................................
Comments
http://obex.parallax.com/objects/52/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Did the curiosity kill the cat?
......................................
Is this cycle oscillator and counter with the same CTRA?
Pin := 5
DirA[noparse][[/noparse]Pin] := In
CTRA := 0
CTRA := (%01011 << 26 ) | (%001 << 23) | (0 << 9) | (Pin)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Did the curiosity kill the cat?
......................................
Andy
CTRA used also oscillator
CTRB a count
Thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Did the curiosity kill the cat?
......................................