CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

how to detect lower edge of sine wave at 100Hz..?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dani



Joined: 02 Jun 2004
Posts: 16
Location: Pakistan

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger

how to detect lower edge of sine wave at 100Hz..?
PostPosted: Wed Sep 28, 2005 5:06 am     Reply with quote

Hi all,

I need to start a timer after detecting every lower edge of a ac standerd sine wave of 50HZ.

I have changed these waves to fully rectified sinewave.

..............................*........*.......... ..........................*.......*..............
.....................*........................*... ..................*.....................*........
................*................................. .*...........*...............................*...
.............*.................................... ....*....*......................................*.
.. --->..*............................................*<---................................-->...*
...here........................................... .......here................................here

can any one give me idea how to do this and if any one can share some sample code.

Regards
ljbeng



Joined: 10 Feb 2004
Posts: 205

View user's profile Send private message

PostPosted: Wed Sep 28, 2005 7:32 am     Reply with quote

Have you looked at the H11AA1? I use these. I get a 120hz pulse from a 60Hz 120Vac line. I get one pulse at all the zero crossings. The middle of that pulse would be the exact zero crossing point. I am not sure what you mean by "Lower Edge". Do you mean only the part of the sine wave that is below the line?

Code:

    33K 2W
120VAC --/\/\/\/------|pin 1 H11AA1  pin 6|           10K
Neutral --------------|pin 2         pin 5|---------/\/\/\/--+5
                      |pin 3         pin 4|--ground

Pin 5 is connected to your processor.

Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group