Intel mcs-48 manual Ale, XTAL2

Models: mcs-48

1 478
Download 478 pages 26.88 Kb
Page 193
Image 193

8021~!m[§!!"U~UOO~!mW

PIN DESCRIPTION

Designation

Vss

Vee

PROG

POO-P07 port 0

Pin # Function

14Circuit GND potential

28+5V power supply

3Output strobe for 8243 1/0 Expander

4-11 8-bit quasi-bidirectional port

Designation

Pin #

Function

 

 

CNT instruction. Also allows

 

 

zero-crossover sensing of

 

 

slowly moving inputs.

RESET

17

Input used to initialize the proc-

 

 

essor by clearing status flip-

 

 

flops and setting program

 

 

counters to zero.

P10-P17

18-25

8-bit quasi-bidirectional port

Port 1

 

 

P20-P23

26-27

4-bit quasi-bidirectional port

Port 2

1-2 P20-P23 also serve as a 4-bit

 

 

110 expander bus for 8243

T1

13

Input pin testable using the JT 1

 

 

and JNT1 instructions. Can be

 

 

designated the timer I event

 

 

counter input using the STRT

ALE

12

Address Latch, Enable. Signal

 

 

occurring once every 30 input

 

 

clocks, used as an output

 

 

clock.

XTAL1

15

One side of crystal or inductor

 

 

input for internal oscillator. Also

 

 

input for external source. (Not

 

 

TTL compatible.)

XTAL2

16

Other side of timing control

 

 

element.

INSTRUCTION SET

Mnemonic Description

Hexadecimal

Byte. Cycle Opcode

Mnemonic

Description

Byte. Cycl.

Hexadecimal

Opcode

ADD A,R r

ADD A,@R

ADD A,#data

ADDC A,Rr

ADDCA,@R

ADDC A,#data

ANL A,Rr ANL A,@R ANL A,#data ORL A,R r

j ORL A,@R ORL A,#data

"E XRL A,Rr

"

"

c" XRL A,@R

XRL A,#data

INC A

DEC A

CLR A

CPL A

OAA

SWAP A

RL A

RLC A

RRA

RRC A

IN A, Pp

'5OUTLP A

f MOVO x.Pp

0:s MOVO Pp,A

!

ANLO Pp,A

ORLO Pp,A

j INCRr

IINC@R

!

Add register to A

Add data memory to A Add immediate to A Add register with carry Add data memory with

carry

Add immediate with carry

And register to A

And data memory to A And immediate to A Or register to A

Or data memory to A Or immediate to A

Exclusive Or register

to A Exclusive Or data

memory to A Exclusive Or immediate

to A Increment A Decrement A Clear A Complement A O~cimal adjust A Swap nibbles of A Rotate A left Flotate A left through

carry Rotate A right

Rotate A right through carry

Input port to A Output A to port Input expander port

to A

Output A to expander port

And A to expander port Or A to expander port

Increment register Increment data memory

6S'6F

11 60-61

2 2 03 7S·7F 70-71

2 2 13

5S-5F 50·51

253 4S·4F

140·41

2 2 43 DS·OF

00·01

203

17

07

27

37·

57

-I47 E7 F7

77

67

OS,09.0A

290,39,3A

2OC-OF

2 3C·3F

29C·9F

2SC·SF

IS-IF 10·11

JMP addr

JMPP@A

... DJNZ R,o addr

"c

~JC addr JNC addr

JZ addr JNZ addr JT1 addr JNTI addr JTF addr

:Ii CALL addr

g

..g RET

i CLRC it CPL C

MOVA,Rr MOVA,@R MOV A,#data MOV Rr,A MOV@R,A

·MOV Rr,#data

:i MOV@R,#data

XCHA,R,

"

XCHA,@R

XCHOA,@R

MOVPA,@A

t MOVA,TMOVT,A 0

~STRTT

~STRT CNT

~STOP TCNT

NOP

Jump unconditional

 

2

04,24.44,64,

Jump indirect

 

2

B3

Decrement register and

 

2

ES-EF

jump oo'Rnof zero

 

 

 

Jump on carry= 1

 

 

F6

Jump o"n carry=O

2

 

E6

Jump on A zero

2

2

C6

Jump on Anot zero

2

2

96

Jump on Tl=1

 

2

56

Jump on Tl=O

2

2

46

Jump on timer flag

 

2

16

Jump to subroutine

 

 

14,34,54,74

Return

 

2

S3

Clear carry

 

 

97

Complement carry

 

 

A7

Move register to A

 

 

FS·FF

Move data memory to A

1

1

FO·Fl

Move iJ1lrnediate to A

2

2

23

Move A to register

 

 

AS·AF

Move A to 'dahlmemory

1

 

AO-Al

Movf! im"!'edtate~o

2

 

BS·BF

register

 

 

 

Move immediate to

2

2

BO·Bl

data memory

 

 

 

Exchange A and

 

 

2S·2F

register

 

 

 

Exchange A and data

 

 

20·21

memory

 

 

 

Exchange nibble of A

 

 

30-31

and register

 

 

 

Move to A from current

 

2

A3

page

 

 

 

Read timer I counter

 

 

42

Load timer Jcounter

 

 

62

Start timer

 

 

55

Start counter

 

 

45

Stop timer I counter

 

 

65

No operation

 

 

00

6'50

AFN-D1S87A-Il3

Page 193
Image 193
Intel mcs-48 manual Ale, XTAL2