Re: Does .S files defines and implements some fuctions for the ISR?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Valter,

When I write the MC8051 program,there is buffer to recive or send the date
in the UART communication.And if there is date recived we can read the
buffer directly instead of reading the bit one by one according to the
timing graph.

However,Does the WinCE driver program have the same mechanism as MC8051?
If yes ,generally where is the buffer defined?

If the ISR doesn't copy the data from register to buffer,
which code implement this function ?

How does the chip read the data ?Is it one bit by one
bit,or read the buffer?


thanks a lot,
Peter

The ISR should simply recognize the interrupt, disable it, and return
a code (SYSINTR) to the system. Usually a typical ISR checks the
interrupt source, disable the specific interrupt and return a SYSINTR
code.
You may find a sample of it in your BSP!
On wich platform are you working?

On this link
http://bsa1981.altervista.org/intrdemo.zip
you may find a simple flash presentation that shows how you could add
the handling of a new interrupt to the mainstone II BSP.
It explains only the ISR, but if you need it I can send you also a
simple IST application.

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non ?valido)


.



Relevant Pages

  • Re: General Q: Interrupt vs. Polling
    ... An external device writes data to two buffers in my DSP. ... Interrupt DSP ... Write block of data to Buffer B ... DSP processes all data within the ISR ...
    (comp.arch.embedded)
  • Re: ZwWriteFile and buffer reuse
    ... Is it your ISR code???????? ... interrupt routine that ZwWrite routine is completed. ... You cannot touch a buffer passed to NtReadFile/NtWriteFile while it is ...
    (microsoft.public.development.device.drivers)
  • Re: 2.6.11-rc1-mm1
    ... the only way this will fail is if an interrupt occurred ... index value needs to get reloaded from memory each time around the loop. ... > Frankly this is legacy code for when ltt only supported one trace buffer, ... As Roman suggested, relayfs ...
    (Linux-Kernel)
  • Re: Handling SSC interrupts in Applesoft BASIC
    ... He has written an assembly-language program that reads and writes to the ... A little background on the concept of an interrupt. ... the initial interrupt handler does some ... No idea where the rest of the 256 char buffer is (John's ...
    (comp.sys.apple2.programmer)
  • Re: kernelTimeSlice clarification
    ... are interrupt driven and the destination output spooling is interrupt ... I believe you said that the destination can write 400 Mbytes/Sec. ... The vendor has an api suite one of which requires a user callback ... In a nutshell the destination allocates a buffer. ...
    (comp.os.vxworks)