Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to detect the peak value of sine wave using 8051 microcontroller

Status
Not open for further replies.

rajendra_415

Newbie level 2
Joined
Dec 20, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
hi all,
i am using 8051 in my project
 
Last edited:

1. Detect the zero crossings

2. measure the period (20 ms), ie. the time between 2 positive going zero crossings

3. divide the period by 4

4. wait that time after a positive going zero crossing

5. measure the sine voltage at that point.
 

1. Detect the zero crossings

2. measure the period (20 ms), ie. the time between 2 positive going zero crossings

3. divide the period by 4


4. wait that time after a positive going zero crossing

5. measure the sine voltage at that point.

in circuit u need ADC also ....and interface it to the controller ..Apply the above algorithm as given by ljcox .
from the programming angle it will be easier if you make use of the interrupts external.

---------- Post added at 23:49 ---------- Previous post was at 23:31 ----------

 

1. Detect the zero crossings

2. measure the period (20 ms), ie. the time between 2 positive going zero crossings

3. divide the period by 4

4. wait that time after a positive going zero crossing

5. measure the sine voltage at that point.

hi thanks for u r reply
will u please give me the example code for what u said
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top