View previous topic :: View next topic |
Author |
Message |
Trevor Guest
|
sound on a pic? |
Posted: Sun Nov 24, 2002 9:03 pm |
|
|
I'm interested in outputting sound... is there anyway that I can program a PIC to do this?
Thanks
___________________________
This message was ported from CCS's old forum
Original Post ID: 9353 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: sound on a pic? |
Posted: Mon Nov 25, 2002 12:16 pm |
|
|
:=I'm interested in outputting sound... is there anyway that I can program a PIC to do this?
------------------------------------------------
You should use PicList as a resource for Pic ideas.
Here is their page for audio. Look at the link
that goes to picsound.htm. It appears to have a lot of info.
<a href="http://www.piclist.com/techref/microchip/io/audio.htm" TARGET="_blank">http://www.piclist.com/techref/microchip/io/audio.htm</a>
You could also use the Search function of this board.
Search for the word "music".
___________________________
This message was ported from CCS's old forum
Original Post ID: 9403 |
|
|
Dale Botkin Guest
|
Re: sound on a pic? |
Posted: Tue Nov 26, 2002 12:06 pm |
|
|
I have been particularly impressed with this approach:
<a href="http://centauri.ezy.net.au/~fastvid/picsound.htm" TARGET="_blank">http://centauri.ezy.net.au/~fastvid/picsound.htm</a>
___________________________
This message was ported from CCS's old forum
Original Post ID: 9453 |
|
|
Joshua Lai
Joined: 19 Jul 2004 Posts: 42 Location: Malaysia, PJ
|
|
Posted: Mon Jul 19, 2004 9:09 pm |
|
|
I read about Black Roman's method to generate sound. The algorithm seems working. However he wrote the code in asembly language, RETLW "0101 0101" means put the bits into accumulator w.
My question is: how to put the bits array into C program? |
|
|
lucky
Joined: 12 Sep 2003 Posts: 46 Location: South Coast - England
|
MP3 |
Posted: Tue Jul 20, 2004 4:30 am |
|
|
Use MP3! Much more fun!!! _________________ Lucky
www.mpic3.com - MPIC3 player project, Forum, Downloads, Online Shop |
|
|
Guest
|
|
Posted: Tue Jul 20, 2004 5:27 am |
|
|
I once knew someone progam a beep by calculatin sinewave value when he started and using 8 bits to output numerical values, he then chucked the binary signal through a DAC and ended up with a perfect whistle.
doesn't let you make complex sounds though.
you could use the ADC to sample values fed in from a microphone them play them back.
(this was a reply to the original question) |
|
|
carlosma
Joined: 24 Mar 2004 Posts: 53 Location: Portugal
|
|
Posted: Wed Jul 21, 2004 3:15 am |
|
|
See the example EX_TONES.C
This example plays the song "Happy Birthday."
Carlos |
|
|
|