English
Language : 

N76E003 Datasheet, PDF (167/267 Pages) List of Unclassifed Manufacturers – Microcontroller
N76E003 Datasheet
AA = 0;
else
AA = 1;
break;
case 0xC0:
transmitted,
mode
trans-
AA = 1;
break;
case 0xC8:
SLAVE
AA = 1;
break;
}//end of switch (I2STAT)
SI = 0;
I2C ISR
while(STO);
error
}//end of I2C_ISR
15.5 I2C Time-Out
/*C0H, previous own SLA+R, DATA
NACK received, not addressed SLAVE
entered*/
/*C8H, previous own SLA+R, last DATA
mitted, ACK received, not addressed
mode entered*/
//SI should be the last command of
//wait for STOP transmitted or bus
//free, STO is cleared by hardware
There is a 14-bit time-out counter, which can be used to deal with the I2C bus hang-up. If the time-out
counter is enabled, the counter starts up counting until it overflows. Meanwhile I2TOF will be set by
2
hardware and requests I C interrupt. When time-out counter is enabled, setting flag SI to high will
2
reset counter and restart counting up after SI is cleared. If the I C bus hangs up, it causes the SI flag
not set for a period. The 14-bit time-out counter will overflow and require the interrupt service.
FSYS
0
1/4 1
DIV
I2CEN
I2TOCEN
SI
14-bit I2C Time-out Counter
Clear Counter
I2TOF
2
Figure 15-12. I C Time-Out Counter
Jun 26, 2017
Page 167 of 267
Rev. 1.02