I am writing a program in PBasic for my Basic Stamp 2 microcontroller to control an ISD4004 voice chip. My program will allow me to start recording, stop recording, and it should be able to play back the sound.
Now I have the program pretty much complete except for the fact that I have no idea how to place an End Of Message marker. I need an EOM after I stop recording so that the INTERRUPT knows where the first sound ends so that it can replay the sound.
The voice chip uses SPI protocol.
Can anybody give me some advice on how to accomplish this?