*****************************************************************************************


This ZIP File is associated with Rev 7 of EE-Note


    Using the Expert DAI for SHARC Processors (EE-243)  


that can be found at http://www.analog.com/ee-notes.


Date Created:	June 28th, 2010


*****************************************************************************************


1. Introduction
2. Installation


1. Introduction: 
----------------

This EE-Note explains how you use the Expert DAI plug-in for VisualDSP development tools versions 3.5, 4.0, 4.5 and 5.0 to configure the 
signal routing unit (SRU) in ADSP-2126x, ADSP-2136x, ADSP-2137x, ADSP-214xx Processors. The Expert DAI 
plug-in simplifies the task of generating the C and/or assembly code that is used to program the SRU.



2. Installation:
----------------

Note that Expert DAI plugin works with VisualDSP versions 3.5,4.0,4.5 and 5.0. Please follow the steps given 
below in order to install Expert DAI plug-in in VisualDSP 5.0. 

   1.	Extract the file AdvancedExpertDAI.dll from the attached zip file (EE243v07.zip) and place it in 
        the System directory of Visual DSP++ tools installed. If you are using VisualDSP 5.0, and it is installed on 
        your C drive, copy the attached file into the following directory:
        
        C:\Program Files\Analog Devices\VisualDSP 5.0\System

   2.	Register the AdvancedExpertDAI.dll file by typing the following command line:

	regsvr32.exe AdvancedExpertDAI.dll
	
	Note: Run regsvr32.exe from the ..\System directory, not from the root directory
  

The Expert DAI tool now appears in the Settings => Preferences => Plugins Menu. You can access Expert DAI
from the Tools => Plugins Menu. Note that the plugin will be activated only for the SHARC processors which supports
SRU.For information on using this tool, please refer to EE-243. 

Notes:

1. The tool generates the code for the TWI signal as per the guidelines provided on the HRM.
2. As per the HRM, for ADSP-21367/8/9, ADSP-2137x, and ADSP-214xx processors when the SPI is used as master with CLKPL
   bit set, the SRU routing needs to connect the SPI_CLK_PBEN_O signal to the DPI_PBENxx_I instead of connecting the 
   DPI_PBENxx_I signal to High. The tool provides an option to do this. When the SPI/SPIB is used with CLKPL bit set
   then the user needs to uncomment the following definitions on the configdai.c/configdai.asm files generated by tool.
   s
   #define SPI_CLKPL
   #define SPIB_CLKPL
3. The DAI_PIN_PULLUP and DPI_PIN_PULLUP registers are not available for the ADSP-214xx processors. These registers
   initialization will not be printed for the ADSP-214xx processors.
4. The plug-in was tested with VisualDSP++5.0 Update 8 for validating the support for ADSP-2147x and AdSP-2148x processors. 
5. The "sru21479.h" needs little modification to be able to build the project that wants to route PWM signals to the DPI pins.The modified "sru21479.h" is 
provided with the "EE243v07" folder.

 
