TonyA
08-14-2005, 01:25 AM
I'm experimenting with something I found in "The Microcontroller Application Cookbook", for "measuring the frequency of an external audio source".
I've attached the scehmatic. There's a couple of things I wonder:
1. Could the +5 Volts that goes into the 74C14 at pin 14 be taken from the BS2's Board of Ed. power rail? Or should it have it's own +5 Volt source?
*Also, if you look at the schem. you see what looks like a speaker, and it's stated there "Dynamic Microphone or 8 Ohm speaker", why would there be an 8 Ohm speaker there if you are measuring sound?
Is my code right?
pulse VAR Word
Main:
PULSIN 7, 1, pulse
pulse = pulse * 2 ' double the pulse width
DEBUG HOME
DEBUG "pulse = ", DEC5 pulse, " ", CR
GOTO Main
Thanks for any help, I appreciate it.
Tony
Post Edited (TonyA) : 8/13/2005 6:26:45 PM GMT
I've attached the scehmatic. There's a couple of things I wonder:
1. Could the +5 Volts that goes into the 74C14 at pin 14 be taken from the BS2's Board of Ed. power rail? Or should it have it's own +5 Volt source?
*Also, if you look at the schem. you see what looks like a speaker, and it's stated there "Dynamic Microphone or 8 Ohm speaker", why would there be an 8 Ohm speaker there if you are measuring sound?
Is my code right?
pulse VAR Word
Main:
PULSIN 7, 1, pulse
pulse = pulse * 2 ' double the pulse width
DEBUG HOME
DEBUG "pulse = ", DEC5 pulse, " ", CR
GOTO Main
Thanks for any help, I appreciate it.
Tony
Post Edited (TonyA) : 8/13/2005 6:26:45 PM GMT