P2.3 interrupt, Capture on both rising and falling edges
every timer interrupt, timer_count+1;
P2.3 interrupt P2.3 interrupt
P2.3 interrupt P2.3 interrupt
|-----------| |--------------|
______________| |________________| |________
Timer begin | | |
Timer_count=0 Timer_count=0 | ....
| |
T=timer_cout T=timer_count
output T output T
Reply by Gustavo Lima●August 6, 20092009-08-06
Hi,
I'm using the ez430RF2500 (MSP430 2274 + ZigBee module) and I need to
measure the time interval between input pulse signals (0V to 3.6V) . I
tried to implement a timer interrupt in capture mode but it don't
works. Someone can help-me? (my code with comments of the
configurations used is following)
MCx Bits - Mode control.
00 Stop mode: the timer is halted.
01 Up mode: the timer counts up to TACCR0.
10 Continuous mode: the timer counts up to 0FFFFh.
11 Up/down mode: the timer counts up to TACCR0 then down to 0000h.
*/