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.

converting value in TMR1H & TMR1L into hours (PIC16F877A

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
tmr1h

The problem is this:

The time is calculated using timer 1 in PIC16F877A microcontroller. The measured value is stored in the TMR1H & TMR1L registers. I have this value now in an int variable. I need to convert this value to hours since we need to do our calculation in km/h.
It involves using clock_khz() function which generates 4000 which is the crystal value. i need to know how to convert my integer value to hours.
I need hep regarding this urgently. Thanx!!!!
 

tmr1h tmr1l

use amagic number to convert this values into hours
 

tmr1h pic16f690 timer

thanks 4 ur help.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top