Fujitsu F2MC-8FX Series Application Note page 4

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

Advertisement

4  SAMPLE CODE MANUAL .............................................................................................. 26 
4.1  Project Structure ..................................................................................................... 26 
4.2  Source Code File Description ................................................................................. 27 
4.2.1 
ADC .c ....................................................................................................... 27 
4.2.2 
Addressjudge .c ........................................................................................ 28 
4.2.3 
Ext-interrupt .c ........................................................................................... 29 
4.2.4 
I2C .c ......................................................................................................... 30 
4.2.5 
Initial .c ...................................................................................................... 31 
4.2.6 
Slavemodei2c .c ........................................................................................ 32 
4.2.7 
Standby .c ................................................................................................. 33 
4.2.8 
Timer.c ...................................................................................................... 34 
4.3  API Code File Description ....................................................................................... 35 
4.3.1 
I2CMasterMacro.c ..................................................................................... 35 
4.3.2 
I2CSlaveMacro.c ....................................................................................... 37 
4.3.3 
SleepMacro.c ............................................................................................ 38 
4.4  Global Variable Description ..................................................................................... 39 
4.5  How to Add These Files .......................................................................................... 40 
4.6  Usage Demo ........................................................................................................... 41 
4.6.1 
Code of main.c .......................................................................................... 41 
4.6.2 
Code of Initial_ADC ................................................................................... 41 
4.6.3 
Code of Read_ADC .................................................................................. 42 
4.6.4 
Code of Judge_SlaveAddr ........................................................................ 42 
4.6.5 
Code of Init_EXT ....................................................................................... 43 
4.6.6 
Code of INTER_EXT ................................................................................. 43 
4.6.7 
Code of I2C_Init ........................................................................................ 43 
4.6.8 
Code of Read_I2C .................................................................................... 44 
4.6.9 
Code of Write_I2C ..................................................................................... 44 
4.6.10  Code of Initial ............................................................................................ 44 
4.6.11  Code of SlaveI2C_PrepareForInter ........................................................... 45 
4.6.12  Code of INTER_I2CSlaveModeWakeUp .................................................. 46 
4.6.13  Code of STBLED_ON ............................................................................... 47 
4.6.14  Code of Write_StandBy ............................................................................. 47 
4.6.15  Code of Clock_Init ..................................................................................... 47 
4.6.16  Code of Judge_P00 .................................................................................. 48 
4.6.17  Code of LEDCoordin ................................................................................. 48 
4.6.18  Code of EEPROM_I2C ............................................................................. 49 
4.6.19  Code of EndDevice_I2C ............................................................................ 49 
4.6.20  Code of I2C_MasterMacro ........................................................................ 50 
MB2146-460-E Setup Guide V1.2
Contents
MCU-AN-500083-E-12 - Page 4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95350l seriesMb2146-460-e

Table of Contents