Jonathan Arias

MC9S12C32 - Interfacing a microphone, speaker, and more memory

Discussion created by Jonathan Arias on Sep 11, 2009
Latest reply on Sep 11, 2009 by Wade Hassler

Hello all,

 

First, thanks for reading.  Let me share some background info.  I am in my last semester of engineering at my university and my team (4 guys) is building a robot for an internal competition (local to the university). 

 

We plan to use the NanoCore12 NC12DXC32 which uses the 9S12C32.  Our design will have 3 IR sensors, 2 distance sensors, 6 LED's, a 8x2 char LCD display, and we want to have a speaker and microphone.  (The robot most likely won't be moving when a person is using the microphone feature)

 

I wanted to know if anyone here has experience using/interfacing a microphone (I am guessing it will use an input capture port) with this mcu, and if we would need additional memory to actually make the feature "worth it".

 

This is based on my estimation that 1 second of audio at 500 hz will take up almost all of our ram (2k).  It would be nice to record 4 seconds or something and to store it in memory so that some filtering could be done on the data (maybe filter out the lower or higher frequencies, and play it back on the speaker).  

 

What is the most common way to add memory?  A 4k chip?  Luckily, two of our team members have experience with the motors, chassis, h bridge, and distance sensors.  We just need some guidance on memory expansion, mic and speaker.  

 

Thanks in advance and I would appreciate any feedback or suggestions.  If you need more info from my side I would be happy to share.

 

Thanks

Outcomes