Re: Synchronization between ISR and IST - I2C Based device

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



I agree with you.
We did develop such bus driver for I2C and SPI for some SOC and saved a lot
of time thereafter.

I2C and SPI are so simple (and common). Why no standard interface has been
defined already by MS or any other important player ?


--
----------------------------------------------------------------
Jean-Jacques Hiblot
ADENEO
Windows Embedded Consultant
http://www.adeneo.adetelgroup.com
----------------------------------------------------------------

"bluesphere" <ads_bx@xxxxxxxxxxx> a écrit dans le message de news:
45959fab$0$16141$4fafbaef@xxxxxxxxxxxxxxxxxxxxxx
Sooner or later "USB Host Controllers" should inspire
someone so that I2C drivers can rest in peace (being
freed from management responsibilities they shouldn't take).
We'll call them I2C client drivers and they will use services
provided by "humble" I2C host controllers.

Once again, i realize that I2C's low speed and the lack
or "real" I2C devices (under the User's point of view)
can't justify the efforts.

"Srivathsan" <srivathsan.a@xxxxxxxxx> wrote in message
news:1167381788.736738.200830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Greats

We solved the problem by masking the UART Interrupt on every read /
Write Operation.

The logic is
Read / Write Smbus()
{
EnterCriticalSection()
InterruptMask(UART_INTERRUPT, TRUE)
SMBus Read / Write Operation
InterruptMask(UART_INTERRUPT, FALSE)
LeaveCriticalSection()
}

Now the Interrupt is being masked and the ISR will not occur when the
bus is being accessed. Since the UART is producing only Level Interrupt
it will not be cleared and will not process any more interrupts. Thus
when the bus access is finished the interrupt is served immediately.

Thanks
Mams and Team





.



Relevant Pages

  • Re: Synchronization between ISR and IST - I2C Based device
    ... shared device caused the interrupt needs to use a shared bus ... of the bus on the drivers. ... using shared interrupts and in installable ISR. ...
    (microsoft.public.windowsce.platbuilder)
  • EEPROMs
    ... These EEPROMs and flash parts are connected in various ... drivers to talk to many of them for at least experimental purposes. ... AT45DB642, for example, lives on either a SPI bus or a parallel bus). ...
    (freebsd-arch)
  • Linux 2.6.26-rc9 circular lock with uvcvideo on resume from hibernation
    ... # Linux kernel version: 2.6.26-rc8 ... # Bus options ... # Core Netfilter Configuration ... # Infrared-port device drivers ...
    (Linux-Kernel)
  • Re: suicide bombings
    ... Most bus drivers in Israel are Palestinians. ... their buses is a sign of their being drugged. ... Baratz is a driver for Egged, the sprawling Israeli bus ...
    (uk.politics.misc)
  • Re: Illustration of the method: 1st gen Intel Centrino
    ... in mainboard chips are also on the PCI bus for compatibility reasons. ... (mainboard chipset and the physical PCI connectors are two separate ... Formerly, a laptop chipset had a single bus, and a couple of favored ... PCI slots to interrupt numbers. ...
    (rec.audio.pro)