Part Number: MSP-EXP430FR2433
Other Parts Discussed in Thread: MSP430FR2433
Hello,
I have an application which I am waiting for character string from eUSCI_A1 in UART mode.
In my case, waiting for /r or /r/n is not practical to determine whether all string is received; so I decided to use timer for this very purpose.
My intention is to initialize Timer1_A3 in up mode, start the Timer1_A3 when I receive the first char via eUSCI_A1 and restart the timer (counting from zero) each new char is received. I will set CCR to a value which will let the timer overflow when about 25ms passed and I will set a flag in CCR overflow interrupt indicating the string has been received fully.
Basically I want to measure the time between two receive events and if it reaches to 25ms, this will mean receive is completed.
The problem is, I did not see an option to restart timer from zero explicitly. TACLR is not a very good option since it also clears theinitializon of other Timer parameters like count direction, prescaler etc.
Any ideas?
P. S. Any advice through driverlib is appreciated. I don't like working with register names very much.
Thanks in advance.