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

If I wanna generate a sound from values in my EEPROM...??

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



Joined: 21 Jan 2004
Posts: 12

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

If I wanna generate a sound from values in my EEPROM...??
PostPosted: Mon Apr 05, 2004 7:33 am     Reply with quote

I have hex values of a sound in my EEPROM and I wanna use the PWM of my PIC16f877 to play this sound. So basicly how would I go about it!!!!

how do I write to the PR2 register and how can change my frequency to modulate the signal in fonction of the hex values of the sound
asjad



Joined: 09 Mar 2004
Posts: 52
Location: Greater Manchester - UK

View user's profile Send private message

PostPosted: Wed Apr 07, 2004 4:00 pm     Reply with quote

Open the file 93C56.C (included with CCS compiler),
to see how to communicate with a eeprom

open ex_tones.c(included with CCS compiler),
to see how to use the PWM for making noises

Marriage these 2 techniques together to get what you want

----------------------------------------------------------------

Try using 2 PWM to produce tones of mixed frequenices

eg 1kHz mixed with 10Hz etc....


Hope this helps!
_________________
Best Regards
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