Question: How to share the ATA Bus when using AT2LP?
The purpose of this article is to give an overview of the features available in the AT2LP that allow for ATA bus sharing, and to give recommendations for properly implementing a shared bus design. There are various factors to be considered while tri-stating the ATA bus in a shared BUS design and they are discussed in detail here.
The chips in the EZ-USB® AT2LP family(which includes part numbers CY7C68300C, CY7C68301C, CY7C68320C and CY7C68321C) have built-in functionality that allows them to set their ATA interface pins in a high-impedance state so that another ATA master can control the bus. This allows the AT2LP to be used in any system with more than one controller connected to the ATA bus, such as a USB/1394 storage device or USB-enabled multi-media player.
To properly implement a shared bus, it is essential that only one master device have control of the ATA bus at any given time. The AT2LP can tristate its ATA interface pins to effectively remove itself from the ATA bus. When the ATA pins are tristated, the secondary master (any device that shares the ATA bus with the AT2LP is referred to as the “secondary master”) can have full control over the ATA bus without interference from the AT2LP. However, this feature is not intended to be used to dynamically share the bus (for example, USB and FireWire™ operating at the same time). Instead, it should be used to select either the AT2LP or the secondary master under controlled circumstances, such as at power-up.
If problems are encountered when the AT2LP resumes normal ATA bus operation, the features controlled by EEPROM addresses 0x05, 0x08, and 0x0E may help to correct the issue. Refer to the AT2LP datasheet for more information on these features. No other changes should be required.
Depending upon the source of the device’s power, certain design characteristics may be necessary to ensure that power is not consumed needlessly. Battery-powered designs are especially sensitive to power consumption, while self-powered designs may not be. Also, because of the many possible means of detecting VBUS, special care must be taken to ensure that the design does not violate the USB specification.
Battery-powered applications that use the AT2LP, such as a portable MP3 player, will require that special attention be paid to the power control of the AT2LP. The AT2LP supports a low power standby state that consumes a minimum of power when it is not in use. Cypress offers the CY7C68301C and CY7C68321C for battery-powered designs. The power consumption during chip suspend is lower in these parts, as compared to the CY7C68300C and CY7C68320C, to ensure that a minimum of power is consumed. Because leakage in the I/O cells may occur when no power is applied to the chip, removing power from the AT2LP to share the ATA bus is not recommended.
Applications that power the AT2LP from a source other than batteries or VBUS (such as an external wall outlet adapter), do not require any special power considerations unless a reduction in total current consumption is desired. In such a case, the same methods suggested for battery-powered designs may be utilized
The AT2LP is fully compliant with the USB specifications for bus-powered operation. It also provides control signals to help ensure that the total design meets the bus-powered requirements. However, because the AT2LP is not active on the USB when VBUS_ATA_ENABLE is not asserted, it is not recommended that a shared-bus design be powered from VBUS.
Proper care should be taken to ensure that the shared bus design does not draw excessive current from VBUS. Care should also be taken to ensure that no power is applied to VBUS by the device, since only the USB host is allowed to power the bus. Also, if an RC reset circuit is used for the AT2LP in a bus sharing setup, the circuit’s capacitor may become charged due to back-powering from the secondary master’s ATA signals. Care should be taken to ensure that the capacitor is drained prior to AT2LP operation. If the capacitor is not drained when the AT2LP is powered up, a proper reset may never occur.