count = 7 means 7 * 250us = 1.75 ms has elapsed.
Longer cycles what ? Do you mean I have to use timer interrupts of 500 us and 1 ms ? but the count and TMR1 are holding correct values (values which give 2 ms).
Only if you want to measure displacement power factor selectively. But the power factor of switched mode and transformer power supplies with rectfier is dominated by harmonic distortion and can't me measured with the intended setup.Your circuit shows a clean sine. In reality you need precise filter to get rid of the overtones.
if(INT0IF_bit) {
INT0IF_bit = 0;
InitTimer1();
I will answer to all your responses soon. As of now here is my latest code.
Thank you FvM. Converting the angle to radians solved the problem.
Hi
Angle --> radians
360° = 2 × Pi
Klaus
Google showed
1 degree = 0.0174532925 radians
So, I multiplied like this
cos(angle * 0.0174532925)
Indeed
cos(35.604 * 0.0174532925) = 0.81306012
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?