English
Language : 

MB86613S Datasheet, PDF (110/134 Pages) Fujitsu Component Limited. – IEEE1394 Open HCI Controller
Preliminary
8.2. Asynchronous Receive
An example of software flowchart for receiving an asynchronous request packet or response packet is shown
in Figure 8.7. The same process should be required in the case of PHY packet (phy configuration packet, link
on packet, and ping packet), except that LinkControl.rcvPhyPkt bit must be set in advance.
1) Check ARContextControl.active bit and make sure it is cleared.
2) Store the context program in an host memory.
3) Set the address of host memory where the context program is stored, in the ARcommandPtr.descriptorAd-
dress field. Also set the value ”1” in the ARCommandPtr.Z field. (Always setting ”1” means that MB86613S
device does support only buffer- fill mode.)
4) Set the ARContextControl.run bit.
5) Wait until the INTA# is set. (when the last descriptor’s ” i ” field contains 11b and IntMask.ARRQ or .ARRS
bit is set.)
6) Check the ARContextControl.eventcode field.
START
”1”
(1)
active=0 ?
”0”
(2)
Prepare Program
(3)
Set descriptorAddress
(4)
Set ’run’
(5)
”0”
INTA#=1 ?
”1”
(6)
Check the result
Fig. 8.7 Software Flow Chart for asynchronous packet Receive
8.2.1. How to Make Context Program
Figure 8.8 shows an example of context program format in buffer- fill mode, which is applied when storing a
received asynchronous packet into a host memory whose area size is 1024- byte.
109