1˵
    1TIM4ڴDAC ǲݣPB13ǲ
    
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źŴʹǲ2048ֵ0x000
    ʹ÷
        1򿪵ģʽʾ۲PB13
        2ȫʱTIM4ÿڴPB13һݣγǲ
4ע
    


1. Function description
    1. TIM4 periodically triggers DAC to output triangular wave data, and outputs triangular waveform in PB13

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:
             DAC selects TIM4 TRGO signal trigger, enables triangle wave amplitude 2048, base value 0x000
    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 triangular wave

4. Matters needing attention
    none