Wiki

This version is outdated by a newer approved version.DiffThis version (09 Mar 2017 06:53) is a draft.
Approvals: 0/1

This is an old revision of the document!


Binary to Decimal

Click here to return to the Basic DSP section.

This module can be used to considers input signals are binary and gives a decimal output value.

Input Pins

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: Bit 0int- controlBit 0 of input
Pin 1: Bit 1int- controlBit 1 of input.


Output Pins

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: Outputint - controlDecimal value as integer (32.0)


Grow Algorithm

The module supports growth of input Pins.

Example Usage

This module can be used with GPIOs to convert the multiple GPIO's value into a single integer value.

The table below shows the input and output value for the BinToDec module.

GPIO_0 GPIO_1 BinToDec Output (32.0) Lookup Table Output (8.24)
0 0 0 0 db
1 0 1 1 db
0 1 2 2 db
1 1 3 3 db


The output of BinToDec is used as an index for LookUp table. The output of the lookup table can be multiplied with the audio signal as the gain.

Using this schematic signal's volume can be changed through GPIO.

Supported ICs

  1. ADAU145x
resources/tools-software/sigmastudio/toolbox/basicdsp/bintodec.1489038826.txt.gz · Last modified: 09 Mar 2017 06:53 by Venkatesan Krishnamoorthy