1、功能说明

    此例程展示了作为主机使用I2C中断收发数据。   

2、使用环境

   软件开发环境：
    IDE工具：KEIL MDK-ARM 5.34.0.0
            IAR EWARM 8.50.1
    
    硬件环境：
     N32G033系列：
            基于评估板N32G033K8Q7-1_STB V1.0开发


3、使用说明
	
    1、主时钟：64MHz
    2、I2C1 配置：
            SCL   -->  PB6          
            SDA   -->  PB7        
            CLOCK:100KHz
            
   3、USART1配置：
            TX  -->  PA9   
            RX  -->  PA10           
            波特率：115200
        

    4、测试步骤与现象
        a，跳线连接从机I2C1
        b，编译下载代码复位运行
        c，从串口看打印信息，验证结果

4、注意事项
    1. SCL及SDA必须接上拉
    2. MCU 作为主机发送且为 7 位地址模式时，从机地址不能配置成 0xF0、0xF2、0xF4 或 0xF6。

1. Function description

     This example demonstrates the use of I2C interrupts as a master to send and receive data.

2. Development environment

    Software development environment:
    IDE tool: KEIL MDK-ARM 5.34.0.0
            IAR EWARM 8.50.1
    
     Hardware environment:
     N32G033 series:
            Developed based on the evaluation board N32G033K8Q7-1_STB V1.0


3. How to use

     1. Main clock: 64MHz
     2. I2C1 configuration:
             SCL --> PB6
             SDA --> PB7
             CLOCK: 100KHz
            
    3. USART1 configuration:
             TX --> PA9
             RX --> PA10
             Baud rate: 115200
        

     4. Test steps and phenomena
         a, jumper wire to connect slave I2C1
         b, compile and download the code, reset and run
         c, view the print information from the serial port and verify the result

4. Attention
     1. SCL and SDA must be pulled up
     2. When the MCU is sent as a host and in 7-bit address mode, the slave address cannot be configured as 0xF0, 0xF2, 0xF4, or 0xF6.