Re: Timing Functionality on MPC555

Jay Cordaro <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
Hi Eric,

Have you considered using the Decrementer?  The count
rate is documented in the UM.  Just move a value to
the decrementer, call your function, then move
decrementer to a GPR and read the value.  I use this
all the time.

regards,
Jay Cordaro
--- Eric <[email protected]> wrote:

> Hi everyone,
> 
> It seems like this should be fairly easy, but I'm
> having a hard time
> finding the right functionality.
> 
> I want to measure how long certain functions are
> taking in my code, so
> I want a way to track time rather accurately
> (precision on the order
> of micro-seconds, hopefully).  I was wondering what
> I should be using
> just to get two values - a starting time, and an
> ending time.  I was
> hoping to read directly from the real-time clock,
> but that seems to
> give garbage as output.
> 
> Anyone know what I should be looking at?
> 
> Thanks,
> 
> -Eric Castle
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.