ΣSigmaStudio Ask AI Русский Log in

serial data input to GPIO pins in ADAU1761

SigmaDSP & SigmaStudio lbone Jul 15, 2010 00:00 6 replies Original on forum ↗
Subscribe
lbone Question
Jul 15, 2010 00:00

I'm working on an ADAU1761 eval board and can't seem to figure out how to configure the board to receive

serial data through the GPIO pins. I would really appreciate some help on this topic.

Audio Signal Processors

SigmaDSP Audio Processors

adau1761

bagitom Reply
Jul 15, 2010 00:00

Hello

If you place an adau1761 in SigmaStudio, and you look for "input" in the tree tool box, you are going to find only one input block at IO-->Input.

If you place that input block, you are going to see 10 checkboxes. The first 2 (grey labeled, checked by default) are the integrated DAC output. (you can tune it via some mux settings if you want to use HP output as well)

The rest of the checkboxes are representing the 8 digital audio channel (these are orange labeled)

Getting know the TDM digital output see page 42-43 in this document. http://www.analog.com/static/imported-files/data_sheets/ADAU1761.pdf

And you have to take some register settings as well, in order to use the GPIOs as digital audio interface. In the register window, you must have a DSPregisters section, the last label on the head of the register window. There is a SerialData/GPIOpin config section. All the buttons should be red to use the GPIOs as I2S interface.

Hope these helps, if not, ask Brett or Jerad.

Tamas

lbone Reply
Jul 16, 2010 00:00

thanks a bunch, but I'm already using the two analog inputs for analog mic inputs. I need to get a control voltage in as well and since there isn't another analog input pin available, I was hoping to convert the voltage to a digital signal to be passed in through the sdata pin. I set all GPIO pins to LRCLK, BCLK ADC_SDATA and DAC_SDATA, but i don't know what settings to use: whether the pins GPIO2 and GPIO3 which correspond to LRCLK and BCLK should be set as inputs or outputs set by the DSP core? also if there's any documentation on how the GPIO pins can be used for serial communication it'd be very useful.

ADIApproved Reply
Jul 27, 2010 00:00

When you're setting the MP pins into their serial data modes - LRCLK, BCLK, ADC_SDATA, DAC_SDATA - data will be input/output on the port according to the serial port formats described in the datasheet (I2S, left justified, right justified, etc). If you want to send data from another device to the ADAU1761 through its serial ports, then your other device will need to send data in one of these compatible modes. Your decision whether to set LRCLK & BCLK to master or slave will depend on whether your other device can generate these clocks, and if so, if it's synchronous with the ADAU1761. The data on the serial port should be synchronous to the core; you can be sure that it will be if the ADAU1761 is the serial port clock master.

lbone Reply
Jul 27, 2010 00:00

Hi Jerad,

Thanks for getting back to me. I must confess, I'm familiar with neither the board nor serial data transfer and would like some further clarification.

First, I don't have my digital to analog converter data yet, so I'm using a function generator to output a square wave which i hoped wold simulate the data.

If I choose to set the ADAU1761 as the master, what settings will I need to use? Will the BCLK and LRCLK be provided by the board or will they need to come from an external source? I have attached here the settings I have for the DSP registers and the the Digital Setup registers. Please do let me know if the settings I have are right for what I'm trying to do. thanks,

ADIApproved Reply
Aug 3, 2010 00:00

If the ADAU1761's serial port is set to master mode, it will supply the LRCLK and BCLK; if it is a slave, it will take those signals as an input from another device. By default, the serial ports are set up for I2S mode, which is a standard audio data format. If your external DAC supports I2S, then the setup you show here will work for transmitting data from the ADAU1761 to the DAC.

EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin