Click to See Complete Forum and Search --> : PBasic language: Placing an EOM Flag for an ISD4004 Voice Chip


EEguy
November 16th, 2008, 07:04 PM
Hey guys,
I didn;t know where to post this so I am putting it here.
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?

Thanks

TheCPUWizard
November 16th, 2008, 07:52 PM
I see you posted on a number of forums.....

Did you look at the PDF documentation. On pages 14,15 is clearly shows what the EOM bit is contained in the SPI stream between the OVF and P0 bits...

There is also a decent tutorial here (http://nutsvolts.texterity.com/nutsvolts/200403/?pg=43)

Isn't it amazing what about 45 seconds with a search engine will give you...:eek::eek::rolleyes:

EEguy
November 16th, 2008, 08:38 PM
lol....what can I say the closer the deadline approaches the more desperate I get :$


I have gone through the datasheet (I have it in front of me) and read through it line by line, however I am just a little confused on how to implement it...

Once recording has stopped, is this when I SHIFTIN the eom flag?

And also when I go through my PlayBack Function in my code, would I just need to ask: IF (INT = 1) THEN PlaySound ??




Thanks for your input, btw...

TheCPUWizard
November 16th, 2008, 09:46 PM
It has been awhile since I had to use that family of chip, so I am not sure how much I can help.

Did you carefully read the information at the link I provided??? It seemed to cover most of the situations...