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.

Tracking Time and how to deal with Real Time Clock for CCS?

Status
Not open for further replies.

dani

Full Member level 4
Joined
Mar 8, 2004
Messages
231
Helped
6
Reputation
12
Reaction score
4
Trophy points
1,298
Location
UK
Activity points
2,217
Tracking Time...

Hi all,
To track time for a specified task..where some function purely based on elapsed time and accuracy of time is also criticle, is external RTC with PIC microcontroller is more suit able or interuppt driven time calculation is sufficient for this task...
Please share ideas based on experiences....
 

Re: Tracking Time...

Hi,

Facing this kind of problem, I founded two solutions :

1) Activation/desactivation of a port at the begin/end of the task or isr routine an mesuring the elapsed time with a scope.

2) Use a timer. By reading it at the begin of the task / isr and reading again at the end. Knowing the clock frequency the timer is feeded with gives the elapsed time value.

For both solution, add the time neeged to do these operation by reading the asm code and counting the instruction cycles, can improve the accuracy of the result.
 

Re: Tracking Time...

Does anybody have idea how to deal with Real Time Clock for CCS compiler? Thanks!
 

CCS code for RTC interfacing

Hi,
There are example codes available to interface realTime Clock Chips which you can find with the installation of CCS Compliler. Or otherwise you can search your solution at CCS forum or Technocrafts Forum.

Links are
www.technocrafts.com/forum
www.ccsinfo.com/forum

Or if you need some specific thing you can ask.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top