MATLAB: Embedded Coder for C2000

c2000dacEmbedded Coder

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

Best Answer

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