How do i transmit the data of DAC through CAN using F28379D

3 vues (au cours des 30 derniers jours)
saandeep
saandeep le 1 Oct 2024
I want to transmit the output of the DAC through CAN to another F28379D board. I realised that the CAN transmit/receive can be done only in digital format. since the output of DAC is analog I cannot transmit it through CAN. To do my task I want to extract the data from the F28379D before it is being converted to analog singal and communicate through CAN to another board. Can you help help me how to access the DACVAL registers in the F28379D and extract that data using matlab simulink so that i can communicate with other boards.

Réponses (1)

Sumukh
Sumukh le 7 Oct 2024
Hi saandeep,
I am assuming that you want to transmit digital data via CAN from one board to another board of type F28379D. This functionality is currently not supported in the "C2000 Microcontroller Blockset".
The DAC output cannot be used when transmitting through CAN. However, a possible workaround is as follows: the DAC output of one board can be converted back to digital using the ADC peripheral on the same board and stored in MATLAB. You can refer to the following documentation to know more about how to configure the ADC peripheral to get the analog data of DAC and convert it to digital form:
This digital data can then be passed to another board using “CAN Transmit” block through the Simulink model itself. You can refer to the following documentation to learn more about how to transmit data to the board using “CAN Transmit” block:
I hope this helps resolve the query.

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by