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.

using timer for 16f877 or 18f4550

Status
Not open for further replies.

anuphr

Newbie level 6
Joined
Aug 5, 2009
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,360
how to use the timer in a 16f877 with c

i know how to set a timer
but now i need to start the timer from some middle value like 100h
how can i store 100h in the timer register
and i am using ultrasonic so i am planning to use a timer
how can i read the time count present in the timer after i receive the signals
i am using pic 16f877 or pic 18f4550

if anyone has the code do mail it too me plzzzzzzzz

plzz do help me i want to join engineering so preparing by building projects
 

18f4550 timers

Hi,

You can preload a timer with 0x0100 simply by writing to it -
clfr TMR1L
clrf TMR1H
bsf TMR1H, 0

Try looking at the CCP module for timing your pulses
 

timers in c 18f4550

i am writing program in c using mplab
how to write in c these codes plzz
guide me
 

timer 0 in 18f4550

you can load value you wish (0x100) to timer registers TMRxH and TMRxL, don't forget to set interrupt related registers and create ISR for the timer.
just the syntax will be, suppose you are using timer 0:
TMR0H = 0x01; //you will load to the timer register 0x0100
TMR0L = 0x00;

good luck
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top