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.

SPI driver C6748

Hi,

Whether it is possible to use SPI driver from C6748 BIOS PSP for data acquisition from the device which forms a ready about the new data? That is in the device after each sample cycle, the sensor data loads into the output registers and pulses, providing a new data ready control signal for driving system-level interrupt service routines. What program design can be used for this purpose? Whether it is possible to use procedure GIO_write(spiHandle, &dataparam, &size) in HWI DSP/BIOS?

Thanks.

  • Hi Oleh,

    What peripheral are you wanting to make the C6748 communicate with over SPI ?

    Best,
    Ashish

  • Thanks for your answer. I want to make data exchange with IMU ADIS16350.

    Best regards,
    Oleh
  • About use of interruption for data exchange it is spoken on page 9 of the document adis16405.pdf
  • Hi Oleh,

    Oleh Mela said:

    Whether it is possible to use SPI driver from C6748 BIOS PSP for data acquisition from the device which forms a ready about the new data? That is in the device after each sample cycle, the sensor data loads into the output registers and pulses, providing a new data ready control signal for driving system-level interrupt service routines. What program design can be used for this purpose?

    You should be able to use the SPI driver in BIOS PSP to read data from the IMU peripheral.

    Oleh Mela said:

    That is in the device after each sample cycle, the sensor data loads into the output registers and pulses, providing a new data ready control signal for driving system-level interrupt service routines. What program design can be used for this purpose?

    I am guessing you are referring to the DIO1 pulses that are generated each time a new sample is available. You can connect the DIO1 pin to one of the GPIO pins and configure the GPIO pin to generate an interrupt to the DSP. You can then create a Hwi for this interrupt. The Hwi handler can be made to signal a task to initiate a SPI read each time an interrupt is generated. I think the sample rate for the IMU is quite low compared to the DSP's CPU frequency so the CPU load should not go up much.

    Oleh Mela said:

    Whether it is possible to use procedure GIO_write(spiHandle, &dataparam, &size) in HWI DSP/BIOS?

    Yes, you would use GIO_write() to read/write data from/to the peripheral over SPI. Please see the SPI examples in the BIOS PSP product for an example of how to setup SPI communication and what APIs to use.

    Best,

    Ashish