SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
6. Multiplication Division Unit( MDU )
This on-chip arithmetic unit provides 32-bit division, 16-bit multiplication, shift and normalize features, etc. All
operations are unsigned integer operations.
Table 6-1: 乘除寄存器
Mnemonic
Description
Dir.
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
RST
The relevant registers of the Multiplication Division Unit
PCON
Power control
87H
EFh
E9h
SMOD MDUF
Multiplication Division Unit
-
STOP
IDLE
40H
Arithmetic
Control register
Multiplication/Di
vision Register
0
Multiplication/Di
vision Register
1
Multiplication/Di
vision Register
2
Multiplication/Di
vision Register
3
Multiplication/Di
vision Register
4
Multiplication/Di
vision Register
5
ARCON
MD0
MDEF MDOV SLR
SC[4:0]
00H
00H
MD0[7:0]
MD1[7:0]
MD2[7:0]
MD3[7:0]
MD4[7:0]
MD5[7:0]
00H
00H
00H
MD1
MD2
MD3
MD4
MD5
EAh
EBh
ECh
EDh
EEh
00H
00H
6.1
Operating Registers of the MDU
The MDU is handled by seven registers, which are memory mapped as special function registers. The arithmetic unit
allows operations concurrently to and independent of the CPU‟s activity. Operands and results registers are MD0 to
MD5. Control register is ARCON. Any calculation of the MDU overwrites its operands.
Mnemonic: ARCON
Address: EFh
7
6
5
SLR
4
3
2
1
0
Reset
00H
MDEF MDOV
SC[4:0]
MDEF: Multiplication Division Error Flag.
The MDEF is an error flag. The error flag is read only. The error flag indicates an
improperly performed operation (when one of the arithmetic operations has been
restarted or interrupted by a new operation). The error flag mechanism is automatically
enabled with the first write to MD0 and disabled with the final read instruction from MD3
multiplication or shift/normalizing) or MD5 (division) in phase three.
The error flag is set when:
1. Phase two in process and write access to mdx registers (restart or interrupt
calculations)
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071
Ver A SM59A16U1 04/12/2013
- 42 -