Other Parts Discussed in Thread: IWR1642
Tool/software: Code Composer Studio
Hi,
I use AWR1642 and IWR1642.I have 2 questions:
question 1:
Now i want to achieve task delay,I konw Task_sleep(1);
The function is One millisecond delay, but i want to 1us delay.
The fun is not work!
So,i try the following methods:
uint8_t i = 0;
for(i = 0;i < 1; i++);
I know this function is microsecond delay, but it's not work in demo, I can see the program is work,but the radar is not work, and the EVM's electricity is not jump.(The current jumping indicates that the radar is working).
Here's my program:
uint8_t i = 0;
while(1)
{
mcal_GpioPullUp(3);
mcal_GpioPullUp(4);
for(i = 0; i<1;i++);
// Task_sleep(1);
mcal_GpioPullDown(3);
mcal_GpioPullDown(4);
for(i = 0; i<1;i++);
// Task_sleep(1);
}
I guess the program has been optimized out of the for loop.
How do I achieve microsecond delay???
question 2:
I want to comment the "System_printf" statement, There is no macrodefinition involved?
Thank you,