Interfacing C2000 ADC and SCI Tx

2 ビュー (過去 30 日間)
Nityanand Hegde
Nityanand Hegde 2015 年 2 月 6 日
回答済み: varun lal 2017 年 8 月 14 日
Hello Everyone, I have problem in interfacing TI's C2000 F28335 ADC. I want to display whatever data i get in ADC to LCD using SCI Tx port but its not working... As soon as i remove ADC and connect constant block its working fine actually.. I have attached file too please look into that..
Thanks....

採用された回答

Antonin
Antonin 2015 年 4 月 13 日
Hi Nityanand,
While running out of flash, the ramfuncs section needs to be copied from Flash to RAM at startup. This is what we do in the "Initialize functions" section of the target preferences block while you pick a "boot from Flash" board. The ADC init routine needs it. Your code runs fine if I add this to the TP block. Attached is the modified model. Tips:
  • Use single instead of double as double is not natively supported on the c28x processor.
  • You can try printf in your MATLAB code, this will be cleaner instead of using direct ASCII characters.
I hope it helps,
Cheers,
Antonin.

その他の回答 (2 件)

Nityanand Hegde
Nityanand Hegde 2015 年 4 月 14 日
Hi Antonin,
Thanks for your reply.. I tried this using interrupts, even that works fine..
Regards,
Nityanand Hegde

varun lal
varun lal 2017 年 8 月 14 日
Hi, how can this to be modified for f28379D ?

Community Treasure Hunt

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

Start Hunting!

Translated by