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.

TMS320F28335: simulink模型搭建关于各个模块配置的问题

Part Number: TMS320F28335

我已经在论坛指导下成功生成了CCS代码工程,但是有个simulink的设计问题想要请教。以CAN模块为例,CAN模块的涉及的配置包括ID,波特率等,其中ID可在模块属性中配置,如下图所示,

波特率可在硬件设置中设置,如下图所示

我的问题是,如果我想实现在程序运行过程中,修改ID或者波特率,比如某个变量为1时,波特率为1M,ID为0x01;变量为2时,波特率为500k,ID为0x02,我该如何设计模型。这在CCS中可以直接更改寄存器来实现,但是在Simulink中我还没找到合适的方法,请高手指教!