NEC PD750008 User Manual

Page 100

Advertising
background image

80

µPD750008 USER'S MANUAL

Table 5-3. Operations by I/O Port Manipulation Instructions

Instruction

Port and pin operation

Input mode

Output mode

SKT

<1>

Pin data is tested.

Output latch data is tested.

SKF

<1>

MOV1 CY,

<1>

Pin data is transferred to CY.

Output latch data is transferred to CY.

AND1

CY,

<1>

An operation is performed on pin data and

An operation is performed

OR1

CY,

<1>

CY.

on output latch data and CY.

XOR1

CY,

<1>

IN

A,PORTn

Pin data is transferred to the accumulator.

Output latch data is transferred to the

IN

XA,PORTn

accumulator.

MOV

A,@HL

MOV

XA,@HL

ADDS A,@HL

An operation is performed on pin data and

An operation is performed

ADDC A,@HL

the accumulator.

on output latch data and the accumulator.

SUBS

A,@HL

SUBC A,@HL
AND

A,@HL

OR

A,@HL

XOR

A,@HL

SKE

A,@HL

Pin data is compared with the

Output latch data is com-

SKE

XA,@HL

accumulator.

pared with the accumulator.

OUT

PORTn,A

Accumulator data is transferred to the

Accumulator data is transferred to the

OUT

PORTn,XA

output latch (with the output buffers kept

output latch and is output on the pins.

MOV

@HL,A

off).

MOV

@HL,XA

XCH

A,PORTn

Pin data is transferred to the accumulator,

Data is exchanged between the output

XCH

XA,PORTn

and accumulator data is transferred to the

latch and accumulator.

XCH

A,@HL

output latch (with the output buffers kept

XCH

XA,@HL

off).

INCS

PORTn

Pin data incremented by 1 is latched in

Output latch data is incremented by 1.

INCS

@HL

the output latch.

SET1

<1>

The output latch data of a specified bit is

The output pin state is modified according

CLR1

<1>

rewritten, but the output latch data of the

to the instruction.

MOV1 <1> ,CY

other bits is undefined.

SKTCLR <1>

<1> : Represents an addressing mode PORTn.bit or PORTn.@L.

*

*

Advertising
This manual is related to the following products: