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/TMS320F28377D: TMS320F28035-7 segment LED interfacing WITH TMS320F2837xD

Part Number: TMS320F28377D
Other Parts Discussed in Thread: TMS320F28379D

Tool/software: Code Composer Studio

i am working with TMS320F2837xD microcontroller. i have to itnerface it with 7 segment  display. and i dont understand how to do it. i am using TMDSCNCD28377D_180cCARD_pinout_R1_1 pin diagram and i dont understand where to connect the display

please help me how to interface the display with this microcontroller 

  • Hi Lakshmi,

    What kind of interface options does the 7 segment display module provide? Please research all the details related to the display first. Then I suggest you go through the following training:

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

    You may find that helpful in answering your questions. Please let us know if you need further assistance

    Cheers!
    Krishna
  • Thank you, Krishna Allam,

    there is a lot of useful information in the link.
    But I am new to this board and there are so many examples in the link that I cannot figure it out which one is related to display applications. I mean how to interface a display device to this microcontroller?
  • hi,
    i am using LTP587G display to interface with TSM320F28379D MICROCONTROLLER
  • Hi Lakshmi,
    The purpose of the content in the link I provided is for training purpose and to increase your expertise with the TMS320F2837xD microcontroller.
    The LTP device is not a TI part so do not have the expertise on that device to make a recommendation. If you have any specific questions related to using the TI microcontroller please let us know. Cheers! Krishna
  • hi,

    i want to connect a 7 segment display to f28377d. 

    in my c code when result crosses a threshold i should display 1 in the result crosses threshold 2 times it should display 2 in the display 

    i dont know how to do that. please help me how to do that 

  • Hi Lakshmi,
    Ok let us start with the basics. You have a single 7 segment display correct? Do you have the processor (f28377d) connected to the 7 segment display? If yes, Do you have some test code that can exercise the interface between processor and the display and can you display 1, 2, 3, 4...etc.,
    Thanks,
    Krishna
  • I have 7 segment display and f28377d processor. 

    I don't have test code to exercise interface between processor and display. I am searching for how to interface f28377d with the display but I couldn't find it anywhere. how to do so. 

     

  • Hi Lakshmi,

    We do not know any thing about the 7 segment display. You will have to contact the manufacturer of that device and ask them for any application notes and such that they might have.

    Were you able to study the training material in the link I provided. One suggestion I have is that interface to the display via GPIOs.

    Thanks,
    Krishna
  • yes, I tried using GPIO pins.
    I have example code to blink led on f28377d board with the code shown below

    //###########################################################################
    // FILE: blinky_cpu01.c
    // TITLE: LED Blink Example for F2837xD.
    //
    //! \addtogroup cpu01_example_list
    //! <h1> Blinky with DCSM </h1>
    //!
    //! This example blinks LED X
    //
    //###########################################################################
    // $TI Release: F2837xD Support Library v180 $
    // $Release Date: Fri Nov 6 16:19:46 CST 2015 $
    // $Copyright: Copyright (C) 2013-2015 Texas Instruments Incorporated -
    // http://www.ti.com/ ALL RIGHTS RESERVED $
    //###########################################################################

    #include "F28x_Project.h" // Device Headerfile and Examples Include File

    void main(void)
    {
    // Step 1. Initialize System Control:
    // PLL, WatchDog, enable Peripheral Clocks
    // This example function is found in the F2837xD_SysCtrl.c file.
    InitSysCtrl();

    // Step 2. Initialize GPIO:
    // This example function is found in the F2837xD_Gpio.c file and
    // illustrates how to set the GPIO to it's default state.
    InitGpio();
    GPIO_SetupPinMux(31, GPIO_MUX_CPU1, 0);
    GPIO_SetupPinOptions(31, GPIO_OUTPUT, GPIO_PUSHPULL);

    // Step 3. Clear all interrupts and initialize PIE vector table:
    // Disable CPU interrupts
    DINT;

    // Initialize the PIE control registers to their default state.
    // The default state is all PIE interrupts disabled and flags
    // are cleared.
    // This function is found in the F2837xD_PieCtrl.c file.
    InitPieCtrl();

    // Disable CPU interrupts and clear all CPU interrupt flags:
    IER = 0x0000;
    IFR = 0x0000;

    // Initialize the PIE vector table with pointers to the shell Interrupt
    // Service Routines (ISR).
    // This will populate the entire table, even if the interrupt
    // is not used in this example. This is useful for debug purposes.
    // The shell ISR routines are found in F2837xD_DefaultIsr.c.
    // This function is found in F2837xD_PieVect.c.
    InitPieVectTable();

    // Enable global Interrupts and higher priority real-time debug events:
    EINT; // Enable Global interrupt INTM
    ERTM; // Enable Global realtime interrupt DBGM
    // Step 6. IDLE loop. Just sit and loop forever (optional):
    for(;;)
    {
    //
    // Turn on LED
    //
    GPIO_WritePin(31, 0);
    //
    // Delay for a bit.
    //
    DELAY_US(1000*500);

    //
    // Turn off LED
    //
    GPIO_WritePin(31, 1);
    //
    // Delay for a bit.
    //
    DELAY_US(1000*500);
    }
    }


    I also know the connections of display I am using. if I have to turn on any one led of display I am using 100ohms resister conntecing to common annode node and i should give a 2.5 volts to resistor other end and have to connect ground to the particular pins of display to turn on LED .

    so now how to interface this code to Display and make one of the led in the display work.
  • This is a pin diagram of 7-segment display I am using.

    At right I have connected 18 pin to the resistor, gave 2.5 v to another end of the resistor, and connected ground and pin 17 so N WILL GLOW

    If I want to GLOW C and D, I will connect 13 and 16 pins to ground

  • Hi Lakshmi,
    Looks like you are almost there...you know how to use the GPIOs and you have already hooked it up to control LEDs. Now you just need to configure a set of GPIOs and connect them to the 7-segment display appropriately.
    Cheers!
    Krishna
  • hi, 

    now I can make the led on by connecting one pic to respective GPIO pin and another pin to ground. 

    now I have a question on how to code the 7 segment. I can give inputs to GPIO pics 1 or 0 but I am using common anode so how can I connect ground to all the pins that have to glow. 

    My question is can I make GPIO pins as ground terminals so that I can connect them to 

    I tried all the combinations to make the pins 0 and connect it to 7 segment display pins but it doesn't work the light is only glowing when it is connected to ground

  • Hi Lakshmi,
    Please let us know if you were able to resolve this issue.
    Thanks,
    Krishna
  • yes, my problem was solved now i know how to connect led to TMS320F28379D 

    Thank you