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.

TMS320F28027: F28017

Part Number: TMS320F28027
Other Parts Discussed in Thread: C2000WARE

Ihave two questions:

1) I have to generate multiple PWM with different frequency and duty cycle at different pins of GPIO at a single time. But I have to use single pin at a time. By changing jumpers, I want to change the frequency and duty cycle at the respective pins. But I want to turn off signal from all other pins except the pin that I am using. How this could be achieved?

2) I have to implement the controller on PCB and user wants to turn it off for some duaration. This microcontroller doesn't have EN pin by using which we can turn it on or off. How TRST pin could help us is achieving the task?

    1. PWM frequency and duty are controlled by TBPRD and CMPx registers respectivly. To adjust them you will need to write code to assign different values to these registers. Please see the examples included in C2000Ware. 
      1. How the PWMs react to external stimulus is entirely dependent on the code that you write. You should be able to preform digital reads of jumpers if you wish.
      2. If you wish to turn off the PWM output you can use a trip-zone submodule to force the GPIO to a known state, or you can disconnect the PWM at the GPIO buffer.
    2. It depends on what you mean by "turn it off".
      1. do you want the PWM output to stop? Then connect a digital input to a control signal and you should be fine to disconnect the PWM output at the GPIO buffer as previously state. Again if you want it to happen very quickly you could use a trip-zone input.
      2. If you actually want to shut off the C2000 device you will need to remove power from the device. there is no off switch.
      3. If you want to keep the device from operating you can use TRST to hold the device in reset. Please note that after you come back out of reset your device will need to restart which will take something on the order of a few miliseconds.

      Ammad, I want to be clear that this is a microcontroller, and not just some square wave generation device. You will be required to write software and develop some hardware.

    Regards,
    Cody.