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.