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.

Delay and UART using same Timer

Other Parts Discussed in Thread: MSP430G2412

Hi, I am a newbie in MSP430 programming I am working on msp430g2412 and after going through some examples from code examples I have few confusions. Here is the case;

1) When i press the button the LED should toggle with the specified delay in between. I have a program which sets CCRO of Timer A as required and using ISR this delay is created.

2) I want to use UART example code along with it so that meanwhile i can send some value also using it to computer when i press the specific button. In the example they are using again Timer A and in continuous mode not in Up mode as in case of delay function.

The idea in my mind is to use  "UP" mode and then use the timer overflow and make a switch case in the ISR. But in this case the problem is that the same CCRO is used in both cases in case of delay function as well as in case of UART. So I am a little confused here. Any idea would be really appreciated.

**Attention** This is a public forum