Fujitsu MB2146-450-E Setup Manual - Page 33

Browse online or download pdf Setup Manual for Motherboard Fujitsu MB2146-450-E. Fujitsu MB2146-450-E 40 pages. F2mc-8fx mb95f310 series 8-bit microcontroller
Also for Fujitsu MB2146-450-E: Setup Manual (42 pages)

Fujitsu MB2146-450-E Setup Manual

4.2.5 I2C .c

In this function, the user can initialize I2C status and use SCL and SDA to send data to
master device and receive data from slave device.
Following table describes the I2C library:
Function Name
unsigned char RD_I2C( unsigned char Main_Addr,
unsigned char Sub_Addr )
void Write_I2C_Proc(unsigned char MainAddr,
unsigned char SubAddr, unsigned char I2Cdata)
Following table describes how to use these functions.
Type
Read data
Write data to EEPROM

4.2.6 LCD .c

In this function, the user can initialize LCD register and drive LCD by sending different data
to SEG00~SEG31.
Following table describes the LCD library:
Function Name
void Init_LCD(void)
void LCD_Clear(void)
void LCD_LigON_NUM(unsigned char Num, unsigned
char Dat)
Following table describes how to use these functions.
Type
Display LCD
LCD_LigON_NUM(0x02,0x06);
EV BOARD MB2146-450-E V1.3
Chapter 4 Sample Code Manual
Example
Operation
RD_I2C(0xa0,0x01);
Write_I2C_Proc(0xa0,0x01,0x25);
Example
Operation
MCU-AN-500072-E-13 – Page 33
Description
Read data from Sub_Addr
Write data I2Cdata to SubAddr
Read data from EEPROM sub-address 0x01
Write 0x25 to EEPROM sub-address 0x01
Description
Initialize LCD module
Clear LCD display
Drive LCD Num to display number Dat
Drive LED 2 to display number 6
Return
Return