05-26-2011 04:28 AM
I want to implement the if-loop to do something like this.
Input signal (u1) is a microphone.
Then I want the 'if'-block to do:
if (u1 > 0.5)
reset the clock to 0.
keep reading input signal
I also don't know how to set up a clock that follows the input signal of the microphone real-time.
Anyone can help?
05-26-2011 06:39 AM
Is u1 being sampled by an ADC? If so, you'll probably want to use the ADC's sampling clock in your synchronous process.
If u1 is an asynchronous digital signal, you would normally sample it using a system clock, or a derived frequency thereof.
05-26-2011 10:21 AM
so what language / tool do you want to use ?