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.

time calculate MicroC code.

Status
Not open for further replies.

kaarthic

Newbie level 5
Joined
May 24, 2007
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,345
hi friends,

i need the microC code for following matter,

i use two sensors, the pic16F877A get the signal from 1st sensor the timer ON,
when the signal get from 2nd sensor timer OFF, then calculate the between time on & off.

plz help as soon as posible


thanks a lot.....

S.kaArthIc
 

hi,
suppose your pic is running with a 4 mhz crystal and your timer1 prescalar is 1,then your timer will increment in each 1us(micro sec). By this way you can calculate the time delay
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top