Page 1 of 1

ZX-328N, will PlaySound command work ?

Posted: 09 August 2010, 13:12 PM
by shrdlu
Does the PlaySound command work on the ZX-328n ?

Normally the SPI EEPROM is not used with this CPU but if it was connected to the SPI bus as is typical for the VM ZX's will it function ?

Re: ZX-328N, will PlaySound command work ?

Posted: 09 August 2010, 13:36 PM
by dkinzer
shrdlu wrote:Does the PlaySound command work on the ZX-328n ?
Yes, but perhaps not in the way you were hoping. On all ZX devices, the PlaySound() routine reads the data for the sound from Program Memory beginning at the address specified. Some VM devices use an external SPI EEPROM for Program Memory while others (and all native mode devices) use internal Flash for Program Memory.

Upon reviewing it, I see that the manual page describing PlaySound needs to be modified to make this clear.

Re: ZX-328N, will PlaySound command work ?

Posted: 09 August 2010, 14:16 PM
by shrdlu
dkinzer wrote:
shrdlu wrote:Does the PlaySound command work on the ZX-328n ?
Yes, but perhaps not in the way you were hoping. On all ZX devices, the PlaySound() routine reads the data for the sound from Program Memory beginning at the address specified. Some VM devices use an external SPI EEPROM for Program Memory while others (and all native mode devices) use internal Flash for Program Memory.

Upon reviewing it, I see that the manual page describing PlaySound needs to be modified to make this clear.
I get it, so PlaySound works from the internal flash instead of needing an external eeprom. That's actually not bad (no eeprom required), just would not do to much with the 328n because it only has 32k of flash for program but the 1284n based stuff like has 120k flash, makes more sense for us there.

Thanks Don