Chapter 2
CPU
II - 16 Bus Interface
2.2.3 Control Registers
The memory control register (MEMCTR) controls bus interface function.
Memory Control Register (MEMCTR: 0x03F01)
..
Always set the MEMCTR.IRWE to "0" except in writing xICR.IR by software.
The interrupt request may be cleared when operating the xICR by software while the MEM-
CTR.IRWE is "1". For example, when the bit operation to xICR is executed (the xICR is read,
modified, and overwritten by CPU), the interrupt request, which occurs during the above
read-to-write cycle is cleared because the IR is overwritten with "0" by software. To avoid
this, set the MEMCTR.IRWE to "0", which prevent the interrupt missing by software.
..
..
Setting the MEMCTR.MIESET to "1" disables all maskable interrupts after the PSW.MIE is
set to "0". If MEMCTR.MIESET is set to "1" when PSW.MIE is "1", the operation can not be
guaranteed.
..
bp 76543210
Bit name - - IVBM Reserved - IRWE - MIESET
At reset00000001
Access R R R/W R/W R R/W R R/W
bp Bit name Description
7-6 - Always read as 0.
5 IVBM
Base address specification for interrupt vector table
0: Interrupt vector base = 0x04000
1: Interrupt vector base = 0x00100
4 Reserved Must be set to 0.
3 - Always read as 0.
2IRWE
Software write set up for interrupt request bit
0: Even if data is written to each interrupt control register (xxxICR), the state of the
interrupt request bit (xxxIR) will not change.
1: Software write enable
1 - Always read as 0.
0 MIESET
Setting to allow multiple interrupts bit
0: After accepted an interrupt, MIE bit in PSW is set to "0".
1: After accepted an interrupt, MIE bit in PSW is set to "1".