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.

RM46L852: Slow Cycle Time

Part Number: RM46L852
Other Parts Discussed in Thread: HALCOGEN

Hello, I'm very new to microcontroller programming.

Since I got my launchpad 2xl ive been trying different tutorials found online.

Now I tryed something very simple. Turning on and off a led using one input and one output.

Im using CCS and Halcogen.

The code works but I dont know what i did tot the board because the cycle time is very slow.

Here you have the code.

int main(void)
{
/* USER CODE BEGIN (3) */
gioInit();
int state;
hetInit();

while(1){

printf("%i", state);
printf(" \r\n");

state=gioGetBit(gioPORTA, 0);
if(state==0){

gioSetBit(gioPORTA, 1, 1);

}
else if(state==1){

gioSetBit(gioPORTA, 1, 0);
}
}

/* USER CODE END */

return 0;
}

I print in the console the state of the gioPORTA 0 at every pass of while loop.

And it takes about 1 second for every pass..Which is very slow.

I will post a video below.

Can anyone tell me what a missed up and how to make the board faster or reset it to initial state.

Thank you in advance.

photos.app.goo.gl/uxrjegzerSr6NfgZ2