This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320F28069:MATLAB:如何配置外设

Guru**** 2546020 points
Other Parts Discussed in Thread: C2000WARE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1108612/tms320f28069-matlab-how-to-configure-peripherals

器件型号:TMS320F28069
主题中讨论的其他器件:C2000WARE

大家好、

我正在尝试帮助客户使用 MATLAB/Simulink  和 C2000进行基于模型的设计的第一步。  客户进行了一些基本操作、如 LED、ADC、PWM。

有2个问题:

1) 1) 如何配置 C2000外设?

1.a)例如、我们需要为某些 GPIO 设置上拉电阻。 如果我们需要 使用 MATLAB/Simulink 执行此操作、请告诉我在哪里执行此操作?

2.b)如果我们需要在 CCS 工程中执行该操作、在哪里添加此 init 函数?

2) 2)如何将 基于 MATLAB/Simulink 模型的设计与现有代码库相结合。 例如、用 C 语言编写的通信堆栈。我们需要将 一些代码函数添加到由 MATLAB 生成的 CCS 工程中并一起进行测试。 如何在此项目中添加代码而不会破坏 MATLAB 逻辑?