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.

Pulse width measurement

Status
Not open for further replies.

sivamit

Full Member level 4
Joined
Dec 1, 2005
Messages
201
Helped
20
Reputation
40
Reaction score
14
Trophy points
1,298
Activity points
2,651
Hi friends,
Can anyone tell me -How to measure the pulse width (in the range of micro seconds) of a pulse? Amplitude level is around 2 volts. And the pulse repetition frequency is 200.
Pls.
 

u can do it by using int0 or int1 and gate in the timer mode of 8051 use that condition

MOV TMOD,#00001001B


MOV TH0,#0
MOV TL0,#0

SETB TR0

JNB P3.2,$
JB P3.2,$


MOV R2,TH0
MOV R3,TL0



MOV A,#0FFH
SUBB A,R3
MOV R4,A

MOV A,#0FFH
SUBB A,R2
MOV R5,A

MOV TMOD,#10H
MOV TH1,R5
MOV TL1,R4

SETB P2.2
SETB TR1

JNB TF1,$
CLR P2.2

CALL DELAY

CLR TR1
CLR TF1
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top