Re: regarding wince

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Exactly! If you're already building an OS that runs on your hardware, you
already have a BSP. That BSP will have an interrupt handler (the ISR), in
it. On PXA, it's almost certainly a single routine called something like
OEMHandleInterrupt(), found in the appropriate branch under
\wince600\platform\<your bsp name>. If you need to handle a new interrupt,
you will probably, but not certainly, want to simply add the handling of it
to that routine (customizing the BSP). There are other ways to write
pluggable ISRs, if your existing BSP supports them, but we can't know if
that's possible unless we know what BSP you're using.

As for trying to set an interrupt anyway, chances are that this is the wrong
way to accomplish what you want. When you're writing code for an 8051,
there's no operating system, so you just handle the interrupts you want,
turning on a timer and handling it, if you need to schedule something or
whatever. That's *not* generally the way you'd do things in the presence of
a full operating system. If you tell us *what* you're trying to do, we
might be able to suggest an existing, application-accessible, API that will
do exactly what you want without even knowing there are interrupts involved.

Paul T.

"Sheetal" <Sheetal@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4D3387FF-ED63-46E7-8A41-C13D4590F04A@xxxxxxxxxxxxxxxx
Hi,

You do need a BSP to handle this. You can not access timer registers
directly from applicaiton.

Point is - if you already have a BSP for PXA, it would be taking care of
all
this. If you don't, then there is a significant work to do.

Regards,
-Sheetal.


"kovendan_24 via PocketPCJunkies.com" wrote:

Yes sir :
I am using WINCE 6.0 and Visual studio 2005. I had worked in
microcontrollers like 8051 and pic 16f877a where we would configure the
timer
registers and ISR as our own. Can I do like that or i need BSP for that
also.
PLease help me.
Paul G. Tobey [eMVP] wrote:
We'd need to know what version of Windows CE you're talking about to
really
begin to answer. Also note that you can't use stand-alone VC++ for
software
development targeting Windows CE. You must have Visual Studio. The
version
of VS that you need depends on the version of Windows CE that you are
targeting.

Further, you would generally *NOT* create your own ISR routines for
timer
interrupts. That's the responsibility of the board support package
portion
of the operating system. The BSP contains the low-level support for the
operations of your specific hardware, including interrupt handling.

Paul T.

hi all :

[quoted text clipped - 3 lines]
any
sample VC++ code to do this

--
Message posted via http://www.pocketpcjunkies.com




.



Relevant Pages

  • Re: Is it possibe to generate interrupts from OS timers ?
    ... As Bruce already indicated, the BSP supports a given *BOARD*, not a ... installable interrupt handler to avoid modifying the BSP for *your* board. ... registers hold the relevant interrupt bits. ... How do i create the timer hardware irq? ...
    (microsoft.public.windowsce.app.development)
  • Re: VxWorks interrupt source
    ... Some BSP have a function sysIsrShow that you can use in the shell. ... sysIsrShow - show installed ISRs ... This routine displays the interrupt vector tables used by the local ... When I turn up the message rate, INTERRUPT jumps to 25% of the total ...
    (comp.os.vxworks)
  • Re: Is it possibe to generate interrupts from OS timers ?
    ... It contains the BSP for PXA270. ... Also where do i find the code needed for implementing the interrupt? ... registers hold the relevant interrupt bits. ... How do i create the timer hardware irq? ...
    (microsoft.public.windowsce.app.development)
  • Re: Is it possibe to generate interrupts from OS timers ?
    ... device and have control over the interrupt handling process yourself. ... Remember that, if the BSP doesn't allow installable ISRs, you can't do them ... I think i read before that the Windows Multimedia timer cannot ... I know of other board vendors, like Applied Data Systems, ...
    (microsoft.public.windowsce.app.development)
  • Re: ISR input buffering - Anyone done it?
    ... The interrupt is re-enabled by Static ISR if SYSINTR_NOP is returned by ... please check the BSP static ISR handler. ... the OEMInterruptDone will not be called. ...
    (microsoft.public.windowsce.embedded)