XC886/888CLM
Multiplication/Division Unit
User’s Manual
10-11
V1.3, 2010-02
MDU, V2.1
10.5.2
Control Register
Register MDUCON contains control bits that select and start the type of operation to be
performed.
MDUCON
MDU Control Register
Reset Value: 00
H
7
6
5
4
3
2
1
0
IE
IR
RSEL
START
OPCODE
rw
rw
rw
rwh
rw
Field
Bits
Type Description
OPCODE
3:0
rw
Operation Code
0000 Unsigned 16-bit Multiplication
0001 Unsigned 16-bit/16-bit Division
0010 Unsigned 32-bit/16-bit Division
0011 32-bit Logical Shift L/R
0100 Signed 16-bit Multiplication
0101 Signed 16-bit/16-bit Division
0110 Signed 32-bit/16-bit Division
0111 32-bit Arithmetic Shift L/R
1000 32-bit Normalize
Others: Reserved
START
4
rwh
Start Bit
The bit START is set by software and reset by
hardware.
0
Operation is not started.
1
Operation is started.
RSEL
5
rw
Read Select
0
Read the MRx registers.
1
Read the MDx registers.
IR
6
rw
Interrupt Routing
0
The two interrupt sources have their own
dedicated interrupt lines.
1
The two interrupt sources share one interrupt
line INT_O0.
*