4.3.2 I2CSlaveMacro.c
Following table describes the I2C slave library.
Function Name
void I2C_SlaveMacro(void)
When IIC0 is connected to multiple slaves, these five constants are used decide which one
to access.
Following table describes how to use function I2C_SlaveMacro.
Function name
Function prototype
Behavior description
Input parameter
Return value
Example
Note: the MCU address register IAAR1 must set to the value half of MCU address.
MB2146-460-E Setup Guide V1.2
Chapter 4 Sample Code Manual
Decide MCU address
void I2C_SlaveMacro(void)
Set MCU address
None
None
Used in main.c:
I2C_SlaveMacro();
MCU-AN-500083-E-12 – Page 37
Description
I2C_SlaveMacro