31316 Parallax Inc, 31316 Datasheet - Page 8

Microcontroller Modules & Accessories AP-16 Audio Player

31316

Manufacturer Part Number
31316
Description
Microcontroller Modules & Accessories AP-16 Audio Player
Manufacturer
Parallax Inc
Series
Propeller™r
Datasheet

Specifications of 31316

Product
Microcontroller Accessories
Data Bus Width
16 bit
Clock Speed
44.1 KHz
Operating Supply Voltage
18 V
Board Size
107.95 mm x 114.3 mm
Main Purpose
Audio, Audio Processing
Embedded
Yes, MCU, 32-Bit
Utilized Ic / Part
P8X32A
Primary Attributes
Plays Stereo WAV Files (16-bit), Dual 20W Amps (1 Per Channel)
Secondary Attributes
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Syntax:
Reply:
The "PS" (play SFX) command is used to play a specific SFX##.WAV file (0 to 15). The loops parameter is
used to specify the number of times to play the file (0 to 255); typically once (1). To continuously repeat the
specified file until another play or reset command, use zero (0) as the loops parameter.
Prop-1 Example
In this example, the AP-16+ at address %00 will play SFX01.WAV one time. If the ambient Loop s witch (Q) is
closed and AMBIENT.WAV is on the SD card, it will restart when SFX01.WAV has finished playing.
Syntax:
Reply:
The "P?" (play random SFX) command is used to play a random SFX##.WAV file (00 to 15). The # para-
meter limits the file selection, which always begins with zero (SFX00.WAV). For example, to randomly play
one of the files from SFX00.WAV through SFX04.WAV, the # parameter would be set to four (4). As with the
"PS" command, the loops parameter specifies the number of times to repeat the file.
Note that the AP-16+ maintains an internal play list so that – if using the same limit # in the "P?" command –
no file will be repeated until all within the range have played.
Prop-1 Example
In this example, the AP-16+ at address %01 will play one of the files in the range SFX00 through SFX07.WAV
one time. If the ambient Loop switch (Q) is closed and AMBIENT.WAV is on the SD card, it will restart when
SFXnn.WAV has finished playing.
Syntax:
Reply:
The "PA" (play SFX) command is used to play a specific AUX##.WAV file (1 to 8). The loops parameter is
used to specify the number of times to play the file (0 to 255); typically once (1). To continuously repeat the
specified file until another play or reset command, use zero (0) as the loops parameter.
Prop-1 Example
In this example, the AP-16+ at address %10 will play AUX07.WAV one time. If the ambient Loop switch (Q) is
closed and AMBIENT.WAV is on the SD card, it will restart when SFX01.WAV has finished playing.
8
"PS" :: Play SFX##.WAV File
"P?" :: Play Random SFX##.WAV File
"PA" :: Play AUX##.WAV File
SEROUT Sio, OT2400, ("!AP16", %00, "PS", 1, 1)
SEROUT Sio, OT2400, ("!AP16", %01, "P?", 7, 1)
SEROUT Sio, OT2400, ("!AP16", %10, "PA", 7, 1)
"!AP16", address, "PS", #, loops
None
"!AP16", address, "P?", #, loops
None
"!AP16", address, "PA", #, loops
None
EFX-TEK ● www.efx-tek.com ● teamefx@efx-tek.com

Related parts for 31316