Tool/software: Code Composer Studio
Hi,I am using a GPIO to trigger a relay.My relay is normally open.So,I am initially setting my GPIO to low initially by using ''GPIODATAREGS'' but GPIO is still giving a logical high.I tried to set it as input also.And can someone tell me how to set my GPIO13 to Low initially(otherthan uncommenting) I have added a part of my program here (configuring GPIO 13).
//--------------------------------------------------------------------------------------
// GPIO-13 - PIN FUNCTION = --Spare--
GpioCtrlRegs.GPAMUX1.bit.GPIO13 = 0; // 0=GPIO, 1=TZ2, 2=Resv, 3=SPISOMI-B
GpioCtrlRegs.GPADIR.bit.GPIO13 = 0; // 1=OUTput, 0=INput
GpioDataRegs.GPACLEAR.bit.GPIO13 = 1; // uncomment if --> Set Low initially
// GpioDataRegs.GPASET.bit.GPIO13 = 1; // uncomment if --> Set High initially
//--------------------------------------------------------------------------------------
Thanks