1、功能说明

    1、此例程展示了I2C模块使用DMA方式与外部EEPROM的通信。

2、使用环境

     软件开发环境：
        IDE工具：KEIL MDK-ARM 5.34
	       IAR EWARM 8.50.1
    
    硬件开发环境：
        N32H473系列：
        基于评估板N32H473VEL7_STB V1.0开发
        N32H474系列：
        基于评估板N32H474VEL7_STB V1.0开发
        N32H475系列：
        基于评估板N32H475UEQ7_STB V1.0开发
        N32H482系列：
        基于评估板N32H482ZEL7_STB V1.0开发
        N32H487系列：
        基于全功能板N32H487ZEL7_EVB V1.1开发

3、使用说明

    1、时钟源：HSI+PLL
    2、系统时钟频率：
        N32H473/474系列：
        240MHz
        N32H475/482/487/488系列：
        240MHz
    3、打印：PA9 - baud rate 115200
    4、I2C1 配置：
		时钟：400KHz
		地址：0xA0（7bit）
		引脚：
			N32H475系列：
			SCL--PD11、SDA--PD1
			N32H473/474/482/487/488系列：
			SCL--PB6、SDA--PB7 

    5、测试步骤与现象
        1、检查EEPROM连接
        2、编译下载代码复位运行
        3、从串口看打印信息，验证结果

4、注意事项
    1，此处使用的EEPROM是AT24C02，32个page，每个page 8byte
    2，读写数据时若长度大于一个page，则器件地址会自动回卷


1. Function description

    1、This routine shows the communication between I2C module and external EEPROM using DMA method.

2. Use environment

     Software development environment:
        IDE tool: KEIL MDK-ARM 5.34
	       IAR EWARM 8.50.1
    
    Hardware development environment:
        N32H473 series:
        Based on evaluation board N32H473VEL7_STB V1.0 development
        N32H474 series:
        Based on evaluation board N32H474VEL7_STB V1.0 development
        N32H475 Series:
        Based on evaluation board N32H475UEQ7_STB V1.0 development
        N32H482 Series:
        Based on evaluation board N32H482ZEL7_STB V1.0 development
        N32H487 Series:
        Based on full-featured board N32H487ZEL7_EVB V1.1 development

3. Instructions for use

    1, clock source: HSI + PLL
    2、System clock frequency:
        N32H473/474 series:
        240MHz
        N32H475/482/487/488 series:
        240MHz
    3. Print: PA9 - baud rate 115200
    4. I2C1 Configuration:
		Clock: 400KHz
		Address: 0xA0 (7bit)
		Pin:
			N32H475 Series:
			SCL--PD11, SDA--PD1
			N32H473/474/482/487/488 series:
			SCL--PB6, SDA--PB7 

    5, test steps and phenomena
        1, check the EEPROM connection
        2, compile and download the code reset run
        3, from the serial port to see the print information to verify the results

4. Attention
    1, the EEPROM used here is AT24C02, 32 pages, 8byte per page.
    2, read and write data if the length is greater than a page, the device address will automatically rewind.

