Hello, I am new to the world of PIC microcontrollers and I don't know if this topic has previously discussed here or not. I searched quite carefully but I found nothing so far.
I have found a program called "BTC Sound encoder version 3.0" made by Roman Black. It can encode WAV audio files to 1-bit sound and can be played from a PIC microcontroller. I have created a few samples with this program and stored them in a 24LC512 EEPROM. My problem is that I don't know how to redirect these samples (hexadecimal values, like 0xAA, 0x5E, etc) to the audio port(=piezo). I experiment with the PIC16F628A (at 4 MHz) and a piezo in PortA.3(Pin 2). The samples have been converted to 8 KHz.
I have found a couple of websites/forums around(like PIC Basic forums, Hi-tech C, etc), talking about BTC encoder with some provided source code, however I cannot use them as there's a problem using those compilers with PIC16F628A. The only one compiler which works almost great with whatever microcontroller I tried to use, is offourse GCBASIC.
Is there someone who might have tried BTC Sound Encoder with PIC? If so, could I have some assistance, please, with some GCBASIC (or assembler code)? If some people had success to have BTC audio with PIC Basic, I suppose that it can also be done with GCBASIC.
It is really interesting to drive "real" samples in the PIC and trying to play them. Sorry for my bad English. If someone is experienced with this before, I would appreciate some help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I am new to the world of PIC microcontrollers and I don't know if this topic has previously discussed here or not. I searched quite carefully but I found nothing so far.
I have found a program called "BTC Sound encoder version 3.0" made by Roman Black. It can encode WAV audio files to 1-bit sound and can be played from a PIC microcontroller. I have created a few samples with this program and stored them in a 24LC512 EEPROM. My problem is that I don't know how to redirect these samples (hexadecimal values, like 0xAA, 0x5E, etc) to the audio port(=piezo). I experiment with the PIC16F628A (at 4 MHz) and a piezo in PortA.3(Pin 2). The samples have been converted to 8 KHz.
I have found a couple of websites/forums around(like PIC Basic forums, Hi-tech C, etc), talking about BTC encoder with some provided source code, however I cannot use them as there's a problem using those compilers with PIC16F628A. The only one compiler which works almost great with whatever microcontroller I tried to use, is offourse GCBASIC.
Is there someone who might have tried BTC Sound Encoder with PIC? If so, could I have some assistance, please, with some GCBASIC (or assembler code)? If some people had success to have BTC audio with PIC Basic, I suppose that it can also be done with GCBASIC.
It is really interesting to drive "real" samples in the PIC and trying to play them. Sorry for my bad English. If someone is experienced with this before, I would appreciate some help.