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.

TM4C1294 TIVA C Series Connected Launchpad

Hello Community,
This might all seem very easy and stupid to ask but I am new to this kind of programming and lets say our teacher wasnt the most sophisticated.
I am trying to get "http://www.mikroe.com/click/7seg/" this 7 Segment to work on mentioned launchpad.

I have searched a lot of pages and read a lot of manuals but I cant seem to find any point to start, what Ports I have to activate and what i have to do to make those stupid LEDs work.  In the end im supposed to be able to "randomly" display either S1 or S2 and then measure the reaction time it took the player to press one of the 2 build in buttons (PortJ, Pin 1 and 2), via interrupt timer. Im forced to use CCS, my C skills are average but C isnt exactly my problem here.

Id be grateful for any and every answer that might help me with this project.


kindest regards,
Ben

  • Hello Ben,

    Step-1: What is the electrical requirement for the LED's: 3.3V, 5.0V, etc.
    Step-2: What is the protocol required for the LED to work, i.e. how data has to be sent from the micro to the 7-segment LED controller?

    Regards
    Amit
  • Hello Amit,
    Taken from the manual:
    "7seg Click is an accessory board in
    mikroBUS form factor. It’s a compact and
    easy solution for adding seven-segment
    display to your device. It features two
    74HC595 8-bit serial-in, parallel-out shift
    register modules as well as two seven-
    segment displays. 7seg Click™ communicates
    with target board via SPI interface. The board
    is designed to use 3.3V and 5V power supply.
    It has a LED diode (GREEN) that indicates the
    presence of power supply."

    Regards,
    Ben
  • Hello Ben

    Since it uses Serial IN parallel out, you can need to use a set of GPIOs

    1. One GPIO will work as the clock
    2. One GPIO will work as the data
    3. One GPIO will work as the transparent latch signal to allow the shift and at the end of shift close the latch to hold the value.

    You can refer to bitband example in TivaWare.

    Regards
    Amit
  • SPI should work for a '595

    Robert
  • Hello Amit,
    Thank you for your quick answers.
    This is how far i actually understood it aswell. But the theory is not my problem in this case. I understand what the clock and data do and the timer is clear to me aswell but i have no idea how to implement this in css regarding this specific launchpad, thus i dont know how to formulate the coding in ANY kind.
    Seriously i have no idea where to start apart from activating the J Port to be able to use the buttons.

    feeling like an idiot and kindest regards,
    Ben
  • Hi,

    First you need to learn a little bit how to use CCS and make projects. There are  various sources of info about how to start with these on micro page.

    The simplest method is to import into CCS existing projects and compile/link and examine all settings.

    Another point: see this link  

    Which has source code for LM4F232, which is similar with your micro, is the previous Cortex-M4 version. Try to understand that example (should select microC arm) and then add to your project.