beautypg.com

Zilog Z16C35 User Manual

Page 242

background image

Application Note

SCC in Binary Synchronous Communications

10-12

RECEIVE INT. SERVICE ROUTINE

00F4

GLOBAL
ENTRY

REC

PROCEDURE

00F4

93F0

PUSH

@RI5, R0

00F6

3A84

INB

RL0, RR0A

!READ STATUS FROM RR0A!

00F8

FE21

00FA

A684

BITB

RL0, #4

!TEST IF SYNC HUNT RESET!

00FC

EE02

JR

NZ, RESET

!YES CALL RECEIVE ROUTINE!

00FE

5F00

CALL

RECEIVE

0100

006C’

0102

C808

RESET:

LDB

RL0, #%08

0104

3A86

OUTB

WR0A+2, RL0

!WAIT DISABLE!

0106

FE23

0108

C8D1

LDB

RL0, #%D1

010A

3A86

OUTB

WR0A+6, RL0

!ENTER HUNT MODE!

010C

FE27

010E

C820

LDB

RL0, #%20

0110

3A86

OUTB

WR0A, RL0

!ENABLE INT ON NEXT CHAR!

0112

FE21

0114

C838

LDB

RL0, #%38

0116

3A86

OUTB

WR0A, RL0

!RESET HIGHEST IUS!

0118

FE21

011A

97F0

POP

R0, @RI5

011C

7B00

IRET

0IIE

END REC

Page 236 of 316

UM011002-0808