ADSP 21489- Output array of values

Hi 

I'm just getting started with this SHARC board and have spent the morning familiarising myself with the crosscore environment. I have looked at a few example projects for this board, but have found myself getting a little overwhelmed by the amount of literature. 

There are several things I would like to do:

-Output array of predefined values on one of the pins

-sample an incoming signal at a user defined rate 

-store the samples in memory file 

-transfer these files to a PC 

I want to ask the kind members of this community, what do I need to configure in order to write this program (to be written in C)? I have looked at the documentation within CrossCore but can't seem to find any I/O functions for outputting data to a pin. 

Kind regards,

Joel. 

  • Does I/O on the GPIO pins have to be done in assembly language?

  • 0
    •  Analog Employees 
    on Oct 17, 2019 11:50 AM over 1 year ago in reply to Joel123

    Hi,

    The ADSP-21489 is Fourth-generation SHARC Processors  integrate application-specific peripherals designed to simplify hardware design, minimize design risks, and ultimately reduce time to market.Grouped together, and broadly named the Digital Applications Interface (DAI), these functional blocks may be connected to each other or to external pins via the software-programmable Signal Routing Unit (SRU). The SRU is an innovative architectural feature that enables complete and flexible routing amongst DAI blocks. Peripherals connected through the SRU include but are not limited to serial ports, IDP, S/PDIF Tx/Rx, and an 8-Channel asynchronous sample rate converter block. The fourth generation SHARC allows data from the serial ports to be directly transferred to external memory by the DMA controller. Other peripherals such as SPI,UART and Two-Wire Interface are routed through a Digital Peripheral Interface (DPI).

    Could you be more specific on your application and peripherals that you are trying to perform in ADSP-21489.

    However, i would suggest you download the ADSP-21489 Board Support Package (BSP) from the below link and install it your PC. Once installed,you would find and can refer some of the example codes available in Power On Self Test code.

    download.analog.com/tools/EZBoards/21489/Releases/Release_1.0.0/ADI_ADSP-21489_EZKIT-Rel1.0.0.exe

    Regarding, "Does I/O on the GPIO pins have to be done in assembly language?"

    >> Please refer the led blink code available in Power On Self Test, that would help you to understand in configuring the pins in ADSP-21489.

    For more information please refer the below links.

    ADSP-21489 Datasheet:-
    www.analog.com/.../ADSP-21483_21486_21487_21488_21489.pdf

    ADSP-21489 Hardware Reference Manual:-
    www.analog.com/.../ADSP-214xx_hwr_rev1.1.pdf

    SHARC Processor Programming Reference:-
    www.analog.com/.../ADSP-2136x_2137x_214xx_pgr_rev2.4.pdf

    Regards,
    Anand Selvaraj.

  • Hi Anand,

    I have been working through the POST example to set up the CODEC and was wondering, what is supposed to be contained in the sinetbl.dat file? Is it a spectrum or just a sinusoidal array? Could you tell me the specific format of this data, i.e is the most significant bit reserved for the sign. 

    Joel. 

  • I have so far condensed the example POST code in CCES so I can see how they have connected to the AD1939 CODEC etc..but now I have hit a brick wall. 

    Could you provide a brief description about the DMA chaining in the post code? Why are the modify registers 40,50,60 and 80? What do the values in the sinetbl.dat file correspond to, are they sinusoidal amplitude values written in Hex? I presume this code is using circular buffering? 

    Kind regards,

    Joel. 

  • 0
    •  Analog Employees 
    on Nov 1, 2019 12:34 PM over 1 year ago in reply to Joel123

    Hi,

    This issue is handled through private support. To avoid duplication of efforts, you can continue the discussions through private support and we will post the final resolution here.

    Regards,
    Anand Selvaraj.