1˵

    ṩһDMA÷I2CRAM֮䴫ݡ  

2ʹû

    
        IDEߣKEIL MDK-ARM 5.26
    
    Ӳ
         N32G031C8L7-STB V1.0


3ʹ˵
	
    1ʱԴHSE+PLL
    2ʱӣ48MHz
    3DMAͨDMA_CH5DMA_CH6
    4I2C1 ã
            SCL   -->  PB6
            SDA   -->  PB7
            ADDR0x30(7bit)
            CLOCK100K
    
    5I2C2 ã
            SCL   -->  PA6
            SDA   -->  PA7
            ADDR0x30(7bit)
            CLOCK100K
    
    6USART1ã
            TX  -->  PA9
            ʣ115200
            λ8bit
            ֹͣλ1bit
            У

    7Բ
        aش븴λ
        bӴڿӡϢ֤

4ע
    


1. Function description
    This routine provides a DMA usage for transferring data between I2C peripheral and RAM.

2. Use environment
    Software Development environment:
	IDE tool: KEIL MDK-ARM 5.26
    
    Hardware environment:
	N32G031C8L7-STB V1.0

3. Instructions for use
    1.Clock source: HSE+PLL
    2.Master clock: 48MHz
    3.DMA channels: DMA_CH5, DMA_CH6
    4.I2C1 configuration:
	SCL   -->  PB6
        SDA   -->  PB7
        ADDR0x30(7bit)
        CLOCK100K
    5.I2C2 configuration:
        SCL   -->  PA6
        SDA   -->  PA7
        ADDR0x30(7bit)
        CLOCK100K    
    6.USART1 configuration:
        TX  -->  PA9
	Baud rate: 115200
	Data bit: 8 bits
	Stop bit: 1bit
	No check            
    7.Test steps and phenomena
	A. Compile download code reset run
	B. View the printed information from the serial port and verify the result

4. Precautions
    None
