I am Receiving 10 bit Address from my Master,but my slave RX 130 is not able to generate an acknowledgment and receive the address.I have doubts about function calling.unsigned char Received;Received=RIIC0.ICDRR; R_Config_RIIC01_Slave_Receive(&Received,sizeof(Receved));
Please Give me the solution..
RegardsAJ
unsigned char Received;Received=RIIC0.ICDRR; R_Config_RIIC01_Slave_Receive(&Received,sizeof(Receved));{/************************************************************************************************************************ Function Name: R_Config_RIIC01_Slave_Receivd ***********************************************************************************************************************/
MD_STATUS R_Config_RIIC01_Slave_Receive(uint8_t * const rx_buf, uint16_t rx_num){ MD_STATUS status = MD_OK; g_riic0_rx_length = rx_num; g_riic0_rx_count = 0U; gp_riic0_rx_address = rx_buf; RIIC0.ICMR3.BYTE |= 0x70U; RIIC0.ICMR3.BIT.ACKWP = 1U; RIIC0.ICMR3.BIT.ACKBT = 0U; g_riic0_dummy_read_count = 0U;
g_riic0_mode_flag = _16_IIC_SLAVE_RECEIVE; g_riic0_state = _15_IIC_SLAVE_WAIT_START_CONDITION; return (status);}
Hi AJ,
Have you checked first the Slave Receive Operation in chapter 29.3.6 of the hardware user's manual: https://www.renesas.com/us/en/document/mah/rx130-group-users-manual-hardware-rev300/RIIC-slave-receive-operation? Also, make sure that you have configured the initial settings properly.
JBIf this response, or one provided by another user, answers your question, please verify the answer. Thank you!Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/