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

programing eval-adau1781

SigmaDSP & SigmaStudio ryan Dec 1, 2009 00:00 7 replies Original on forum ↗
Subscribe
ryan Question
Dec 1, 2009 00:00

Hi there,

Is there any documentation on programing eval boards with a second mico controller ?

I have my SDA and SCL lines hacked into the eval boards control port, but cant seem to get the two talking.

thanks,

Ryan

ADIApproved Reply
Dec 1, 2009 00:00

Hello Ryan,

We do not yet have comprehensive documentation explaining the implementation of microcontroller code in an end system. There are some tools in SigmaStudio that allow you to generate a skeleton for the microcontroller's code, notably the capture window, the sequencer window, and the export system files command.

The basics of these features are explained in this thread:

https://ez.analog.com/message/4122#4122

We hope to develop more complete documentation, possibly in the form of training videos, as soon as possible.

Thanks,

Brett

ryan Reply
Dec 5, 2009 00:00

Thanks for the quick reply, Brett.

I have one more question for you.

I am using the EVAL - ADAU1781Z rite now, but will be using the 1381 in the future.

The 1781 data sheet describes 2 sections of RAM that are not mentioned in the 1381 data sheet; Program Ram (0x0400) & Parameter Ram (0x000).

When I download code to the board from SigmaStudio I can see that it programs Program Ram and Parameter Ram.

My question is, does the 1381 have Program and Parameter Ram and will need to be programmed in a similar manor to the 1781 ?

ADIApproved Reply
Dec 7, 2009 00:00

Hello Ryan,

The primary difference between the ADAU1781 and ADAU1381 is that the ADAU1781 has a programmable SigmaDSP core and the ADAU1381 has a fixed-function processor. The processing in the ADAU1381 is optimized for digital still camera applications and cannot be reprogrammed. You do not have to write a program to the ADAU1381, but there are certain parameters that you will want to set to adjust the performance of the signal processing blocks (filters, dynamics processing, wind noise detection, etc) to your application.

If you need to have a programmable signal flow that you can design yourself, then you should use the ADAU1781.

ADIApproved Reply
Dec 7, 2009 00:00

The signal processing flow in the ADAU1381 is fixed, and is ready to go when the device powers up. You will need to write a few control registers and parameters, however, before the device will pass audio.

A description of the ADAU1381 sound engine signal flow is here: http://www.analog.com/static/imported-files/user_guides/UG-030.pdf

As Jerad mentioned, the ADAU1381 cannot be programmed, so the ADAU1781 should be used if you want to design a custom processing flow using SigmaStudio.

ryan Reply
Dec 7, 2009 00:00

Thanks for the replies guys

I appreciate the help

ryan Reply
Dec 24, 2009 00:00

Hi guys,

I have run into another problem.

I am using an ADAU1381 chip as part of a wireless audio system.

I want the chip to run at 12.288MHz, so am supplying a fs=48KHz and chose the 256xfs option.

I also have the DAC turned off as we send digital data over the RF link, then convert it back to analog on the receiver side.

I can not get audio to pass though.

I have tried multiple register configuration, but nothign seems to work.

can you provide me with a base set of register configurations or a programming sequence to get this thing passing audio ?

ADIApproved Reply
Jan 4, 2010 00:00

Hi Ryan,

Sorry for the late response. We were shut down from December 24th to January 4th.

The ADAU1381 project in SigmaStudio will be available with SigmaStudio in the near future, but I have attached it here for your use. It should make this process much easier. You'll need to configure the registers and Sound Engine parameters in order to pass audio.

First I'll show you the manual method. However, I've also included a sequence file that you can simply launch using the sequencer window in SigmaStudio to automate the process. You can also export that sequence file to a format that's easier to integrate in your host controller.

First, load the project in SigmaStudio and hook up the board via the USBi.

Then, access the ADAU1381's Register window.

In the automatic startup section, click the PLL Lock Only and Load Preset buttons.

https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/396/5e520b3e8a4b0f52b5c8dbdff21d1d9c.bin

The PLL Lock Bit should turn green to show that it is locked.

https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/396/c085c526c50d29fe117f7af600ef6af1.bin

Now scroll to the bottom of the register window and click the Load All Registers button. This will download the contents of all control registers in the ADAU1381 to the values set in the SigmaStudio project.

https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/396/7ee268abf1e918d0c11d9daa131c772a.bin

Now go into the schematic tab and uncheck the amute and dmute buttons to un-mute the analog and digital outputs.

https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/396/f19fa32bc6380d3440c5879b6896c199.bin

Audio should now flow from the ST IN connection on the eval board out to the HP OUT connection.

Thanks,

Brett