How to send these ADC values in a buffer over SPI using c2000 blocks

5 次查看(过去 30 天)
What blocks do i use to send all these values to a buffer . Then send that buffer to SPI. Should the SPI part be outside the interrupt event ?

回答(1 个)

Shivam Lahoti
Shivam Lahoti 2024-9-16
Hi Haadia,
I understand that you want to share the ADC data to SPI.
You can use the SPI Transmit (or Receive) block to send (or receive) data. For more information about these blocks, refer to the documentation pages linked below:
Additionally, you would be required to configure the model parameters for SPI. Refer to the following documentation for more details on the same:
I hope this helps you solve the issue.
Regards,
Shivam.

标签

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by