This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP-L138 UPP Sample Code

Other Parts Discussed in Thread: OMAP-L138, ADS901, OMAPL138, CDCE913

Hi,

I am new to OMAP platform and have been working with OMAP-L138 EVM by LOGICPD lately. My application requires continuous sampling and post-processing of analog signal using ADS901 attached to the UI board which is included with the OMAP-L138 package.

I have gone through the UPP documentation and found PSP Driver which provides 2 sample application for UPP. I am using the one which demonstrates the usage of upp in loopback mode. I successfully build the project using the OMAPL138_BIOS_Userguide but I see no output or any thing when I run the sample code.

I followed the post mentioned below and placed the breakpoint but it doesn't hit the breakpoint meaning that it is not working. Can you please help me figuring out the problem ?

http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/t/131052.aspx

I will really appreciate if you provide me example code which uses UPP to fetch the sampled data from AD conveter.

Thanks.

  • Hey, will some one reply to this post ?

  • It's been 4 days that I have posted my query to this forum but no response. If you guys are not out there to help people who are using your product then why don't you just close this support forum ? I am very much disappointed and it didn't happen for the first time. I have to wait days to get reply and if the reply is not proper, I have to wait further.

    If you happen to reply to this post, don't just say you have no sample code for ADS901. Please provide me solution or help me develop the code for my application because I am running out of time to complete this project.

  • Tariq,

    I understand that there is a delay with the experts helping you out on this issue. As I replied on the earlier post, I am not an expert in this domain so I was merely stating the fact when I said there is no sample code that I know of that uses ADS901. With regards to your issue with the BIOS PSP upp driver code,I would recommend you to post on the BIOS forum to see if the OS specific driver experts can help you out.

    If I were in your position, I would start of from the OMAPL138 BSL UPP code provided by Logic PD that validates the upp peripheral. If you have registered your product with them you should have access to this code after you log in. Let me know if you don`t have access and I can attach the CCS project corresponding to the example. As far as ADS901interafce is concerned, you will notice from the schematics of the UI card that the ADC is connected to the base board using the VPIF IN port. On the base board the VPIF IN pins are muxed with the upp channel pins so you will have to set the pin mux register so that you can access the ADS901. The wiki created below should help you understand how an ADC needs to be connected to the UPP

    http://processors.wiki.ti.com/index.php/Introduction_to_uPP

    After you configure the upp you should see if the upp port and the ADC have the clock setup correctly using a scope and if the data is visible on the channel when START signal is enabled.

    Regards,

    Rahul

  • Rahul,

    Thanks for your post.

    I have gone through the TEST_UPP code supplied by Logic PD. This example code produces a 73.2421875KHz sine wave on the analog out line. After 20 seconds 64 samples are collected from the ADC, these samples are then output through the DAC. I only want to use ADC to sample analog signal so, I need to configure UPCTL register's MODE bit to 0 to use ADC channel A in receive mode, right ?

    config.UPCTL.bits.MODE = 0;         

    I don't understand the clock setup here,

    CDCE913_setOutput(cdce913_output_2, 6);        //set to 4.5Mhz

    Is this the register to change the sampling frequency of ADC or UPP clock ? How can I change the sampling frequency of ADC ? What is the parameter cdce913_output_2  here ?

    How can I write ISR after enabling interrupt ? The idea is to generate interrupt after collecting 1024 samples of data then move to ISR for further proceccing.

    Example code says: It is strongly reccomended that the signal provided to the ADC have a freqency that is an an integer multiple of 73.2421875KHz and below 1.171875MHz. Why is that ? Analog signal I am working with may vary from 100 kHz to few MHz, how can I work independent of this statement ?

    I will appreciate your quick help.

    Thanks.

  • Tariq,

    I assume that you are getting your PSP question answered in the other thread (http://e2e.ti.com/support/embedded/bios/f/355/p/203476/724259.aspx#724259), so I am going to mark this one as "answered" (even though it really isn't yet).

    Dave

  • This thread is not related to BIOS, can you please move it back to OMAP forum ? I appreciate if some one also reply to this post...

  • Tariq,

    Per your request, I have moved this thread to the OMAP-L1x forum...

    Dave

  • Rahul, can you reply to my earlier post ?

    I think it's J29 connector where I can see UPP signals but I don't understand what PIN should I connect with scope to see UPP and ADC clock signals ?