- SPI Transmit Block: https://www.mathworks.com/help/releases/R2023b/ti-c2000/ref/c28xspitransmit.html
- SPI Receive Block: https://www.mathworks.com/help/releases/R2023b/ti-c2000/ref/c28xspireceive.html
How to send these ADC values in a buffer over SPI using c2000 blocks
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1648011/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1648016/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1648021/image.png)
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 ?
0 commentaires
Réponses (1)
Shivam Lahoti
le 16 Sep 2024
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.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!