how i can take the data when the ADSP runing in realtime?
Hi kurnia lim,
I dont know if your ADSP support UART.If so,you can send the data to PC by UART,then print them by the software "MCUTool".
Hope it help you.
In general there are various peripherals which can be used to take the data into the DSP. It may be a serial peripheral e.g. SPORT, SPI, UART etc. or a parallel one such as External/Parallel Port etc.
However, I would be able to comment on your question in a better way if you could please mention more details about your application and the system itself. What kind of data you want to take in ? Who you want to be the source of the data ? Please also mention which processor you are using ?
Certainly,printf is too slow to run in realtime.
My idea is that send the data to PC by UART in realtime,
You can try it.
Using printf may not be a good idea for real time applications with MIPS constraints. Also, not sure if using UART to send the real time output to the PC is practical because of the possible limitations on maximum baud rate the PC can support. For example, for 48 KHz sample rate, the bit rate = 48K*64 = 3.072 MHz. Thus the UART baud rate should be greater than 3.072 MHz as it should also accomodate the start, stop and parity bits.
I understand that the output of the data is a non-audio signal (can you confirm? ) and thus it can't be sent to the DAC in real time ?
I would be able to help yo on this better if you could please elaborate more about how you want to conclude that the processed data is as expected ? Do
you want to store it in a file and then analyse it offline ? Also, how do you plan to use the output data in the final product/application ?
I also see two more threads having discussion on a similar issue:
Could you please confirm if this is not the same issue as posted in the above two threads. This will help us to avoid duplication of efforts.
i don't know how use UART, can you teach me?
yes, we want to be like that buat me want learn step by step
please help me to learn UART
thanks for your help
Please refer to the code example in the project C:\Program Files\Analog Devices\VisualAudio 2.6\Platforms\EZKit_21369_RS232_Basic,but you should install VisualAudio before.
ADSP-21369 does have an on-chip UART the details about which can be found in ADSP-21368 Hardware Reference Manaul available at link below:
There is also an application note regarding UART port on SHARC processors available at link below that might be useful to you:
These should be very good reference for you to start with UART port on SHARC processors.
Hope this helps. Please let me know if you have any further processor specific issues.
Could you please also confirm if the issue being discussed in the two threads which I mentioned in my last reply is the same issue ?
thank you for helping me now I'm trying to learn UARTbut still when I read the manual I do not understandCan you help me?I'm looking for visual studio 2.6 software but found it bsia gaCan you help me find this software? and what's the use of this software?
I am sorry for you as I forgot to tell that there is a example code follow this path:C:\Program Files\Analog Devices\VisualDSP 5.0\213xx\Examples\ADSP-21369 EZ-KIT Lite\UART echo back (C).
I could be in a better position to help you if you could please elaborate more about where exactly you had problems understading about the UART. Do have any specific doubt regarding any statement in the manual ? If yes, which page number and paragraph ?
hi allthanks for your help,I was studying the UART that the examples given Alan and PDF from Miteshlittle by little I began to understand the UART.but my information could not try it because I was looking for ADSP UART connection cable to the usb PC.in PDF is not yet understood me information about the program but sintax I learned it from the road program.I do not understand in the "Status polling receiver UART0"what purpose "status polling" and what is "status polling"?whether the flow of the program to set the UART usage must be absolutely like that?for the speckle formation exaple I understand the road beitu program for UART used in well connected with the DPIWhat is DPI?thanks for all your help, sorry to bother
I have tried UART example that there is atand UART are made on the coding is such that the PDF,but I'm confusedhow can I know the data sent or not?,where the data have sent?thank you
From your last couple of replies, I understand that you have problems understading/writing basic UART codes on the ADSP-21369. Thus, as a starting point, I would suggest you to test some simple core and DMA codes on the UART of the DSP. Once it works and you have no problems understading the codes, you could go ahead writing your own code.
I am attaching two codes that I have for UART of ADSP-21469 processor one making core transfers and other DMA transfers between UART0 and UART1. You could modify the same code for ADSP-21369 too (UART is identical in the two processors).
Please let me know if face any issues testing/understanding the codes.
Replying to your last mail, to know if the data is being sent, you could probe the UART_TX_O signal mapped to a DPI pin.
Hope it helps.
thank you for the program provided.I have tried the program you provide, but errorwhen I opened the program, says "Failed to open this project. verify that the file exists and that you have sufficient permissions to access it."so what should I do now?thank you, please help
Not sure what is the problem. I didn't have any problem in extracting and opening the attached zip files. I am compressing and attaching them in RAR format now. I am also posting the souce .asm files for both the projects. Please let me know if you still face issues.
i had tried your first zip. I could not able to compile the same in VDSP 5 with update 7. I think, i am missing some thing!!
There had been some changes in the def files in update 7. I think, it's because of that. I would suggest you to replace the following line
in the "PLL_DDR2_AMI_Init.asm"
and check if you see the same problem. If you still see the problem, please let me know what build errors you get.
Retrieving data ...