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/TMS320F28069: TMS320F28069

Part Number: TMS320F28069
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Dear Sir, I am using TMS320F28069 to control current source of 10A for my application. It is a buck converter which has to provide constant current. I am using PID tuning to control the current. I want to switch off the controller if the current exceeds 15A, for protection. Can I generate some interrupt that can halt the controller if current exceeds 15A. Is there any sample code for this purpose.

  • Hitesh,

    You can use the on-chip comparators and 10-bit DAC reference to create a constant threshold monitor for the situation you describe.  The Trip Zone Module (TZ) inside the ePWM can be configured to react to the change in comparator state and High-Z(or force low/high) the PWM outputs that would shut down the power stages.

    This example in C2000Ware configures the comparator/PWM for the action as described above.  The only difference is that COMP1B is used to set the reference voltage, where you can use the internal DAC for the same thing.  Let me know if you have more questions:

    Path to example:

    C:\ti\c2000\C2000Ware_2_00_00_02\device_support\f2806x\examples\c28\epwm_dcevent_trip_comp

    Best,

    Matthew