1˵
    1HDIVִһγжͨڷ̺
2ʹû
      KEIL MDK-ARM V5.30.0.0
    Ӳ      N32G031C8L7-STB V1.0
3ʹ˵
    ϵͳã
        1ʱԴ
                    HSE=8M,PLL=48M,AHB=48M,APB1=48M,APB2=48M,HDIV CLK=48M
        2˿ã
                            PA9ѡΪ
                    PA10ѡΪ
        3HDIV
                    HIDVжϴȼ0 0x1E240 0x7BĽ
    ʹ÷
        1򿪵ģʽHDIVļĴ
        2ִк󣬿Կ̵ĽΪ1003ĽΪ87ͬʱҲӡϢ
4ע
    

1. Function description
     1. HDIV performs a division, and sends the quotient and remainder through the serial port in the completion interrupt
2. Use environment
     Software development environment: KEIL MDK-ARM V5.30.0.0
     Hardware Environment: Developed based on N32G031C8L7-STB V1.0
3. Instructions for use
     System Configuration;
         1. Clock source:
                     HSE=8M,PLL=48M,AHB=48M,APB1=48M,APB2=48M,HDIV CLK=48M
         2. Port configuration:
                             PA9 is selected as serial output
                     PA10 is selected as serial input
         3. HDIV:
                     HIDV interrupt on priority 0, calculate the result of dividing 0x1E240 by 0x7B
     Instructions:
         1. Open the debug mode after compiling, and open the register of the variable HDIV
         2. After the program is executed, you can see that the result of the quotient is 1003, the result of the remainder is 87, and the serial port will also print relevant information
4. Matters needing attention
     none