This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AdderII: Writing an ISR for the CPM timers


On Tue, 2004-05-04 at 06:07, Tzahi wrote:
> Hello
> I am using an AdderII board (MPC852T) running eCos 2.0.
> I would like to write an ISR that would be activated exactly every 100msec.
> (I found that using the cyg_alarm had not been accurate enough for my
> needs).
> I can use the CPM timers for measuring a TimeStamps in a 48MHz accuracy.
> I know that there is a possibility to initialize the CPM's timers for
> generating CYGNUM_HAL_INTERRUPT_CPM_TIMER. (So I can run my ISR when a
> 100msec timer expires).
> Had anyone managed to do so - on the AdderII?
> How can I associate my ISR during initialization, without changing the code
> of hal_arbitration_isr_cpm() etc. ?

If you only want 100ms accuracy, what's wrong with just using an alarm?

As for using the higher performance timers, look at
  packages/hal/powerpc/mpc8xx/current/src/var_misc.c
These timers can be used in support of profiling and there is code in
that file that set them up, etc.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]