
NUC126
Aug. 08, 2018
Page
336
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
6.10 Hardware Divider (HDIV)
6.10.1
Overview
The hardware divider (HDIV) is useful to the high performance application. The hardware divider is a
signed, integer divider with both quotient and remainder outputs.
6.10.2
Features
Signed (two’s complement) integer calculation
32-bit dividend with 16-bit divisor calculation capacity
32-bit quotient and 32-bit remainder outputs (16-bit remainder with sign extends to 32-bit)
Divided by zero warning flag
6 HCLK clocks taken for one cycle calculation
Write divisor to trigger calculation
Waiting for calculation ready automatically when reading quotient and remainder
6.10.3
Blcok Diagram
Divider Calculation
Digital Control Logic
Dividend Source
Register
(DIVIDEND)
Divisor Source
Register
(DIVISOR)
Quotient Result
Register
(DIVQUO)
Sign extension
Divider Status
Register
(DIVSTS)
Remainder Result
Register(DIVREM)
Figure 6.10-1 Hardware Divider Block Diagram
6.10.4
Basic Configuration
Clock Source Configuration
–
Enable HDIV peripheral clock in HDIVCKEN (CLK_AHBCLK[4]).
Reset Configuration
–
Reset HDIV in HDIVRST (SYS_IPRST0[4]).
6.10.5
Functional Description