Patent ID: 7890690

Claim:
A method for emulating a dual-port Inter-integrated Circuit slave device, comprising: monitoring, by an Inter-integrated Circuit slave device, a bus for Inter-integrated Circuit traffic; receiving, by the slave device, an Inter-integrated Circuit interrupt on the bus; determining, by the slave device, whether the received Inter-integrated Circuit interrupt is one of either a hardware interrupt or a software interrupt; wherein the slave device is configured to receive hardware interrupts and software interrupts; in the event the received Inter-integrated Circuit interrupt is a hardware interrupt, responding, by the slave device, to the hardware interrupt, and accessing a flash memory for read/write operation based on the hardware interrupt; and in the event the received Inter-integrated Circuit interrupt is a software interrupt, responding, by the slave device, to the software interrupt, and accessing a flash memory for read/write operation based on the software interrupt; wherein responding to the hardware interrupt comprises responding in a first addressing mode and wherein responding to the software interrupt comprises responding in a second addressing mode, wherein the second addressing mode is different from the first addressing mode.