Addressing Mode Of Data Memory - NEC PD754144 User Manual

4-bit single-chip microcontrollers
Table of Contents

Advertisement

CHAPTER 3 FEATURES OF ARCHITECTURE AND MEMORY MAP

3.1.2 Addressing mode of data memory

The 75XL architecture employed for the µ PD754244 provides the seven types of addressing modes shown in Table
3-1. This means that the data memory space can be efficiently addressed by the bit length of the data to be processed
and that programming can be carried out efficiently.
(1) 1-bit direct addressing (mem.bit)
This mode is used to directly address each bit of the entire data memory space by using the operand of an
instruction.
The memory bank (MB) to be specified is fixed to 0 in the mode of MBE = 0 if the address specified by the
operand ranges from 00H to 7FH, and to 15 if the address specified by the operand is 80H to FFH. In the
mode of MBE = 0, therefore, both the data area of addresses 000H to 07FH and the peripheral hardware area
of F80H to FFFH can be addressed.
In the mode of MBE = 1, MB = MBS; therefore, the entire data memory space can be addressed.
This addressing mode can be used with four instructions: the bit set and reset instructions (SET1 and CLR1),
and the two bit test (SKT and SKF).
Example
To set FLAG1, reset FLAG2, and test whether FLAG3 is 0
FLAG1 EQU
FLAG2 EQU
FLAG3 EQU
34
03FH.1 ; Bit 1 of address 3FH
057H.2 ; Bit 2 of address 57H
077H.0 ; Bit 0 of address 77H
SET1 MBE
; MBE
SEL
MB0
; MBS
; FLAG1 ← 1
SET1 FLAG1
; FLAG2 ← 0
CLR1 FLAG2
SKF
FLAG3
; FLAG3 =
User's Manual U10676EJ3V0UM
← 1
← 0
0?

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents