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.

TMS320F28021: 目前因为PCB太小故使用内部晶振或者时钟,还有就是PWM的两路输出能否实现不同的占空比

Part Number: TMS320F28021
Other Parts Discussed in Thread: C2000WARE

问题如下

1.不用外部晶振的时候的有没有参考代码?即只使用内部晶振或者内部RC时钟的代码?

2.PWM输出的两路能否实现频率一样而占空比不同?

3.官方哪种AD采样的代码比较准?

谢谢!

  • 1、有的,比如:C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2802x\examples\structs\timed_led_blink

    这个例程使用的是Select Internal Oscillator 1 as Clock Source (default)

    2、可以的,可以通过PWM同步信号实现PWM模块间同步。占空比的话各自设置各自的比较值就行了

    3、采样的准确受很多因素影响,比如采样频率,S/H时间,环境干扰等等,这么没有固定哪一种比较准的