Part Number: MSP430FR6879
Hi,
Currently, timer A is used to measure the time by capture interrupt.
Interrupts may be executed regardless of fluctuations in the input signal. For this reason, we are investigating the cause.
[Operating conditions]
Use timer A0 in capture mode, use P1.6 with TA0.1 pin,
An interrupt is executed by inverting the input signal (both edges).
Timer A0 operates intermittently and writes the following settings at the start.
--TA0CCTL1 = 0xC910
--TA0CTL = 0x0120
The stop operation is executed within the capture detection interrupt or after the specified time has elapsed, and the following operations are performed.
--TA0CTL = 0x0000
--TA0CCTL1 & = 0xFFFE (CCIFG clear)
At this time, an interrupt may be triggered immediately after the timer A0 starts and interrupt processing may be executed. (Not every time, rarely done)
【Question matters】
(1) Is there any operation that triggers CCIFG due to access to the peripheral, such as a setting error in timer A?
(2) Is the sample code of the timer that configures the capture provided?
Thanks,
Koki
