beautypg.com

NEC PD75402A User Manual

Page 61

background image

50

CHAPTER 5. PERIPHERAL HARDWARE FUNCTIONS

Table 5-3 Operations with Input/Output Port Handling Instructions

SKT

PORTn.bit

SKF

PORTn.bit

AND1 CY, PORTn.bit
OR1

CY, PORTn.bit

XOR1 CY, PORTn.bit

IN

A, PORTn

MOV

A, PORTn

OUT

PORTn, A

MOV

PORTn, A

XCH

A, PORTn

INCS

PORTn

SET1

PORTn.bit

CLR1

PORTn.bit

SKTCLR

PORTn.bit

Output Mode

Tests output latch data.

Operation between output latch
data and CY

Transfers output latch data to
accumulator.

Transfers accumulator data to
output data to output latches,
and outputs data from pins.

Exchanges data between output
latches and accumulator.

Increments output latch contents
by 1.

Changes output pin status as per
instruction.

Input Mode

Tests pin data.

Operation between pin data and
CY

Transfers pin data to accumula-
tor.

Transfers accumulator data to
output latches. (Output buffer
remains off.)

Transfers pin data to accumula-
tor, and transfers accumulator
data to output
latches. (Output buffer remains
off.)

Latches pin data + 1 in output
latches.

Specified bit output latch is
rewritten as per instruction,
but output latches for other bits
are undefined.

Instruction Executed

Port and Individual Pin Operations

This manual is related to the following products: