English
Language : 

MB86613S Datasheet, PDF (104/134 Pages) Fujitsu Component Limited. – IEEE1394 Open HCI Controller
Preliminary
8. Software Implementation
8.1. Asynchronous Transmit
An example of software flowchart for transmitting an asynchronous request or response packet is shown in
Figure 8.1. The same process should be required for PHY packet (phy configuration packet, linkon packet,
and ping packet) and asynchronous stream packet transmission.
1) Check ATContextControl.active bit state and make sure it is cleared.
2) Store the data to transmit in an host memory.
3) Store the context program in the host memory. In this case, also set the packet header in the lower 16- byte
field of the first descriptor (immediate command).
4) Set the start address of host memory where the context program is stored, in the ATCommandPtr.descrip-
torAddress field. Also set the count; (number of descriptor + 1), since the first descriptor is an immediate com-
mand, in the ATCommandPtr.Z field.
5) Set the ATContextControl.run bit.
6) Wait until the INTA# is set. (when the last descriptor’s ” i ” field contains 11b or 01b and IntMask.reqTxCom-
plete or .respTxComplete bit is set.)
7) Check the ATContextControl.eventcode field.
103