Usage Demo; Code Of Main.c; Code Of Initial_Adc - Fujitsu F2MC-8FX Series Application Note

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

Advertisement

4.6 Usage Demo

Following table lists all C files.

4.6.1 Code of main.c

InitIrqLevels();
IRQ vector table
Initial();
Initial_ADC();
Init_EXT();
TBT_Init();
__EI ();
While (1)
{
I2C_SlaveMacro ();
slave address
I2C_MasterMacro ();
Sleep_Macro();
}

4.6.2 Code of Initial_ADC

AIDRL_P00 = 0;
DDR0_P00 = 0;
ADC1 = 0x00;
AN00 selected
ADC2 = 0x80;
MB2146-460-E Setup Guide V1.2
Chapter 4 Sample Code Manual
// Initialize Interrupt level register and
// Set as slave mode
//
//anologe input
//input
MCU-AN-500083-E-12 – Page 41
Go to sleep
//start
adc,
clear
and set a
interrupt,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95350l seriesMb2146-460-e

Table of Contents