Hello,
I have my custom built hardware for TMS320F28335. I have run some example code of Port toggling. I successfully tested the Port A and B but the Port C is not getting toggled. The code is given below.
#include "DSP2833x_Device.h" #include "DSP2833x_Examples.h" //#include "DSP2833x_Gpio.h" void delay_loop(void); void LCDport_init(void); void main (void) { InitSysCtrl(); DINT; InitPieCtrl(); IER = 0x0000; IFR = 0x0000; LCDport_init(); //return 0; } void delay_loop() { long i; for (i = 0; i < 1000000; i++) {} } void LCDport_init() { // Set LCD Data pins (D0-D7), LCD R/S pin (D10), LCD R/W pin (D11) and LCD E pin(D12) //GpioCtrlRegs.GPCDIR.all = 0x00001CFF; // EALLOW; GpioCtrlRegs.GPCMUX2.all = 0x00000000; // All GPIO GpioCtrlRegs.GPCMUX1.all = 0x00000000; // All GPIO GpioCtrlRegs.GPCDIR.all = 0xFFFFFFFF; // EDIS; for(;;) { GpioDataRegs.GPCSET.all = 0xFFFFFFFF; //GpioDataRegs.GPCCLEAR.all = 0x55555555; delay_loop(); GpioDataRegs.GPCCLEAR.all = 0xFFFFFFFF; //GpioDataRegs.GPCSET.all = 0x55555555; delay_loop(); } }
Please help
Thanks in advance.