1˵
    1TIM4ڴDAC Ҳ
2ʹû

    KEIL MDK-ARM V5.34.0.0
    Ӳ 
        N32G05xϵУ
            N32G05xRBQ7_STB V1.0
        N32G05xϵУ
            N32G05xRBL7_STB V1.0

3ʹ˵
    ϵͳã
        1ʱԴ
            HSI=8M,AHB=64M,APB1=32M DAC_CLK = 32M
        2˿ã
            PB13ѡΪģ⹦DAC OUT
        3TIM
            TIM4 ¼ΪDAC
        4DAC
            DACѡTIM4 TRGOźŴʹDMAҲݵDAC
        5DMA:
            DMAͨ1ػģʽ32ֵDACĴ
    ʹ÷
        1򿪵ģʽʾ۲PB13
        2ȫʱTIM4ÿڴPB13һݣγҲ
4ע
    


1. Function description
    1. TIM4 cycle triggers DAC to output sine waveform

2. Use environment

    Software development environment: KEIL MDK-ARM V5.34.0.0
    Hardware development environment:
         N32G05x series:
            Developed based on the evaluation board N32G05xRBQ7_STB V1.0
         N32G05x series:
            Developed based on the evaluation board N32G05xRBL7_STB V1.0

3. Instructions for use
    System Configuration;
        1. Clock source:
             HSI=8M,AHB=64M,APB1=32M DAC_CLK = 32M
        2. Port configuration:
             PB13 is selected as analog function, DAC OUT
        3. TIM:
             TIM4 update event as trigger output to DAC
        4. DAC:
             The DAC selects the TIM4 TRGO signal to trigger, and enables the DMA to transfer the sine wave data to the DAC
        5. DMA:
             DMA channel 1 loopback mode moves 32 half-words to DAC output register
    Instructions:
        1. Open the debug mode after compiling, and use the oscilloscope to observe the output waveform of the PB13
        2. When running at full speed, each cycle of TIM4 triggers a data of PB13 to form a sine wave

4. Matters needing attention
    none