Selecting Mbe = 0 Mode And Mbe = 1 Mode - NEC PD754144 User Manual

4-bit single-chip microcontrollers
Table of Contents

Advertisement

CHAPTER 3 FEATURES OF ARCHITECTURE AND MEMORY MAP
Internal hardware
and static RAM
manipulation
repeated.
Remark Solid line: MBE = 1, dotted line: MBE = 0
Because MBE is automatically saved or restored during subroutine processing, it can be changed even while
subroutine processing is being executed. MBE can also be saved or restored automatically during interrupt servicing,
so that MBE during interrupt servicing can be specified as soon as the interrupt servicing is started, by setting the
interrupt vector table. This feature is useful for high-speed interrupt servicing.
To change MBS by using subroutine processing or interrupt servicing, save or restore it to the stack by using the
PUSH or POP instruction.
MBE is set by using the SET1 or CLR1 instruction. Use the SEL instruction to set MBS.
Examples 1. To clear MBE and fix memory bank
CLR1 MBE ; MBE ← 0
2. To select memory bank 4
SET1 MBE ; MBE ← 1
SEL
Figure 3-1. Selecting MBE = 0 Mode and MBE = 1 Mode
<Main program>
SET 1 MBE
MBE
= 1
CLR 1 MBE
MBE
= 0
SET 1 MBE
MBE
= 1
; MBE ← 4
MB4
User's Manual U10676EJ3V0UM
<Subroutine>
CLR1 MBE
MBE = 0
RET
(Interrupt servicing)
;
MBE = 0 by vector table
MBE = 0
RETI
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents