User`s manual

AMBE-3000™-HDK Development Board
User’s Manual Version 1.1
Page 31
DVSI Confidential Proprietary
Operation
Codec PLAY/RECORD Audio Command Example:
C:\ Command Prompt
- X
hdkcom.exe –port COM4 460800 –uart or –ppt –r 39 -playrecord
dvsi36.bit rec1.bit
-port COM4 is the PC’s COM port that the HDK communicates on as indicated by Windows
Device Manger
460800 is the baud rate of the PC connection
-ppt sets the HDK to use the PPT Interface of the AMBE-3000™ Vocoder chip
or
-uart sets the HDK to use the UART Interface of the AMBE-3000™ Vocoder chip
If neither –ppt or –uart is specified the PPT interface is used by default.
-r 39 is the rate index of the bit rate the file was originally encoded at. See Table 23 Standard
Rate Table for AMBE-3000. If it is desired to use rate words to set the rate – the format must be six
words in hex separated by a space as shown in the following example:
-r 0x0448 0x0766 0x0000 0x0000 0x0000 0x6848
-playrecord decodes the previously encoded file and plays it out the audio output and at the
same time encodes the audio input and saves it to a file
dvsi36.bit is the name of the file to be played out the audio output
rec1.bit is the name of the encoded file from the audio input
Packet Mode
To encode / decode files to / from the PC via the USB interface the HDK has to be placed into Packet
Mode. In Packet Mode the HDK may be set to decode (-dec) an encoded file to a PCM file, encode (-
enc) PCM file to an encoded file or both (encode/decode) a file. In Packet Mode, the default setting for
the HDK is to use the AMBE-3000™ vocoder chip parallel interface for processing packets.
Using the hdkcom.exe program it is not necessary to set the HDK into Packet Mode (–mode packet).
The hdkcom.exe program will automatically switch the HDK into Packet Mode when the command line
uses any one of these three options (-dec, -enc, -encdec). After the file is encoded/decoded or both
to a file the HDK is automatically switched back into Idle mode. If it is desired to keep the HDK in
Packet mode to be ready to process files, then the
–mode packet
option must be used in the command line.
Encode File
-enc is used to encode a file from the PC, the (.pcm suffix) file input to the HDK via USB interface must
be 16-bit linear PCM data sampled at 8kHz. The file from the PC will be encoded by the AMBE-3000™
and then sent back to PC and saved as the (.bit) file as named in the command line.