Embedded Coder for C2000

조회 수: 8(최근 30일)
Richard Poley
Richard Poley 2019년 3월 18일
답변: Venkatesh Chilapur 2019년 4월 12일
I've built a very simple model in which a counter is written to DAC-A on the F28379D LaunchPad. I expect to see a ramp at the appropriate pin on the board but there's nothing. I simple C program works correctly. Has anyone tried this?
My suspicion is that the DAC is not being enabled because when I inspect the generated code I don't see evidence of the DACOUTEN register being written to.
Thanks for any suggestions.
Regards,
Richard

채택된 답변

Richard Poley
Richard Poley 2019년 3월 28일
Venkatesh,
Sorry for my delayed reply - I have been off work for a couple of weeks.
Thank you for pulling the model together. It did resolve my issue.
Regards,
Richard

추가 답변(3개)

Venkatesh Chilapur
Venkatesh Chilapur 2019년 3월 19일
Hi Richard,
Attached is the model which i found to be working for DAC-A. The model is created in 2018b version of MATLAB.
I found it working in both interrupt and periodic step time scenario. To get a view of ramp signal I found we need to work with high sample rate else we may not be able to make out the Ramp signal generated. You can either enable periodic/interrupt based approach to test the DAC block. Comment the other implementation which is not used in the model.
The perodic step time is set to 1ms which could give a good ramp signal. The interrupt runs still tight in usec scale. Be sure to tap the correct pin the launchpad for DAC output.
Capture.JPG
Hope this helps.
Regards,
Venkatesh C

linda xie
linda xie 2019년 4월 11일
您好
如果我的计算机无法连接到Internet,是否可以安装C2000硬件支持包?

Venkatesh Chilapur
Venkatesh Chilapur 2019년 4월 12일
Yes, along with 'install' option for the support package, we also provide 'download' option.
That should help you to download the package and use it for offline install.

Community Treasure Hunt

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

Start Hunting!

Translated by