Regarding the C2000 blockset, how would I have one SPI block transmit right after another SPI block?
10 ビュー (過去 30 日間)
古いコメントを表示
Hello all,
I need to send 32 bits of data to an external DAC via a microcontroller. The SPI blocks given in the C2000 blockset can only send a maximum of 16 bits. How would I go about sending 16 bits of data right after another 16 bits of data without the CS going high in between.
Thank you in advance.
1 件のコメント
praguna manvi
2024 年 9 月 30 日
You could try setting CS to low and high respectively, before and after [16,16] bit SPI transmission using GPIO.
回答 (1 件)
Supraja
2024 年 10 月 7 日
Hello Andrew,
It seems like you want to send multiple SPI blocks over the same module.
Here is the link to the similar MATLAB Answer which I believe would help you to guide through the required steps:
I hope this helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Communications Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!