freqout program bs2
Hello I have a question regarding frequout command on the bs2. I am sending a frequency of 38500 to an ir led. I am also trying to count output cycles from the ir reciever.·everything works well seperatly, but when i try the freqout and the count commands together it doesn't work because·it·sends the frequency before it starts to count. Is there a way to turn on an output frequency and leave it on permanently?
Comments
The Stamp is a single threaded processor. It can only do one thing at a time. If you need to do two things at the same time, you either need external hardware or another "co-processor" to do the second task. If the two things are slow enough so they can be interleaved, the Stamp can do it (like controlling 2 or 3 servos at the same time). If not, you will need a faster processor (like the SX series) or a multi-processor (like the Propeller which is also faster).
I think the Robotics book in the Stamps in Class series shows how to use a 555 to do this.