|
HD64570 Datasheet, PDF (349/469 Pages) Hitachi Semiconductor – Serial Communications Adaptor | |||
|
◁ |
Start
Read ST1 and ST2
(ACC âST1, ST2)
Clear interrupt
source bit
(ST2 â ACC,
ST1 âACC)
Analyze interrupt source
Process interrupt
Issue EI instruction
Return
ACC: Accumulator
ST1: Status register 1
ST2: Status register 2
Figure 9.4 RXINT Interrupt Processing Routine (using HD64180)
9.1.4
Transmission in DMA Chained-Block Transfer Mode (Bit Synchronous HDLC
Mode)
Initialization: An example of an initialization program is given below.
CMD ï¬ 21H........................................ Resets channel.
MD0 ï¬ 87H........................................ Specifies bit synchronous HDLC mode.
Specifies CRC-CCITT mode, and presets to all 1s.
MD2 ï¬ 00H........................................ Specifies the NRZ code.
Specifies full-duplex mode.
CTL ï¬ 11H........................................ Specifies idle pattern transmission.
Specifies RTS line high-level output.
TRC0 ï¬ 1FH........................................ TXRDY bit = 1 when the transmit buffer is not full.
TRC1 ï¬ 1FH........................................ TXRDY bit = 0 when the transmit buffer is full.
Rev. 0, 07/98, page 333 of 453
|
▷ |