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.

CCS/TMS320F28335: gpio DIRECTION FOR lcd 40X4 AS INPUT /OUTPUT

Part Number: TMS320F28335
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Dear sir,

             I am interfacing TMS320f28335 with LCD 40x4(LM40400). while gpio initialization   I taken 

DB0-DB7 ------>data line --------> output----------->from (GPIO0-GOIO7)

LCD_RS,LCD_WR,LCD_E1,LCD_E2-------------->control singal------------->input(GPIO10,GPIO12,GPIO13,GPIO14)

My question is : the control signals which are used can take as input or output for GPADIR.?


GpioCtrlRegs.GPAMUX1.all = 0x00000000; // 
GpioCtrlRegs.GPADIR.all = 0x000000FF;//

#define LCD_WR  GpioDataRegs.GPADAT.bit.GPIO10
#define LCD_RS  GpioDataRegs.GPADAT.bit.GPIO11
#define LCD_E1  GpioDataRegs.GPADAT.bit.GPIO12
#define LCD_E2  GpioDataRegs.GPADAT.bit.GPIO13