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.

[参考译文] CCS/TMS320F28035:我可以在 controlsuit 的 ILPFC 代码中发现 Vbus 与 AdcResult.ADCRESULT9 ("#define VbusR AdcResult.ADCRESULT9")无关?

Guru**** 2538960 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/801313/ccs-tms320f28035-i-can-find-vbus-is-not-related-to-adcresult-adcresult9-define-vbusr-adcresult-adcresult9-in-ilpfc-code-of-controlsuit

器件型号:TMS320F28035

工具/软件:Code Composer Studio

我可以发现 Vbus 在   controlsuit 的 ILPFC 代码中与 AdcResult.ADCRESULT9 ("#define VbusR AdcResult.ADCRESULT9")无关?

如果 Vbus 与 AdcResult.ADCRESULT9无关,则无法  执行以下代码(无法执行 OVP):

和  #if INCR_BUILD = 1 ||(INCR_BUILD = 2 && BUILD2_SELECT= 0)
  如果(Vbus > VBUS_OVP_THRSHLD)//将其用于构建1测试
 其他
  IF (VbusAvg > VBUS_OVP_THRSHLD)//检查 Vbus OV 条件;用于构建2和3
 #endif
  {
   OV_FLAG = 1;  
   EALLOW;
   EPwm1Regs.TZFRC.bit.OST = 1;//针对 OV 条件关闭 PWM
   EDIS;  
   
   VbusTargetSlewed = 0;
   VbusTarget = 0;   
   PFC_ON_FLAG = 0;
  }    
 

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

    VBUS 与 AdcResult.ADCRESULT9相关。 如果您查看 ILPFC-DPL-ISR.asm 并搜索 AdcResult.ADCRESULT9、您将看到它的工作原理。 谢谢。

    此致、