kaarthic
Newbie level 5
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!!!!
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!!!!