You are currently viewing How to Interface switch With TMS320C6745 DSP

How to Interface switch With TMS320C6745 DSP

Spread the love

The TMS320C6745 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 Studio3.1 and later, with XDS100 v1 USB Emulator which is done USB port. This blog post explains about how to Interface switch With TMS320C6745 DSP.


Switches are the most commonly used components, usually to provide the high or low logic to I/O pin’s.

Interfacing SWITCH with TMS320C6745

The TMS320C6745 EVB board has 8 pin DIP switch Connected with Dsp I/O pins. The one end of each switch connects to DSP GPIO pins and another end of each connects to ground via 2.7KΞ© resistor. Drive the pins by switch on and off.

Circuit Diagram to Interface SWITCH with TMS320C6745


C Program to Read SWITCH using TMS320C6745 KIT

 #define Uint32 unsignedint

Uint32 Value,i;

void DelayMs(Uint32 Ms);

void main()


Uint32 *gpio_in_data01,*gpio_out_data01,*gpio_dir01;

        gpio_in_data01 = (Uint32 *)0x01E26020;

        gpio_dir01 = (Uint32 *)0x01E26010;

        gpio_out_data01 = (Uint32 *)0x01E26014;


        *gpio_dir01 = 0xF000FFFF;




                Value = *gpio_in_data01;

                *gpio_out_data01 = Value<<16;




void DelayMs(Uint32 Ms)


        Uint32 i;







Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.