English
Language : 

HD64570 Datasheet, PDF (351/469 Pages) Hitachi Semiconductor – Serial Communications Adaptor
Transmission Processing Routine: An example of a transmission processing routine is given in
figure 9.5.
Start
Underrun error
Read ST1
Analyze interrupt source
Process interrupt, reset ST1
Issue EI instruction
Return
ST1: Status register 1
Note: An interrupt is also generated when the DMAC
completes the transmission of a frame.
Figure 9.5 TXINT Interrupt Processing Routine (using HD64180)
9.1.5 Reception in DMA Chained-Block Transfer Mode (Bit Synchronous HDLC Mode)
Initialization: An example of an initialization program is given below.
CMD fl 21H........................................ Resets channel.
MD0 fl 87H........................................ Specifies bit synchronous HDLC mode.
Specifies CRC-CCITT mode, and presets to all 1s.
MD1 fl 40H........................................ Specifies single address 1.
MD2 fl 00H........................................ Specifies the NRZ code.
Specifies full-duplex mode.
CTL fl 01H........................................ Specifies FCS no-load.
RRC fl 00H........................................ RXRDY = 1 when the receive buffer is not empty.
RXS fl 00H........................................ Specifies RXC line input for the receive clock.
IE0 fl 40H........................................ Enables RXINT interrupts.
IE1 fl 03H........................................ Enables abort detection interrupts.
Rev. 0, 07/98, page 335 of 453