Code Of Read_I2C; Code Of Write_I2C; Code Of Initial - Fujitsu F2MC-8FX Series Application Note

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

Advertisement

4.6.8 Code of Read_I2C

unsigned char Temp;
I2C_Init ();
I2C_Start (DevAddr);
I2C_Acknowlegde ();
I2C_Write (SubAddr);
from where to read
I2C_Continue (DevAddr+1) ;
comand
Temp = I2C_LastRead ();
I2C_Stop ();
return (Temp);

4.6.9 Code of Write_I2C

I2C_Init ();
I2C_Start (DevAddr);
I2C_Acknowlegde ();
I2C_Write (SubAddr);
I2C_Write (WDat);
I2C_Stop ();

4.6.10 Code of Initial

PraGlo.KeyStatus = 0;
pressed
PraGlo.CoordiFlag = 0;
PraRtc.ErrorDet = 0;
dead while to 0
MB2146-460-E Setup Guide V1.2
Chapter 4 Sample Code Manual
// Write Comand to ...
MCU-AN-500083-E-12 – Page 44
// ... set address
//
Restart,
// receive data from
//intial
key
status
//initial coordinate LED to off
//initial
error
with
READ
is
not
detected
for

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95350l seriesMb2146-460-e

Table of Contents