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 use timer in ccs c compiler?

Status
Not open for further replies.

hemnath

Advanced Member level 3
Joined
Jun 24, 2012
Messages
702
Helped
61
Reputation
120
Reaction score
57
Trophy points
1,308
Location
Chennai
Activity points
6,588
I'm newbie to programming and did some basic programs in ccs c compiler.
Now like to do using timers, but don't know how to start and where. It will be very kind if anyone would help me!!

Two buttons (start and stop) are connected to connected to microcontroller.
When start button is pressed, timer starts counting and shows the value in lcd. When stop button is pressed, timer stops. When again the start button is pressed, timer starts from zero.

I don't want the program, but I need help how to do this. Can anybody guide me?

Thanks in advance.
 


thanks for ur information ... i will look at it .. im using pic 18F2520 .
 

While the tutorials I provided make use a different compiler, the required configuration and
operation of the Timers remains essentially the same regardless of the actual compiler used.


BigDog
 

thanks for the quick response .. i'll learn it and do some programming. will get back to u soon .
 

You may also want to examine the Capture, Compare and PWM (CCP) modules which are used in conjunction with various timers.

The Capture mode is specifically designed to "time" an event duration, much like your stopwatch analogy.


BigDog
 

how to use capture mode? please guide me.
 

hello,
what is meant by event capture ? i want to use Timer as Counter in CCS 5.3 and i m using Cortex M4F
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top