
Rev. 1.00
476 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
22 Universal
Asynchronous Receiver T
ransmitter (UART)
23 Divider (DIV)
23
Divider (DIV)
Introduction
In order to enhance the MCU performance, a divider is integrated in the devices. The divider can
implement the signed or unsigned 32-bit data division operation. An error flag will be generated
when the division by zero condition occurs.
Features
▄
Signed / unsigned 32-bit divider
▄
Calculate in 8 clock cycles and load in 1 clock cycle
▄
Division by zero error flag
Functional Descriptions
The division and modulus functions of the truncated division are related in the following way:
A / B = Q … R
Where “A” is Dividend, “B” is Divisor, “Q” is Quotient and “R” is Remainder. The divider
requires a software trigger start signal to start a calculation by setting the “START” bit in the
Divider Control Register. The divider calculation complete flag will be set to 1 after 8 clock cycles,
however, if the divisor register data is zero during the calculation, the division by zero error flag
will be set to 1.
32-bit / 32-bit
Divider
32-bit Dividend
32-bit Divisor
32-bit Quotient
32-bit Remainder
S/W Trigger
Division by Zero Error Flag
Calculation Complete Flag
Figure 176. Divider Functional Diagram