yerpa
Joined: 19 Feb 2004 Posts: 58 Location: Wisconsin
|
|
Posted: Fri Mar 28, 2008 10:30 am |
|
|
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! |
|