dhanashpic
Newbie level 2
hi..i want to measure the power factor...so zero crossing of voltage given to RD0 of portD and zero crossing of current given to RD1.my timer (TMR0) start from 0x3c.The problem is that variable r didnt read the value of TMR0...my coding is as follows..
while(RD1==1);
TMR0=0x3C;
while(RD1==1);
r=TMR0;
thanks
while(RD1==1);
TMR0=0x3C;
while(RD1==1);
r=TMR0;
thanks