AMC DSP8X8 User Manual page 15

Digital signal processor
Table of Contents

Advertisement

Software interface
Example
Command
HEX code
Set input 1 volume to 0 dB
A5 C3 3C 5A FF 36 04 04 01 01 00 00 EE
Set output 1 volume to -31 dB
A5 C3 3C 5A FF 36 04 04 02 01 CA FE EE
Set master Input 6 volume to - 36,4 dB A5 C3 3C 5A FF 36 04 04 01 06 94 FE EE
READING INPUT/OUTPUT VOLUME
Device
Control
Data
Start
Function
Value 1
ID
byte
length
00 (= master
volume)
A5 C3 3C 5A
FF
63
04
02
01 (= input)
01 (= 1 channel)
02 (= output)
08 (= 8 channel)
Value1 byte: Sets to reads DSP input or output or master volume
Value2 byte: Input/output channel number. To get value convert to decimal
channel number to HEX. To get master volume feedback this byte should be 00.
26
USER MANUAL
DSP8X8 Digital Signal Processor
Feedback
Device
Control
Data
Feedback
HEX code
Start
Function
Value 1
ID
byte
length
Sending
00
00
successful
= master
volume
Sending
01
failed
A5 C3 3C 5A
FF
63
04
04
01
= input
02
Value 2
End
= output
00 (= master
Value1 byte: 00 all the time for master volume
volume)
EE
Value2 byte: 01 all the time for master volume
Value low and high bytes: volume level must be calculated by using formula
below:
=IF(LEFT(A2;1)="F";HEX2DEC(CONCATENATE("FFFFFF";A2))/10;HEX2DEC(A2)/10)
In order to calculate volume level, copy this formula to excel sheet C2. The data
from low and high bytes must be written to the same excel sheet A2 cell.
NOTE: First must be written High byte and second Low byte data. No space
between data.
Software interface
Example below: Formula copied to C2 cell. High and low bytes from feedback
copied to A2 cell.
Value
Value
Value 2
End
low byte
high byte
Example
00
= master
Command
HEX code
volume
Read input 6
A5 C3 3C 5A FF 63 04 02 01 06 EE
volume
01
XX
XX
EE
= 1 channel
Read output 1
A5 C3 3C 5A FF 63 04 02 02 01 EE
08
volume
= 8 channel
Feedback: A5 C3 3C 5A FF 63 04 04 01 06 94 FE EE
Feedback: A5 C3 3C 5A FF 63 04 04 02 01 CB FF EE
INPUT/OUTPUT VOLUME CONTROL IN STEPS
Device
Control
Start
Function
ID
byte
Feedback
HEX code
Input 6
volume:
A5 C3 3C 5A FF 63 04 04 01 06 94 FE EE
-36,4dB
A5 C3 3C 5A
FF
36
05
Output 1
volume:
A5 C3 3C 5A FF 63 04 04 02 01 CB FF EE
-5,3dB
Value1 byte: Sets to reads DSP input or output or master volume
Value1 byte: selects DSP input or output will be affected.
Value2 byte: Set input/output channel. Value byte calculation: Channel decimal
number convert to HEX. Command will affect all inputs/outputs if Value2 byte
will be 00.
Value3 byte: This byte set the step polarity. Depend this byte audio level will be
reduced or increased.
USER MANUAL DSP8X8 Digital Signal Processor
Data
Value 1
Value 2
Value 3
Value 4 End
length
00
0A
= all
=1dB
channels
01
step
01
= reduce
= input
01
volume
14
04
= 1
=2dB
EE
02
channel
00
step
= output
= increase
08
volume
1E
= 8
=3dB
channel
step
27

Advertisement

Table of Contents
loading

Table of Contents