How i can detect the phase of my input using using counter?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello Every one,

   

I want to detect phase of my input signal. Is there any possibilty to do that using counter or pwm?

   

Looking forward for your reply!

   

Regards

   

Awais

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Yes, looks like a PLL. I cannot see exactly what the capture input for your counters is generated from.

   

What is the input frequency range? Width of the counters?

   

 

   

Bob

View solution in original post

0 Likes
6 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Some more information needed:

   

Analog signal or digital?

   

Phase compared to what?

   

Frequency of signal?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Signal: Digital

   

Frequency: 500Hz to 1KHz

   

I want to detect the phase of the signal comming out of my comparator. 

   

Awais

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Probably I am stumbling over the language barrier, sorry.

   

What do you understand by the "phase" of a digital signal, it is just a bit-stream. In my understanding the "phase" is something you compare to another signal. Or are you reflecting to the edge transitions high-low and low->high?

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Sorry, I make it a little complicated.

   

Its actually a frequency counter, I want to compare the frequency and phase of the signal with my input signal (actual signal). For that i was thinking about to use a counter with PWM but i am not sure about it.

   

My input signal is a sine wave so, for that i converted into square wave using logic signals. But, I am also getting some trouble in selecting the clocks.

   

I attached a pic what i make so far, may b you will better get the idea.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Yes, looks like a PLL. I cannot see exactly what the capture input for your counters is generated from.

   

What is the input frequency range? Width of the counters?

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Yes, its actually a PLL.

   

From Counter side: I set resolution to 16 bits (65535), compare value to 255 and its an up counter.

   

Prom PWM : See attached picture.

   

I was thinking between 500 and 1K of frequency range.

0 Likes