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.

TMS320F28379D: pin map and PWM channels

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

If I am selecting GPIO8 pin, for PWM signal generation. How to select and check in the controlcard.

I cant understand how to use the board in practical to the pins mentioned in the datasheet.

GPIO8 0, 4, 8, 12
G2 18 –
I/O General-purpose input/output 8
EPWM5A 1 O Enhanced PWM5 output A (HRPWM-capable)
CANTXB 2 O CAN-B transmit
ADCSOCAO 3 O ADC start-of-conversion A output for external ADC
EQEP3S 5 I/O Enhanced QEP3 strobe
SCITXDA 6 O SCI-A transmit data

  • Hi Krishnan,

    You need to use the correct muxing value to enable the respective peripheral. Please check the peripheral examples to get an idea.

    Regards,
    Gautam
  • Krishnan,

    The F28379D pins are multiplexed. For selecting GPIO8 as PWM the code would look like:

    GpioCtrlRegs.GPAGMUX1.bit.GPIO8 = 0;
    GpioCtrlRegs.GPAMUX1.bit.GPIO8 = 1;

    // 0|0=GPIO 0|1=EPWM5A 0|2=CANTXB 0|3=ADCSOCAO
    // 1|0=GPIO 1|1=EQEP3S 1|2=SCITXDA 1|3=rsvd
    // 2|0=GPIO 2|1=rsvd 2|2=rsvd 2|3=rsvd
    // 3|0=GPIO 3|1=rsvd 3|2=rsvd 3|3=rsvd

    Note that there is two levels of multiplexing - the group and the pin within the group.

    If you are using the controlCARD and Dock Station, this signal will appear on header pin number 57. For additional information, please see C2000Ware:

    C:\ti\c2000\C2000Ware_<version>\boards

    Look in the controlCARDs\TMDSCNCD28370D folder and the ExperimenterKits\DockingStation_HSEC_120or180pin folder.

    Also, to learn more about the device and selecting the GPIO signals, please see the F28379D workshop at:

    processors.wiki.ti.com/.../C2000_Multi-Day_Workshop

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken
  • Hi ben,

    1. I cant understand the example program.

    Can you explain a program for PWM generation and how to check in the control card?



    2. Also tell the path for finding the below statements:

    Step 1. Initialize System Control:
    Step 2. Initialize GPIO:
    Step 3. Clear all interrupts and initialize PIE vector table:
  • Krishnan,

    The example code in C2000Ware consists of a main() with calls to functions found in the \common\source folder. For example, in step 1 the InitSysCtrl() function is found in the \common\source\SysCtrl.c file, and likewise for step 2 in Gpio.c file, and for step 3 in the PieCtrl.c file.

    Again, I suggest referencing the F28379D workshop to learn more about the device:

    processors.wiki.ti.com/.../C2000_Multi-Day_Workshop

    In lab 7 exercise you will find a program that generates a PWM waveform and you can view the waveform with CCS using a jumper wire to connect the ePWM output pin to the ADC input pin. Also, you can find video series for the one-day workshop at:

    training.ti.com/c2000-f2837xd-microcontroller-1-day-workshop-series

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken