background image

…where "!AP16" is the preamble that allows the AP-16+ to exist on the same communications line as other
devices (e.g., DC-16, FC-4, RC-4), 

address

 is the board address set with configuration switches A1 and A0,

command

  is   a   single-character   command   designator,   and  

data

  is   any   value(s)   that   may   be   required   by

command.  

AP-16+ Address settings for remote commands.

  OPTION  A1

OPTION  A0

Address = %00  (0)

OFF

OFF

Address = %01  (1)

OFF

ON

Address = %10  (2)

ON

OFF

Address = %11  (3)

ON

ON

NOTE

: Valid addresses are in the range of %00 (0) to %11 (3).  Commands that do not generate a

response to the host will also work with the global address, $FF (255).

The baud rate for serial communications is set with the BR option switch.  When the BR option is set to OFF
the AP-16+ uses 2400 baud (e.g., Prop-1); when the BR option is set to ON the AP-16+ uses 38.4k baud
(e.g., Prop-2, Prop-SX).

The following section details the serial commands for the AP-16+.

"X" :: Reset

Syntax:

"!AP16", 

address

, "X"

Reply:

None

The 

"X"

 (reset) command stops a file that is presently playing (via 

"P"

 command only, AMBIENT.WAV is not

affected).   If the ambient loop switch (

) is closed and AMBIENT.WAV is on the SD card, it will restart when

the “X” stops another file.

Prop-1 Example

  SEROUT Sio, OT2400, ("!AP16", %00, "X")      

In this example a file that was previously started, either manually or using a 

"P"

 command, will be stopped

and the random play list will be reset.   Note that the reset command sets the channel levels and playback
speed to 100%.

"V" :: Get AP-16 Version Number

Syntax:

"!AP16", 

address

, "V"

Reply:

3-byte (ASCII) version string

Prop-1 Example:

  SEROUT Sio, OT2400, ("!AP16", %00, "V")
  SERIN  Sio, OT2400, id0, id1, id2
  DEBUG "AP-16 Version ", #@id0, #@id1, #@id2, 13

6

EFX-TEK  

  www.efx-tek.com  

  [email protected]

Summary of Contents for AP-16+

Page 1: ...l scale industrial control FEATURES BENEFITS Plays stereo WAV files 16 bit PCM up to 44 1kHz Files stored on standard SD card FAT or FAT32 format 24 stand alone files under manual control Optional aut...

Page 2: ...trol for speaker output D SD card socket N Speaker output 4 8 E Start input dry contact O Line level output F Start input 12 to 24 VDC P Pre play delay potentiometer G Start input PIR Q Post play dela...

Page 3: ...e g MP3 up sampling is not recommended as it can lead to audio artifacts in the form of clicks pops and noise in the up sampled file It is best to maintain or even lower the sample rate when from com...

Page 4: ...switch For example if the Random option switch is set to ON and the AUDIO SELECT switch is set to 7 the AP 16 will play one of the files in the range SFX00 WAV through SFX07 WAV Note that the Random...

Page 5: ...table below describes the function of each switch BR Sets the baud rate for serial control see below When OFF the baud rate is 2400 Prop 1 when ON the baud rate is 38400 Prop 2 Prop SX A1 Controls th...

Page 6: ...00 baud e g Prop 1 when the BR option is set to ON the AP 16 uses 38 4k baud e g Prop 2 Prop SX The following section details the serial commands for the AP 16 X Reset Syntax AP16 address X Reply None...

Page 7: ...lay or reset command use zero 0 as the loops parameter Prop 1 Example SEROUT Sio OT2400 AP16 00 PS 1 1 In this example the AP 16 at address 00 will play SFX01 WAV one time If the ambient Loop switch i...

Page 8: ...med WAV file command is used to play a WAV file by name which must conform to the DOS 8 3 file naming convention When using the PW command the WAV file extension is optional but the file name must be...

Page 9: ...k speed 50 to 200 Note that the maximum sample rate is 44 1kHz so a 44 1kHz file cannot be made to play faster Prop 1 Example SEROUT Sio OT2400 AP16 00 S 75 In this example the AP 16 at address 00 wil...

Page 10: ...is the major version number and YY is the minor version number If you have a Parallax Prop Plug and the Propeller Tool Software you may load this file and download it into the AP 16 the programming c...

Page 11: ...n Unit Min Typical Max Supply Voltage VIN 12 18 VDC Supply Current IIN 150 mA Output Power 18VDC 4 PO 18 20 W Output Power 18VDC 8 PO 10 12 W Output Power 12VDC 4 PO 13 W Output Power 12VDC 8 PO 8 W O...

Reviews: