How To Add These Library; Usage Demo - Fujitsu MB2146-450-E Setup Manual

F2mc-8fx mb95f310 series 8-bit microcontroller
Hide thumbs Also See for MB2146-450-E:
Table of Contents

Advertisement

4.4 How to Add these Library

Before using chapter4.2 library, following step ought to be referenced.
Create a new project
Copy .lib file to project document
Add .lib file to project
Add all needed .lib files to project

4.5 Usage Demo

Following table is an example for how to use this C file. Process_Control() is a function user
defined which transfer C file to come true user's idea when to use ADC when to use I2C
when to use RTC.
ADC0_Init();
UART_init();
EXT_Init();
Init_LCD();
TBT_Init();
Init_EEProm();
while(1)
{
ADCTempSwitKey();
Process_Control();
LCD_LigON_NUM(0,2);
}
MB2146-450-E Setup Guide
Chapter 4 Sample Code Manual
// initialise ADC
// initialise UART
// initialise Interrupt
// initialise LCD
// initialise Timebase timer
// initialise EEPROM
// Judge key value
// transfer every library
// display LCD
MCU-AN-500072-E-10 – Page 37

Advertisement

Table of Contents
loading

Table of Contents