Slavemodei2C .C - Fujitsu F2MC-8FX Series Application Note

Hide thumbs Also See for F2MC-8FX Series:
Table of Contents

Advertisement

4.2.6 Slavemodei2c .c

Following table describes the slavemodei2c library.
Function Name
void SlaveI2C_PrepareForInter(void)
__interrupt void INTER_I2CSlaveModeWakeUp(void)
Following table describes how to use function SlaveI2C_PrepareForInter.
Function name
Function prototype
Behavior description
Input parameter
Return value
Example
Following table describes how to use function INTER_I2CSlaveModeWakeUp.
Function name
Function prototype
Behavior description
Input parameter
Return value
Interrupt Level
Example
MB2146-460-E Setup Guide V1.2
Chapter 4 Sample Code Manual
Initialize IIC1 as slave
IIC1 receives interrupt
SlaveI2C_PrepareForInter
void SlaveI2C_PrepareForInter(void)
Initialize I2C slave mode channel IIC1
None
None
Initialize IIC1 clock to 115khz, set IIC1 to slave mode, enable IIC1 wake
up system and enable interrupt:
SlaveI2C_PrepareForInter();
INTER_I2CSlaveModeWakeUp
__interrupt void INTER_I2CSlaveModeWakeUp(void)
When IIC slave received data, system enter into interrupt
None
None
IRQ10: 8/16-bit PPG ch1 (upper) | I2C ch1
Be used in file vectors:
__interrupt void INTER_I2CSlaveModeWakeUp(void);
MCU-AN-500083-E-12 – Page 32
Description

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95350l seriesMb2146-460-e

Table of Contents