Hi, everybody.
I want to use Timer and UART at the same time.
How can I do?
Please, thanks.
/Whung
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.
Hi, everybody.
I want to use Timer and UART at the same time.
How can I do?
Please, thanks.
/Whung
Now.
In A file include Timer and UART code.
But the result is not expect(UART is fail).
If I delect "Timer part" code, the UART function is expect(UART is sucess).
I don't know why.
And how can I do?
I don't see how either of these are related at the moment with the information that you have provided. The Timer modules and the USART modules are completely separate.
What I do see as related is the possible pins that the USART and Timer have in common which might be a potential conflict. The Table 50 in the CC2510F32 datasheet describes these potential conflicts.
I know these potential conflicts.
So, I use UART1 by P1_6 and P1_7.
And I use Timer1 by P1_2, P1_1, and P1_0.
Theoretically, it's Feasible.
In facy, it's not expect.
I feel strange.
/Whung
Now, I can use Timer and UART.
I put timer after uart and ling time.
ex:
main
{
uart define;
timer define;
}
become to
main
{
uart define;
...
...
...
timer define;
}
But I still don't know why it's OK.
And, thakns.
But now, I meet another problem.
It's big trouble to me.
I add another timer (timer3) .
If I set timer 3 is 3 second.
I wann to use timer in 3 second.
And after 3 second, close UART.
Now, I can close UART after 3 second.
But I can't use UART in 3 second.
How to do this, and are there some idea ?
Please help me.
/Whung