I am using the MSP-EXP430G2 Launch Pad. I have successfully used the WatchDog in interval mode and the TACLK in Timer0 to measure the frequency of Pin Oscillator on P1.0. In the WatchDog interrupt, I stop the timer, read TAR, clear TAR and start the timer for the next interval.
However, when I use the same code and change only the pin that has a running oscillator, I see the oscillations with my scope but TAR is always zero. I have ensured that the pin is not tied to some other option on the Launch Pad. I used Grace to set up the pins (and WD and TMR) and checked the code to ensure the correct bit is being set in P1SEL2 with P1SEL being zero. Also, as I say, I see the oscillations on the pin. I suspect I am missing a setting to route the pin to TACLK, but I can't find any reference to indicate such. It appears they are all connected and the reference indicates some may be OR'ed together. Hence only one pin at a time should be allowed to oscillate. For Timer0_A3, I have TACLK selected but the TA0CLK Input OFF (not routed to the pin). As I have said this works for P1.0.
Weird, yes! Ideas?
Regards,
JRockel