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.

How to txfer fixed amount of dat afrom one processor board to another?

Hi all!

I am building a small FSK modem and want one pc to work as modulatorand the other one as demodulator. I generate modulated wave from a stored buffer containing binary bits on one pc and want to transfer the generated array through AIC23 codec to another processor for the demodulation part.

Suggest out some way!

  • Hi Kirti,

    Are you using any board for this operation containing C5510? DSP processor has an EMIF interface wherein its address and data bus can be used to access an external memory or can communicate with another processor via the same bus.

    Regards,

    Sid

  • k..can you exactly tell me what steps do I need to follow in order to txfer my output stored in a buffer through EMI interface..I tried to find out in help file but found myself uncomfortable with it!

    Regards,

    Kirti

  • Hi Kirti,

    Basically, accesing EMIF interface of a DSP processor involves writing to the configuration space allocated for the EMIF interface. There might be some registers which configure the EMIF bus directly or for high speed , you may need to use DMA. (not sure if DMA is present in C5510).

    Then, all you need to do is to write this data to the EMIF address and increment it accordingly, then access the same address from the external processor and read the data.

    Regards,

    Sid

  • Hello sid!

    M still unable to use EMIF interface. Meanwhile I tried  using DMA  txfer through ping pong  buffering (given as an example in one of the CCS example tutorials) . M able to store the generated values in transmitting buffer but dont get the same value in receiving buffer on demodulator side. I dont think the static and limited amount of data should cause any problem..is it so?

    Also is it possible to use different sizes of transmitting and receiving buffer on demodulator side(I wish to take input from frequency generator corresponding to each sample of which 30 o/p samples would be generated)?

    Would you provide me with a simple EMIF interfacing code?

    I am a beginner in this field but having some deadlines from my mentor for completing the project..so having problems!

    ------

    Best Regards,

    Kirti

  • Well I got different sizes of rx an d tx buffer workin for same processor...the tx from upmodulator seems to be alright..but still the demodulator side rx buffer is not receiving values...wat possibly can be the problem?

    Thanks and Regards,

    Supriya.

     

  • Hi Kirti,

    I have written EMIF interfacing codes for Davinci  and other TI DSP processors but none for C5510. If I am not wrong, C5510 has a Chip Support Library which has a list of APIs provided to make configuration of EMIF and other controllers easier. So that should make your task easrier.

    Besides, every code requires a linker file (.cmd) to define memory map for that DSP processor, so ensure that it is included in your project.

    And yes, you can have different buffer sizes, it all depends on how you write your controller code to ensure that you dont lose data. You can try your own code and ask any doubts regarding the code, rather than someone giving you a code from scratch. This will help you to fully understand the project all by yourselves.

    Regards,

    Sid

  • Hello Sid,

    Thanks for your help.

    Your advices proved helpful and I might be able to make EMIF interfacing work soon. But at the same time I wish to know what might be going wrong with my normal DMA txfer..Why is it that inspite of having all values in txmitting buffer of modulator side, my demodulator's receiving buffer is not able to get the same?!...It seems to be kinda wierd to me!

    --

    Regards,

    kirti

  • Hi Kirti,

    Well, it could be anything, something wrong with your receiver code, maybe Receiver clock hasnt been turned ON, or some register setting may be wrong for the receiver section. :). You may paste the code here, maybe I can have a look, especially the receiver section and the memory maps (this may also be wrong for the Rx buffer )

    Regards,

    Sid

  • Hi Sid,

    I am attaching a zip file which has codes for up and down modulators as text files..

    Thanks and regards,

    Supriya

    fsk_dma.rar