Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 15th April 2003, 07:06 AM   (permalink)
Default PHASE ANGLE MEASUREMENT

Hi ALL,

OK I have what SHOULD be a simple problem to solve, but it's driving me mad(der) by the day!! :?

I have an I and a Q circuit which derive two changing DC voltages. These then feed two resettable peak detectors which when one exceeds a threshold tells a PIC micro to read the two peak values, then reset the detectors for the next pass of the system.

NOW, the bit that's driving me up the wall is resolving the two I and Q (X and Y) signals into a phase angle and a phasor amplitude (rectangular to polar conversion). I cannot find an ATAN (Arctan) or Tan^1 function ANYWHERE in the know universe. Can any of my fellow "Boffins" help please?

I need to convert in the range -90 degrees to +90 degrees. Basically its a simple method of measuring signal lag/lead. If you know of a simpler way of doing this then I'd like to know please.

BTW, direct sampling of the signal is OUT as the PIC has to do other things as well, besides which I'm using a carrier of 14.88KHz.
Take_UR_PIC is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 09:35 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.