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.
如何将CLB与输出的GPIO对应配置,软件中配置的怎么都是仿真的
C2000 可配置逻辑块 (CLB) 是一组可配置的逻辑模块,它们通过软件互联以实施定制的数字逻辑功能。
CLB的相关使用,请您参考
https://www.ti.com/cn/lit/ug/zhcu712/zhcu712.pdf
https://www.ti.com.cn/cn/lit/an/zhca963/zhca963.pdf
例程的话,可以在下面的路径下找到
如C2000Ware_\driverlib\f2838x\examples\c28x\clb
软件中配置的怎么都是仿真的
没太理解您的意思,能否详细说一下?
例如如何将PWM从CLB的一个GPIO输出配置没用成功
请您看一下
5.4 示例 3 – PWM 生成
https://www.ti.com/cn/lit/ug/zhcu712/zhcu712.pdf
该示例演示了如何将 CLB 逻辑块配置为充当辅助 PWM 发生器。该示例利用组合逻辑 (LUT)、状态机 (FSM)、计数器和 HLC 来演示使用 CLB 的 PWM 输出生成功能。
如果在安装了 F280049 或 F28388D controlCARD 的实验套件上运行该程序,则可以分别在引脚 49 (GPIO0) 和 53 (OutputXBAR1) 上观察中断和 PWM 信号。
该例程内下面的代码用于实现pwm的输出。
//
// Configure OUTPUT-XBAR OUTPUT1 as CLB1_OUT4
//
XBAR_setOutputMuxConfig(XBAR_OUTPUT1, XBAR_OUT_MUX01_CLB1_OUT4);
XBAR_enableOutputMux(XBAR_OUTPUT1, XBAR_MUX01);
而不能通过.syscfg配置?
目前没有直接的操作syscfg的说明(应该是clb的syscfg功能还没有完善)
On F28004x family you have limited options. On F28002x and F2838x you can send all of the outputs of a given tile to a GPIO.
On F28004x,
For example for CLB1 ,you can:
OUT4/5 to OUTPUTXBAR to GPIO.
OUT0 to EPWM1A to GPIO
OUT2 to EPWM1B to GPIO
Then you can use OUT1 (which is copied to OUT17), OUT3 (which is copied to OUT19), OUT6 (which is copied to OUT22) and OUT7(which is copied to OUT23) to another CLB through the GLOBAL MUX OF CLB, and try exporting them out through the OTHER CLB TILEs (CLB2, 3, 4).
非常感谢,就是说280049c的CLB功能是受限制的,那么还想请教下,我想用PWM1-PWM6共12路驱动通过CLB扩展为24路PWM驱动是否可行呢?