ISD4004 programming

Hi Folks,
I am using the mini pro and SPI to communicate to and ISD 4004 record and playback sketch. It works, kind of. I am sure I am not sending OP Codes to the ISD 4004.
I have looked at ISD4004 data sheets and have come up with two different descriptions of OP Codes and the sequence of OP Codes.
I have used the Stop OP Code, but the recorded message stops at the EOM, not at the time I request the Stop (i.e. in the middle of the recorded message).
I have tried different OP Code formatting until I am blue in the face and cannot even come up with any other ways to send the OP codes.

If anyone has been successful ins using the ISD 4004, I would like to see what the OP Codes look like for:

SetPlay at address Azero.
SePlay at address A10.
Stop

Thanks

Do you have links to relevant sheets?
Can you post your sketch?

the more info you give the better we can help

Appreciate the look:
I have cropped the program to a small snippit and running in the startup just to see if I can accomplish the play from address zero.
I have added lots of simulated 'delays' just to insure actions complete, these are not necessary, but just trying to eliminate problems.

I can make the chip play, but the it always starts at the last position. i am trying to reset it to location zero (start of recorded messages).
Please advise on the 'setPlay' on line 15. I need to send a 8 bit OP code with 16 bit address ( address 0). This instructs the playback to begin from address zero. I am not sure I have accomplished this in line 69.

The more I look at this problem, I am fairly convinced I do not have the formatting correct for the 'setPlay' command.
I also, have documentation that seems to differ in the sequence required to play the recording.

All help appreciated

testersketcha.ino (6.2 KB)

ISD4004-12MEIR-Winbond.pdf (966 KB)

good ISD4004.pdf (462 KB)

Hi folks.....
I found some logic errors in the some of the millis delay functions......I changed those.
I also tried to outline the areas of concern with question marks in effort to pin point the area of concern.

Again, the code is in setup in an effort to just check functionality. The two documentation files have some differences in the sequence of playing a message.

Thanks again

testersketcha.ino (6.55 KB)

RESOLVED!!!!!
Much had to do with getting the revised version of documentation from vendor.
Still working out some details but project is well on its way.

Here is a link for the revised edition, I believe the old version datasheet said to send the 8 command bits before the 16 address bits while the new revised version says to send the 16 address bits before the 8 command bits:

https://www.nuvoton.com/export/resource-files/ISD4004Datasheet.pdf (Revised Version)