This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR5994: a question about TIDA-01063

Part Number: MSP430FR5994
Other Parts Discussed in Thread: TIDA-01063

Hi, this is a beginner's question.

I  studied TIDA-01063 design guide.  I want to use the rogowski coil in my product. The question is when I implement the digital integrator, I need to turn this equation into c code.

y(n) = y(n-1) + T*x(n)

x(n) is the input data. y(n) is the output data. But, at first time, where can I get the y(n-1)?

In the excel included in the TIDA-01063, I found the first y(n-1)  is 0. Is this always true?

In my application, sometimes the ADC will halt, which means the integrator stop. When the ADC works again, the value of y(n-1) is random, because I don't know when previous integration happened. At this time, what value I should assign to the y(n-1).

This is a beginner's question. Thank you.

**Attention** This is a public forum