NEC PD75402A User Manual page 37

4-bit single-chip microcomputer
Table of Contents

Advertisement

CHAPTER 3. FEATURES OF ARCHITECTURE AND MEMORY MAP
(5) Specific address bit manipulation addressing (fmem. bit)
An addressing mode to specify each bit of the input/output port, interrupt, etc. flag, etc. of the peripheral hardware
directly by the instruction's operand. Consequently, the data memory addresses to which this addressing mode is
applied are FB0H to FBFH, FF0H to FFFH.
While the 1-bit direct addressing mode (mem.bit) is applicable only to the bit set/reset/test instructions, this
addressing mode enables multifarious bit manipulation such as the Boolean operation by the AND1, OR1 and XOR1
instructions, test and reset by the SKTCLR instruction in addition to them.
Example
1. Test the basic interval timer interrupt request flag (IRQBT) and, if set, clear IRQBT and reset the
P63 pin level.
SKTCLR
BR
CLR1
2. If P30 and p61 both 1, reset P53.
(i) SET1
AND1
AND1
SKT
BR
CLR1
.
.
SETP: SET1 PORT5. 3
(ii) SKT
BR
SKT
BR
CLR1
.
.
SETP: SET1 PORT5. 3
26
IRQBT
; IRQBT = 1?
NO
; NO
PORT 6. 3
; YES
P30
P53
P61
CY
; CY
1
CY, PORT3. 0 ; CY P30
CY, PORT6. 1 ; CY P61
CY
; CY = 1?
SETP
PORT5. 3
;P53
0
; P53
1
PORT3. 0
; P30 = 1?
SETP
PORT6. 1
; P61 = 1?
SETP
PORT5. 3
; P53
0
; P53
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd75p402

Table of Contents