beautypg.com

Figure 9-18. hdlc message receive example, Figure 9-18 – Rainbow Electronics DS26519 User Manual

Page 86

background image

DS26519 16-Port T1/E1/J1 Transceiver

86 of 310

Figure 9-18. HDLC Message Receive Example

Reset Receive

HDLC Controller

(RHC.6)

Configure Receive

HDLC Controller

(RHC, RHBSE, RHFC)

Start New

Message Buffer

Enable Interrupts

RPE and RHWM

Start New

Message Buffer

Interrupt?

Read Register

RHPBA

Read N Bytes From

Rx HDLC FIFO (RHF)

N = RHPBA[5..0]

MS = 1?

(MS = RHPBA[7])

NO

YES

NO

YES

Read RRTS5 for

Packet Status (PS2..0)

Take appropriate action

No Action Required

Work Another Process.

Read N Bytes From

Rx HDLC FIFO (RHF)

N = RHPBA[5..0]

Start New

Message Buffer

Start New

Message Buffer