please dont rip this site

PIC Microcontoller IO Method

Wave to data table converter

by Olin Lathrop of Cognivis.com says:

I did a little private Halloween project with a PIC 16F876 that included generating some sounds. I use the PWM output at over 50KHz with low pass filtering to serve as a D/A. Two 7-bit sound samples are stored per program memory location. I use a *very* low sample rate of about 2KHz, which is OK for the low frequency grunts and growls it is intended for. With this setup, there is room for about 7 seconds of sound in the program memory not used by the program. The largest single chunk of work was writing the windows program to read a WAV file, filter and resample to my 2KHz rate, and then write the PIC assembler file for the data table.

You will need a significantly higher sampling rate for reasonable voice. 6KHz is probably reasonable, but you might be able to get away with 4KHz or so if it doesn't have to sound that great and you use people with low pitch voices. Compression can also decrease the size of the data a great deal, especially since you know the sound is a human voice.

The file EMBEDINC.TAR contains a directory tree in TAR format, which should be readable on any [Windows... ed: use winzip] system. This file expands to the single top level directory EMBEDINC containing a tree of stuff. The WAV_HAL executable is in the COM (commands) directory, and the Pascal source code for it is in the SOURCE/PICS directory. The remaining files and directory structure is only useful if you want to run WAV_HAL.EXE. If you run WAV_HAL where it is instead of making a copy of it somewhere else, it will be able to find the message files and write descriptive errors to standard output. Otherwise you get messages like "Message xxx in subsystem yyy."

embedinc.tar

Also:

Questions:


file: /Techref/microchip/dsp/wav2dt.htm, 2KB, , updated: 2007/9/17 20:33, local time: 2024/3/28 06:19,
TOP NEW HELP FIND: 
34.200.248.66:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.massmind.org/techref/microchip/dsp/wav2dt.htm"> Wave to data table converter</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to www.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .