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.

CCS/AFE5809: Initiate and use AFE5809 inside CCS

Part Number: AFE5809
Other Parts Discussed in Thread: , MSPWARE, MSP430F5229

Tool/software: Code Composer Studio

Dear All,

I have successful ran my AFE5809EVM with TSW140EVM. I can capture my analog signal, convert them to digital and show them on PC.

Now, I would like to use AFE5809 on our custom board. I would like to know if there is any example on how to initiate and run AFE5809 on code composer studio or any other IDE. 

Alternatively, I could use the source code of AFE5809EVM GUI, if possible.

Thank you

  • This device is supported in the medical forum. I am moving it there where you will get a better response.

    Regards,
  • Thank you, Scott.
    I'll wait for their response.
  • Update:
    I would like to elaborate the issue, so hopefully someone can suggest a solution.
    We would like to initialize our AFE5809EVM without using the AFE5809EVM GUI. The reason is that, we would like to use this AFE in our own product. As you know, when we run the AFE5809EVM GUI, it automatically initializes the AFE5809EVM and sets the proper register values. However, there is no explanation on the user guide regarding how to initialize this product without using the provided GUI.
    Thank you and looking forward to read your respond.
  • I'm still waiting for your kind respond. I don't even know where to begin. I cannot find any tutorial or examples online.
    THanks
  • Hi Sajad,

    In order to initialize the AFE5809EVM at startup or after reset, you only need to provide a 40MHz ADC clock and set the following registers using SPI;

    Register 0x16 = 0x01 and

    Register 0x04 = 0x18.

    Any of our MSP43x MCUs can be configured using CCS to execute the SPI write operations.

    Sincerely,

    Olu

  • Dear Olu,
    Thank you for your respond.
    I'm planning to set these registers using OMAP L138 LCDK.
    Is there any example or tutorial on how to set registers using SPI? I have basic understanding of CCS but I have no idea how to set registers using SPI.
    I appreciate any other suggestions or guidelines you may have.
    Thanks
  • Hi Sajad,

    I am not familiar with that platform but I know that our MSP43x MCUs have sample code stored in the "TI Resource" folder under MSPWare in CCS or you can look at the online MSPWare landing page (here). As an example, the code samples for the MSP430F5229 go over different SPI configurations. You can also use the MSP430 forums as another possible resource.

    There is also plenty of material online that covers SPI and serial communications in general. 

    Sincerely,

    Olu

  • Hi Olu,
    Thank you for your fast and helpful reply.
    For future visitors, I found an example of how to use the SPI of OMAP L138 LCDK on the "Starterware".

    But, how can I connect our OMAP L138 LCDK to the AFE5809 EVM?
    I already know the SPI pins on our OMAP L138 LCDK. I have previously generated PWM using these SPI pins. What I don't know is the SPI pins on the AFE5809 EVM. As you know, AFE5809 EVM is originally initialized by a usb cable which is connected to the PC. Should I somehow use a SPI-to_USB converter and convert the spi cables into usb, then connect the USB to the AFE5809EVM?
    Any suggestion on how to give the SPI signals to the AFE5809EVM is highly appreciated.
    Thank you again ^^
  • Hi Sajad,

    If you look at Page 46 of the AFE5809EVM's user guide, the P14 header contains all the connections you'll need to communicate with the AFE5809.
    For regular SPI operations (no demod), the SEN, SCLK, and SDATA pins are all you need for communication.
    SPI_DIG_EN is reserved for demod operations as detailed in the datasheet.

    I also recommend removing FB17 to power down the isolators that connect the FTDI chip to the AFE5809 thereby preventing SPI bus conflicts.

    Sincerely,
    Olu