Regarding the C2000 blockset, how would I have one SPI block transmit right after another SPI block?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
praguna manvi
il 30 Set 2024
You could try setting CS to low and high respectively, before and after [16,16] bit SPI transmission using GPIO.
Risposte (1)
Supraja
il 7 Ott 2024
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 Commenti
Vedere anche
Categorie
Scopri di più su Communications Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!