I want to make my RL78 Controller I2C Slave device, Please advice hoe to do that ?
My programing software is CS+ CC.
There is sample code available for the RL78/G1C for reference as part of the tool installers for the starter kit that includes working demos for both master & slave implementations of the IICA:
Renesas…
You don't state which RL78 device that you are wanting to use, but first you would need a device with the IICA peripheral, as the SAU operating in "simplified IIC" mode does not support operating as a slave device.
The code generator in CS+ (Applilet plugin) supports the IICA, I would recommend that you use this for a start.
I am using R5F10EGE Controller and IICA0 port is used for I2C Slave Device. Please find attached image for IIC settings.
Looks like you are well on your way.
But it's not work, please advice how to make.
Renesas Starter Kit for RL78/G1C Installer V.1.00 (CubeSuite+ Version) 696.49MB (Setup\CubeSuitePlus_RSKRL78G1C__1000000.exe)
Renesas Starter Kit for RL78/G1C Installer V.1.00 (e²studio Version) 736.57MB (SampleCode folder)
This code for the IICA would be directly applicable to your RL78/G1A device.
I had install above installer but there is a not given any example for IIC.
I found example code but it's work but i am not controlling this code, I have make simple example code I am sending 1 & 0 from Master to Slave and controlling LED but, every time i am getting only 0 value.
I don't understand - can you build that sample code for your device? If so, this is a good reference for functional code to compare to your custom code.
Thank you for your valuable support my problem is solved.