Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

DSP Builder procedure to get data from A/D board using SPI

If there are someone tha can helpme please, I need to know how can I get data from SPI ADC board to Simulink. I dont know what is the procedure to do this. I dont know if I need to make a SOPC builder system with Avalon and if I have to use Avalon Master at simulink.

I have a Cyclon III EP3C120F780C8 of HumanData and a SPI ADC HumanData board but I need to know how can I connect and get data.

Thank you

jjeshua

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    For this,you need to write a verilog code as per ADC datasheet specifications.Dump this code to your FPGA device.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In this moment i dont know what Should I do. I was thinking that the Avalon Master MM of DPbuilder could be connected to Avalon Slave MM of SPI Core.

    I suppose that the signals needed in the SPI slave I have to generate them by myself.

    Then the procedure could be. first, generate the verilog code for SPI slave. Second find the way to get data from verilog code to simulink. Someone could help me.

    Thank you for your help.:)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Im using an HDL import Block in Simulink using VHDL program to get data from ADC 16 bits.

    If anybody need to use it.

    jjeshua