3 Attachment(s)
Microchip sound playing and recording application note AN643
I had not seen this before. I have not played the files from a PIC yet, but it sounds interesting as well. This C code :( uses a "simplified Adaptive Differential Pulse Code Modulation (ADPCM) algorithm". The files look slightly larger than the Roman Black files, but not by much, comparing to the numbers files sizes. The source code also has an executable file called winspeech.exe which encodes wave files.
Attachment 4694
Source code: http://ww1.microchip.com/downloads/e...otes/an643.zip
Re: btc Player re-creation
Darrel,
I was reading your article on Wiki and decided to test it. I have a proto hardwares done (18F452 + 4MHZ cristal) and I would like very much to use this tool with my circuits. Firstlly I want to understand better some things.
I tested using RB_Sound Folder files (TestRBSound.pbp, DT_RBSound.pbp and the asm files like HitNew.asm, FascinatingNew.asm...)
in the TestRBSound.pbp is assigned:
btc_Pin1 - PORTC.2
btc_Pin2 - PORTC.3
LATE_LED - PORTC.5
well, I wired a led to the PortC.5. It is done
What I need to do with btc_Pin1 and btc_Pin2. How to wire and where?
...others files (Number folder) into the .asm files has a draw:
Digital label + resistor R = 25968 ohms and a 0.22uF capacitor to the ground and Analogue label on junction. Need I to put a speeker here or a buzzer? Or is necessary to use a pre-amplifier? Do you used the BTc.exe (BTC Sound Encoder from Roman Black)? I teste it using a Ding.wav from windows and exported to a ding.asm, but into the files is diferent comparing with your files...Into the one.asm for example you coment "File converted to .BSM format with the freeware btc_convertor by Darrel Taylos...Is it other converter diferent of the BTC Soundd Encoder?
Well...
Then I decided to wire a 26k resistor to portc.2 and a 0.22uF capacitor like the draw, and puted a buzzer on junction only to test. The portC.3 NC.
I compiled with sucess but it don't worked!
The led blink just one time and nothing occur.
I don't know what I need to use, if a buzzer, a speeker, a amplifier, how to wire it with certainly but the led should to blink basead on program!
Then I alterate the program to blink 5 times, and then the led blinked 5 times but after it stoped again...I percever the after @ PlaySound BigGun line, nothing occur (led always low, buzzer low)
If you can help me to use it I would be very happy.
I really apreciate it and woul like to use in my projects