CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

sound on a pic?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Trevor
Guest







sound on a pic?
PostPosted: Sun Nov 24, 2002 9:03 pm     Reply with quote

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

View user's profile Send private message

Re: sound on a pic?
PostPosted: Mon Nov 25, 2002 12:16 pm     Reply with quote

:=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?
PostPosted: Tue Nov 26, 2002 12:06 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Mon Jul 19, 2004 9:09 pm     Reply with quote

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? Wink
lucky



Joined: 12 Sep 2003
Posts: 46
Location: South Coast - England

View user's profile Send private message Visit poster's website

MP3
PostPosted: Tue Jul 20, 2004 4:30 am     Reply with quote

Use MP3! Much more fun!!! Laughing
_________________
Lucky
www.mpic3.com - MPIC3 player project, Forum, Downloads, Online Shop
Guest








PostPosted: Tue Jul 20, 2004 5:27 am     Reply with quote

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

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Wed Jul 21, 2004 3:15 am     Reply with quote

See the example EX_TONES.C

This example plays the song "Happy Birthday."

Carlos
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group