Intel UPI-L42, UPI-C42 specifications UPI Instruction Set, Accumulator

Page 24

UPI-C42/UPI-L42

Table 4. UPI Instruction Set

Mnemonic

Description

Bytes

Cycles

ACCUMULATOR

 

 

 

ADD A, Rr

Add register to A

1

1

ADD A, @Rr

Add data memory

1

1

 

to A

 

 

ADD A, Ýdata

Add immediate to A

2

2

ADDC A, Rr

Add register to A

1

1

 

with carry

 

 

ADDC A, @Rr

Add data memory

1

1

 

to A with carry

 

 

ADDC A, Ýdata

Add immediate

2

2

 

to A with carry

 

 

ANL A, Rr

AND register to A

1

1

ANL, A @Rr

AND data memory

1

1

 

to A

 

 

ANL A, Ýdata

AND immediate to A

2

2

ORL A, Rr

OR register to A

1

1

ORL, A, @Rr

OR data memory

1

1

 

to A

 

 

ORL A, Ýdata

OR immediate to A

2

2

XRL A, Rr

Exclusive OR regis-

1

1

 

ter to A

 

 

XRL A, @Rr

Exclusive OR data

1

1

 

memory to A

 

 

XRL A, Ýdata

Exclusive OR imme-

2

2

 

diate to A

 

 

INC A

Increment A

1

1

DEC A

Decrement A

1

1

CLR A

Clear A

1

1

CPL A

Complement A

1

1

DA A

Decimal Adjust A

1

1

SWAP A

Swap nibbles of A

1

1

RL A

Rotate A left

1

1

RLC A

Rotate A left through

1

1

 

carry

 

 

RR A

Rotate A right

1

1

RRC A

Rotate A right

1

1

 

through carry

 

 

INPUT/OUTPUT

 

 

 

IN A, Pp

Input port to A

1

2

OUTL Pp, A

Output A to port

1

2

ANL Pp, Ýdata

AND immediate to

2

2

 

port

 

 

ORL Pp, Ýdata

OR immediate to

2

2

 

port

 

 

IN A, DBB

Input DBB to A,

1

1

 

clear IBF

 

 

OUT DBB, A

Output A to DBB,

1

1

 

set OBF

 

 

MOV STS, A

A4 – A7 to Bits 4 – 7 of

1

1

 

Status

 

 

MOVD A, Pp

Input Expander

1

2

 

port to A

 

 

MOVD Pp, A

Output A to

1

2

 

Expander port

 

 

ANLD Pp, A

AND A to Expander

1

2

 

port

 

 

ORLD Pp, A

OR A to Expander

1

2

 

port

 

 

Mnemonic

Description

Bytes

Cycles

DATA MOVES

 

 

 

MOV A, Rr

Move register to A

1

1

MOV A, @Rr

Move data memory

1

1

 

to A

 

 

MOV A, Ýdata

Move immediate to A

2

2

MOV Rr, A

Move A to register

1

1

MOV @Rr, A

Move A to data

1

1

 

memory

 

 

MOV Rr, Ýdata

Move immediate to

2

2

 

register

 

 

MOV @Rr,

Move immediate to

2

2

Ýdata

data memory

 

 

MOV A, PSW

Move PSW to A

1

1

MOV PSW, A

Move A to PSW

1

1

XCH A, Rr

Exchange A and

1

1

 

register

 

 

XCH A, @Rr

Exchange A and

1

1

 

data memory

 

 

XCHD A, @Rr

Exchange digit of A

1

1

 

and register

 

 

MOVP A, @A

Move to A from

1

2

 

current page

 

 

MOVP3, A, @A

Move to A from

1

2

 

page 3

 

 

TIMER/COUNTER

 

 

MOV A, T

Read Timer/Counter

1

1

MOV T, A

Load Timer/Counter

1

1

STRT T

Start Timer

1

1

STRT CNT

Start Counter

1

1

STOP TCNT

Stop Timer/Counter

1

1

EN TCNTI

Enable Timer/

1

1

 

Counter Interrupt

 

 

DIS TCNTI

Disable Timer/

1

1

 

Counter Interrupt

 

 

CONTROL

 

 

 

*EN A20

Enable A20 Logic

1

1

EN DMA

Enable DMA Hand-

1

1

 

shake Lines

 

 

EN I

Enable IBF Interrupt

1

1

DIS I

Diable IBF Inter-

1

1

 

rupt

 

 

EN FLAGS

Enable Master

1

1

 

Interrupts

 

 

*SEL PMB0

Select Program

1

1

 

memory bank 0

 

 

*SEL PMB1

Select Program

1

1

 

memory bank 1

 

 

SEL RB0

Select register

1

1

 

bank 0

 

 

SEL RB1

Select register

1

1

 

bank 1

 

 

*UPI-C42/UPI-L42 Only.

24

Image 24
Contents Configuration DIP PinUPI-C42/UPI-L42 Pin DescriptionBlock Diagram UPI-C42 Low power Chmos version of the UPI-42 UPI-C42/L42 Product Selection GuideIntel 82C42 UPI-L42 The low voltage 3.3V version of the UPI-C42UPI-42 Compatible Features Bits of StatusIBF OBF Program Memory Bank Switch UPI-C42 FeaturesInterrupt Routines Suspend Mode Summary SuspendNEW UPI-C42 Instructions New InstructionsRDÝ, WRÝ XTAL1, XTAL2Programming and Verifying the UPI-C42 XtalBUS ProgQuick-Pulse Programming Algorithm VerifySecurity BIT Security BIT PROGRAMMING/ VerificationSignature Mode Sync ModeVerification Access Code Sync Mode Timing Diagrams ApplicationsUPI-C42-8243 Keyboard Scanner UPI-C42 80-Column Matrix Printer InterfaceXTAL2, Reset RESET, SSAbsolute Maximum Ratings UPI-C42 UPI-L42DC Characteristics AC Characteristics DBB ReadDBB Write AC Characteristics DMA AC Characteristics PortClock AC CHARACTERISTICS-PROGRAMMING UPI-C42 and UPI-L42 AC Testing INPUT/OUTPUT Waveform AC Testing Load CircuitLC Oscillator Mode Crystal Oscillator Mode Driving from AN External SourceWaveforms Read OPERATION-DATA BUS Buffer RegisterWrite OPERATION-DATA BUS Buffer Register Clock TimingCombination PROGRAM/VERIFY Mode Verify ModeWaveforms Port Timing During External Access EA DMAPort UPI Instruction Set AccumulatorRevision Summary Jmpp @A