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.

how to initialize timer0 in pic c

Status
Not open for further replies.

suvaraj

Member level 2
Joined
Dec 24, 2010
Messages
50
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,298
Location
erode
Activity points
1,580
hi to all
i'm using ccs c compiler for pic(mp lab ide v.8.53).how to initialize timer0 in pic16f84a?.i"m set OPTION=0x00 AND TMR0=0xFF;
this way is correct or not?if u have any other way to initialize timer0?pls help me.i'm attached a timer0 example program.pls giv suggession
thanks
 

Attachments

  • timer0.txt
    257 bytes · Views: 85

Hi,

Use this tool to calculate register values for Timers;
**broken link removed**

Hope this helps you,
 
hi

normally if you are using the interrupt, timer will be more useful because it runs independent of the actual program execution.
first of all timer 0 is always working. when you want to use it, you can load the reaload value and enable the interrupt.
have you build and tested the file? what was the result?

ml
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top