Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hey there,
I am facing a problem in toggling my GPIO pin
Firstly I am setting it to 1(HIGH)
In the next statement I am toggling my same pin but on my board it is not toggling.
The Control card is TMDXRM48CNCD and here is my code composer studio file
Please provide help
* Include Files */ #include "sys_common.h" #include "system.h" #include "gio.h" /* USER CODE BEGIN (1) */ /* USER CODE BEGIN (2) */ /* USER CODE END */ /* USER CODE END */ /** @fn void main(void) * @brief Application main function * @note This function is empty by default. */ unsigned int i; /* USER CODE BEGIN (2) */ /* USER CODE END */ void main(void) { /* USER CODE BEGIN (3) */ gioInit(); //gioPORTA->DIR = 0 | (1 << 5); /* Bit 5 */ gioSetDirection(gioPORTA,0x20); gioSetPort(gioPORTA,0x20); gioSetBit(gioPORTA,0x20,1); while(1) { gioToggleBit(gioPORTA,0x20); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); for(i=0;i<100000;i++); } /* USER CODE END */ } /* USER CODE BEGIN (4) */ /* USER CODE END */