You have no items in your shopping cart.

Subtotal: 0.00

TMS320C5505 DSP Development Board

The TMS320C5505 DSP Development Board is specially desgined for developers in dsp field as well as beginners. The kit is designed in such way that all the possible features of the DSP will be easily used by the everyone.

The kit supports in Code Composer Studio v4 and later, with XDS100 v1 USB Emulator which is done USB port.

LEDs

A Light Emitting Diodes (LEDs) are the most commonly used components, usually for displaying pin’s digital states.

 

Interfacing LED with TMS320C5505

The TMS320C5505 EVB board has four LED Connected with Dsp I/O pins (details tabulated below). The cathode of each LED connects to ground and Anode of each LED connects port via 220Ω resistor. To light an individual LED, drive the associated port signal to High.

Circuit Diagram to Interface LED with TMS320C5505



circuit-diagram-to-interface-led-with-tms320c5505

C Program to On/OFF LED using TMS320C5505 KIT

C Program to On/OFF LED using TMS320C5505 KIT
***************************************************************************************
Title	: Program to Blink LEDs (main.c) 			
	         
***************************************************************************************

#include "stdio.h"
#include "usbstk5515.h"

void TEST_execute( Int16 ( *funchandle )( ), char *testname, Int16 testid )

{
    Int16 status;

    /* Display test ID */
    printf( "\n%02d  Testing %s...\n", testid, testname );

    /* Call test function */
    status = funchandle( );

    /* Check for test fail */
    if ( status != 0 )
    {
        /* Print error message */
        printf( "     FAIL... error code %d... quitting\n", status );

        /* Software Breakpoint to Code Composer */
        SW_BREAKPOINT;
    }
    else
    {
        /* Print error message */
        printf( "    PASS\n" );
    }
}

extern Int16 uled_test( );



void main( void )
{
    /* Initialize BSL */
    USBSTK5515_init( );

    printf("EXBUSSEL = %02x\n", SYS_EXBUSSEL);
    
    TEST_execute( uled_test,  "User LEDs", 1 );

    printf( "\n***ALL Tests Passed***\n" );
    SW_BREAKPOINT;
}

/*
 *  ULED Test
*/

#include "usbstk5515.h"
#include "usbstk5515_led.h"
#include "stdio.h"



//     User LED tests toggles each of the four user LEDs 6 times            
Int16 uled_test( )
{
    Int16 i, j;
    
    printf("    User LED tests toggles each of the four user LEDs 6 times\n");
 	SYS_EXBUSSEL = 0x0A00;  // Enable user LEDs on external bus
    USBSTK5515_ULED_init( );

    /* Running LED test */
    for ( j = 0 ; j < 6 ; j++ )
    {
        for ( i = 0 ; i < 4 ; i++ )
        {
            if ( USBSTK5515_ULED_on( i ) )  // Turn on user LED i
                return 1;
          
  USBSTK5515_waitusec( 50000 );
        }
        
        for ( i = 0 ; i < 4 ; i++ )
        {
            if ( USBSTK5515_ULED_off( i ) ) // Turn off user LED i
                return 2;
            USBSTK5515_waitusec( 50000 );
        }
    }
    USBSTK5515_ULED_setall( 0x00 );

    return 0;
}