help in adc programming in mikroc

Status
Not open for further replies.

hafizimran18

New Member
Let we have samples of V(sinusoidal voltage) and Itotal(current rich of harmonics) and If (fundamental component of current), then
Swith_harmonics =VxItotal
Iharmonics = sqrt(Itotal 2 –Ifundamental 2)
Qharmonics = VxIharmonics
Distorted angle = asin(Qharmonics ÷ Sharmonics )
True active power = Sharmonics x cos (Distorted angle)

i want to apply these equations in mikroc ,, please tell me how to scale them if i have an input with Vmax=5V,, and how to show send the result on some PORT so that i can check if its correct,, please its urgent,,,
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…