I2C via interrupt
Up to SH Family
Hi!
I have programming problem in I2C interface on SH7201.
It is inadmissibly to have endless loop ("while(P_IIC2.ICSR.BIT.TEND==0) " or "while(P_IIC2.ICSR.BIT.TDRE==0) " )
in my I2C driver for real-time kernel.
How can I solve this problem without "waits" via interrupt request ?
Thanks
There's a number of app notes that address interrupt based I2C communications drivers on the Renesas websites (the EU one sometimes has more.)
http://eu.renesas.com/request?LANGUAGE_CD=EN&LAYER_ID=1&SCREEN_ID=ViewUsrFrameApnDocumentSearch&FUNCTION_CD=I2C-bus&DOC_TYPE=Application%20Notes&FUNCTION_FLG=1&FUNC_OR_APP=F
The app notes written for the H8 series parts and SH will be the best to look at, although the M16C app notes will also have good info too.

