Download UC1394a-1 Bridge User Guide

Transcript
USER’S GUIDE
PARALLEL BUS TO IEEE1394 BRIDGE
Date
: 25 October 2006
Doc. no. : Bridge_UG
Iss./Rev : 1.1
Page
: 42
3.4.3 I/O Pin Startup State Options
Some of the I/O Pins are sampled at system startup. Their state can be used to configure
operation of the MCM. After system startup, the I/O pins can be used for other purposes. In order
to avoid conflicts with later usage, the startup state should be defined by pull-up/pull-down resistors
or by a driver that is disabled after system startup (see wiring examples in chapters 6.3 and 6.4.
3.4.3.1 Setting the Device ID over I/O Pins
This feature is useful if the end-user must be able to change the device ID, e.g. when the end-user
builds a system that consists of several MCMs. When using this option, the device ID is restricted
to values of 0 .. 7. To use this option, configuration parameter dev_id must be set to "read from I/O
pin". Please note that this feature is still available even when the HPI is used instead of the I/O
pins, since the I/O pins are sampled before the HPI is enabled. The device ID is encoded as
follows:
Pin
I/O16
I/O17
I/O18
-
Function
device ID Bit 0
device ID Bit 1
device ID Bit 2
(device ID Bit 3..5 are set to 0)
3.4.3.2 Setting the Partner Device ID over I/O Pins
This feature is useful if the end-user must be able to change the partner ID, e.g. when the end-user
builds a pure embedded system that consists of several MCMs. When using this option, the
partner ID is restricted to values of 0 .. 7. To use this option, configuration parameter partner_dev
must be set to "read from I/O pin". Please note that this feature is still available even when the HPI
is used instead of the I/O pins, since the I/O pins are sampled before the HPI is enabled. The
partner device ID is encoded as follows:
Pin
I/O19
I/O20
I/O21
-
Function
partner device ID Bit 0
partner device ID Bit 1
partner device ID Bit 2
(partner device ID Bit 3..5 are set to 0)
3.4.3.3 Setting the Configuration Mode over I/O Pins
The configuration mode is a basic setting that is always used, independent of the configuration.
Therefore, setting up the configuration mode must be done in any implementation. See also
chapter 6.3 for wiring examples. The available configuration modes are described in chapter 4.1.
The configuration mode is read from I/O[25:22] as follows:
Pin
I/O22
I/O23
I/O24
I/O25
Function
configuration mode Bit 0
configuration mode Bit 1
configuration mode Bit 2
configuration mode Bit 3
3.4.3.4 Setting the Streaming Direction over I/O Pins
This feature is used by the bridging kit [1] to allow quick start examples without configuration
required.
It can also used for systems where the streaming direction is not known during production, but later
on at system startup. A jumper or some programmable logic can define the startup state of I/O26 to
define the direction of str4eaming transfers. To use this feature, configuration parameter str_dir