English
Language : 

UPD780138 Datasheet, PDF (355/558 Pages) NEC – 8-Bit Single-Chip Microcontrollers
CHAPTER 16 MULTIPLIER/DIVIDER
16.3 Register Controlling Multiplier/Divider
The multiplier/divider is controlled by multiplier/divider control register 0 (DMUC0).
(1) Multiplier/divider control register 0 (DMUC0)
DMUC0 is an 8-bit register that controls the operation of the multiplier/divider.
This register can be read by a 1-bit or 8-bit memory manipulation instruction.
RESET input clears this register to 00H.
Figure 16-5. Format of Multiplier/Divider Control Register 0 (DMUC0)
Address: FF68H After reset: 00H R/W
Symbol
<7>
6
5
DMUC0
DMUE
0
0
4
3
0
0
2
1
0
0
DMUENote
0
1
Stops operation
Starts operation
Operation start/stop
DMUSEL0
0
Division mode
1
Multiplication mode
Operation mode (multiplication/division) selection
0
DMUSEL0
Note When DMUE is set to 1, the operation is started. DMUE is automatically cleared to 0 after the operation is
complete.
Cautions 1. If DMUE is cleared to 0 during operation processing (when DMUE is 1), the operation result
is not guaranteed. If the operation is completed while the clearing instruction is being
executed, the operation result is guaranteed, provided that the interrupt flag is set.
2. Do not change the value of DMUSEL0 during operation processing (while DMUE is 1). If it is
changed, undefined operation results are stored in multiplication/division data register A0
(MDA0) and remainder data register 0 (SDR0).
3. If DMUE is cleared to 0 during operation processing (while DMUE is 1), the operation
processing is stopped. To execute the operation again, set multiplication/division data
register A0 (MDA0), multiplication/division data register B0 (MDB0), and multiplier/divider
control register 0 (DMUC0), and start the operation (by clearing DMUE to 1).
User’s Manual U16228EJ2V0UD
355