
MMDVSQx_CSR field descriptions (continued)
Field
Description
0
Reads of the RES register return the register contents
1
If CSR[DZ] = 1, an attempted read of RES register is error terminated to signal a divide-by-zero, else
the register contents are returned
2
REM
REMainder calculation
This indicator selects whether the quotient or the remainder is returned in the RES register. The combined
CSR[REM] and CSR[USGN] bits define four possible divide operations:
• If CSR[REM, USGN] = 0b00, perform a signed divide, returning the quotient
• If CSR[REM, USGN] = 0b01, perform an unsigned divide, returning the quotient
• If CSR[REM, USGN] = 0b10, perform a signed divide, returning the remainder
• If CSR[REM, USGN] = 0b11, perform an unsigned divide, returning the remainder
0
Return the quotient in the RES for the divide calculation
1
Return the remainder in the RES for the divide calculation
1
USGN
Unsigned calculation
This indicator selects whether a signed (default) or unsigned divide is performed. See the CSR[REM]
description for the encoding of the four possible divide operations.
0
Perform a signed divide
1
Perform an unsigned divide
0
SRT
Start
When written with a logical one and CSR[DFS] = 1, this flag initiates a divide operation. If written as a
logical one with CSR[DFS] = 0, it is ignored. This bit always reads as a zero. The state of the register write
data defines this bit’s function.
0
No operation initiated
1
If CSR[DFS] = 1, then initiate a divide calculation, else ignore
Chapter 32 Memory-Mapped Divide and Square Root (MMDVSQ)
K32 L2A Reference Manual, Rev. 2, 01/2020
NXP Semiconductors
859
Summary of Contents for K32 L2A Series
Page 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Page 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Page 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Page 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Page 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Page 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Page 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Page 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Page 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Page 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Page 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Page 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Page 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Page 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Page 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Page 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Page 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Page 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Page 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Page 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Page 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...