·· Yes, you can take the +5V source from the Vdd output on the BOE.· The 8 ohm speaker is being used as a poor-man's microphone, hence the op-amp.· As for you code, I didn't check it.· Is there a problem with the program and/or hardware?

Thank you. yeah, I don't get a reading for the frequency. I tried using a mic and then a line level (electronic keyboard to a 1/4" jack). I think with the line level input I would have to do some math?

I'm using the op amp and the Schmitt-trigger, I think it's wired correctly. To test it (the op amp and schmitt trigger circuit) I ran electric keyboard through the input, and the output (pin 2 of the schmitt trigger into an amplifier and I got sound out of it, then added pin 2 of the S-T to the BS2.) But, I don't get any values on my debug.

Thanks for any suggestions.

Tony

Chris Savage

08-14-2005, 06:43 AM

Tony,

·· I couldn't find that circuit until I realized you listed the·first book.· The project is actually in the Second book, and everything seems to match that assuming you're input goes to P7.· I would re-check your wiring.· For anyone else interested, the circuit is on page·91 of the Microcontroller Application Cookbook Volume 2.