hello,
I'm trying to configure the GPIO 1 by using the Driverlib GPIO functions as reference only, to write to the GPIO control and data registers.
but so far I'm not able to set High or Set Low the GPIO 1 pin.
by the way, I'm using CCSv5 and the C2000 Launch Pad.
This section of my code, to configure GPIO 1 as output:
asm("EALLOW");
SysCtrlRegs.PCLKCR3.bit.GPIOINENCLK =1;
GpioCtrlRegs.GPACTRL.all = 0;
GpioCtrlRegs.GPAQSEL1.all = 0;
GpioCtrlRegs.GPAMUX2.all = 0;
// //GPIO for Display DATA //
// // Set GPIO 1, GPIO_1_Mode_GeneralPurpose
// // set GPIO 1, GPIO_Direction_Output
// // Set GPIO 1, GPIO_PullUp_Disable
GpioCtrlRegs.GPAMUX1.bit.GPIO1 = 0;
GpioCtrlRegs.GPADIR.bit.GPIO1 = 1;
GpioCtrlRegs.GPAPUD.bit.GPIO1 = 1;
asm("EDIS");
And, this is my code to set high, low or toggle the GPIO 1:
GpioDataRegs.GPASET.bit.GPIO1 = 1;
GpioDataRegs.GPACLEAR.bit.GPIO1 = 1;
GpioDataRegs.GPATOGGLE.bit.GPIO1 = 1;
I already read the User's guide of the F28027 C2000 Piccolo, and honestly i ran out of ideas, so!
Anyone has an idea of what is the problem, do I missing something regarding CLK for the GPIO module or some else?
Regards.