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 support@ccsinfo.com

pic sounds, how to do

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



Joined: 15 Jan 2007
Posts: 10
Location: EU

View user's profile Send private message

pic sounds, how to do
PostPosted: Mon Jan 15, 2007 4:47 am     Reply with quote

Hi,

I noticed that Roman Black's site was updated.
http://www.romanblack.com/picsound.htm
He has improved his btc sound encoder utility very much.

Now my question:
How to implement the hardware and software. His instructions are reasonably detailed regarding the HW side (I will experiment).
Yet how to do the software part? (output to pin X, timing, etc).

I just want to play a very short wav file (1 to 2 seconds).
PIC4520, CCS compiler 4.020.

Has anyone pulled it off?
Can I see it, please, can I? Wink
I would be very happy!

Greetings and thanks,
Auke
Imanjl



Joined: 15 Nov 2004
Posts: 42

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

PostPosted: Mon Jan 15, 2007 11:15 am     Reply with quote

hey man,,,,,Im working on a same project but I use some type of DAC chip to generate the sound the thing that u want is Pwm DAC and i think this may help u ...

http://www.k9spud.com/traxmod/pwmdac.php
anauta



Joined: 15 Jan 2007
Posts: 10
Location: EU

View user's profile Send private message

pic sounds, simple!
PostPosted: Tue Jan 16, 2007 6:24 am     Reply with quote

Hi,

Thanks for yuor help.
The info you provided is not enough to get me started however (beginner, what can I say ;) ).

I am looking for a very simple system with minimal (extra) hardware to play a few seconds of low-fi sound.

Anyone?

Thanks,
Auke
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Tue Jan 16, 2007 6:59 am     Reply with quote

Did you see the excelent work posted by Mark in the Code Library ?

http://www.ccsinfo.com/forum/viewtopic.php?t=22010&highlight=

Humberto
anauta



Joined: 15 Jan 2007
Posts: 10
Location: EU

View user's profile Send private message

pic sounds, simple!
PostPosted: Wed Jan 17, 2007 4:11 am     Reply with quote

Thanks Humberto,

It seems like a nice solution.

However, I need to play short wave files.
That is why I pointed to www.romanblack.com/picsound.htm.

So, how to play short audio (wave) samples?

Thanks,
Auke
yerpa



Joined: 19 Feb 2004
Posts: 58
Location: Wisconsin

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

PostPosted: Wed Jan 17, 2007 4:32 pm     Reply with quote

I have some code for the 16F873 that will play 11 Khz 8-bit wav files from a small eight-pin flash memory chip. It includes a simple X-Modem interface to upload the files via serial port. You command the files to play by sending a byte to the serial port. If you are interested, I could post the code. It uses all of the 'F873 code memory. You cannot move it to the larger PIC16 chips because the *=16 directive slows it down too much. Someday I'd like to port the program to the PIC18 series so that I can add features.
anauta



Joined: 15 Jan 2007
Posts: 10
Location: EU

View user's profile Send private message

PostPosted: Thu Jan 18, 2007 2:31 pm     Reply with quote

Hi yerpa,

Yes, I would like to see your code.
I want to port it to the PIC18 4520, using internal flash memory.

Thanks for your help,
Auke
CS
Guest







PostPosted: Thu Jan 18, 2007 7:05 pm     Reply with quote

Yes I would like to have this code too.
Currently I am using PIC16F917, it trigger a buzzer which can only had one sound.
I would like it to had a selection of sound too.
Do you had the hardware wiring too?
CS
yerpa



Joined: 19 Feb 2004
Posts: 58
Location: Wisconsin

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

PostPosted: Fri Jan 19, 2007 3:55 pm     Reply with quote

I just posted the code to the "code" section of these forums. If someone can tell me how to attach a pdf file a message in this forum. then I will post the schematic. Thanks for your interest and sharing of ideas!
anauta



Joined: 15 Jan 2007
Posts: 10
Location: EU

View user's profile Send private message

pic sounds, simple!
PostPosted: Mon Jan 22, 2007 4:53 am     Reply with quote

Thanks for the code, yerpa.

I shall give it a try!

Greetings,
Auke
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