Other Parts Discussed in Thread: MSP430F5510
Hi!
I'm using a MSP430F5510.
In need to use TA0 in compare mode in order to generate interrupts at specific time intervals.
I do not understand a couple of thing of how the timer work.
- First issue:
I do not need to use the ouput functionalities of the timer.
If I use TA0CCR0 can i use P1.1 as a generale purpose pin?
As far as i can understand in order to do that I should let P1SEL.1 at 0. Is it correct?
- Second issue:
Let's suppose i set compare register 0,1,2,3
TA0CCRn = delay_n;
TA0CCTLn = CCIE;
if after a while i do not need any more the timings associated with register 2, i would do
TA0CCTL2 = 0;
do i also need to write 0 in TA0CCR2?
I do not see any "stop flag" for the single register. Is it enough to disable CCIE?
- Third issue:
in the data sheet i can not find any pin associated with compare register 5 and 6. Is it that with my microcontroller there are just 5 compare register and not 7 or is it that register 5 and 6 do not have ouput (and input) capability?
Thank you very much!
Carloalberto