1˵
    1ͨHSELSEHSIУ׼
2ʹû
    
         
          IDEߣKEIL MDK-ARM V5.34.0.0
                         IAR EWARM 8.50.1

       Ӳ      
          壺N32G430C8L7-STB V1.0

3ʹ˵
    ϵͳã
        1ʱԴ
            HSE=8M,PLL=128M,
            LSE=32.768K
        2PA8
            ͨPA8HSIʱ
        3PA7(D2)
            ͨD2ָʾHSIУ׼Ƿ
        3˿ã
            PA9ѡΪUSART1TX
            PA10ѡΪUSART1RX
        4USART
            USART1 115200ʡ8λλ1λֹͣλżУλӲءͺͽʹ

    ʹ÷
        1أȻλ
        2鿴D2˱ʾHSIУ׼ɣٲ鿴ӡHSIУ׼ɹУ׼ʧ
        3ʾץPA8ţ鿴HSIУ׼ʵƵ
4ע
     

1. Function description
    1. Calibrate HSI via HSE or LSE
2. Development environment
    Software development environment:   KEIL MDK-ARM V5.34.0.0
                                                                IAR EWARM 8.50.1
    Hardware environment: 
        the evaluation board:   N32G430C8L7-STB V1.0

3. How to use
    System configuration
        1. Clock source:
            HSE=8M,PLL=128M,
            LSE=32.768K 
        2. PA8:
            Output HSI clock through PA8 pin
        3. PA7 (D2):
            Indicate whether HSI calibration is completed through LED D2
        4. Port Configuration:
            PA9 selects the TX pin of USART1
            PA10 selects the RX pin for USART1
        5. USART
           USART1 115200 Baud rate, 8 data bits, 1 Stop bit, no parity bit, no hardware flow control, send and receive enabled

    Usage:
        1. Compile, download, then reset and run
        2. Check the on/off status of D2. If it's off, it means HSI calibration is completed. Then check the printout to see if HSI calibration is successful or failed
        3. An oscilloscope can be used to capture the PA8 pin and check the actual frequency of HSI after calibration
4. Attention
       None