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 generation with pic??
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
yerpa



Joined: 19 Feb 2004
Posts: 58
Location: Wisconsin

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

PostPosted: Fri Mar 28, 2008 10:30 am     Reply with quote

Hello ratgod,

I posted the code in the code library associated with this forum. It is at:

http://www.ccsinfo.com/forum/viewtopic.php?t=29550

or search for the topic: 8-bit wav file player with Xmodem RS-232 for 16F873.

I'm nor sure what your output_d() routine really does, but I'm guessing it outputs the low 8 bits of your data to an 8-bit port. In any case, the sound it produces will all depend on what you stuff into the buffer. Instead of reading the buffer, just output the low 8 bits of your variable "a" directly to the DAC. You should get a ramp wave at about 65 cycles per second. That would quickly verify your hardware. Good luck!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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