Operations By I/O Port Manipulation Instructions - NEC PD750004 User Manual

4 bit single-chip microcomputer
Table of Contents

Advertisement

µPD750008 USER'S MANUAL
Instruction
SKT
<1>
SKF
<1>
MOV1 CY,
<1>
*
AND1 CY,
<1>
OR1
CY,
<1>
XOR1 CY,
<1>
IN
A,PORTn
IN
XA,PORTn
MOV
A,@HL
MOV
XA,@HL
ADDS A,@HL
ADDC A,@HL
SUBS A,@HL
SUBC A,@HL
AND
A,@HL
OR
A,@HL
XOR
A,@HL
SKE
A,@HL
SKE
XA,@HL
OUT
PORTn,A
OUT
PORTn,XA
MOV
@HL,A
MOV
@HL,XA
XCH
A,PORTn
XCH
XA,PORTn
XCH
A,@HL
XCH
XA,@HL
INCS
PORTn
INCS
@HL
SET1
<1>
CLR1
<1>
MOV1 <1> ,CY
*
SKTCLR
<1>
<1> : Represents an addressing mode PORTn.bit or PORTn.@L.
80
Table 5-3. Operations by I/O Port Manipulation Instructions
Input mode
Pin data is tested.
Pin data is transferred to CY.
An operation is performed on pin data and
CY.
Pin data is transferred to the accumulator.
An operation is performed on pin data and
the accumulator.
Pin data is compared with the
accumulator.
Accumulator data is transferred to the
output latch (with the output buffers kept
off).
Pin data is transferred to the accumulator,
and accumulator data is transferred to the
output latch (with the output buffers kept
off).
Pin data incremented by 1 is latched in
the output latch.
The output latch data of a specified bit is
rewritten, but the output latch data of the
other bits is undefined.
Port and pin operation
Output latch data is tested.
Output latch data is transferred to CY.
An operation is performed
on output latch data and CY.
Output latch data is transferred to the
accumulator.
An operation is performed
on output latch data and the accumulator.
Output latch data is com-
pared with the accumulator.
Accumulator data is transferred to the
output latch and is output on the pins.
Data is exchanged between the output
latch and accumulator.
Output latch data is incremented by 1.
The output pin state is modified according
to the instruction.
Output mode

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd750006Pd750008Pd75p0016

Table of Contents