D12 Mass Storage Kit. ( USB to CompactFlash TM or IDE)

Similar documents
AN10035_1 Comparing energy efficiency of USB at full-speed and high-speed rates

H89-Z37 DOUBLE-DENSITY FLOPPY CONTROLLER

CEIBO FE-51RD2 Development System

QUASAR PROJECT KIT # ATMEL AVR PROGRAMMER

PDIUSBD11 USB Peripheral with I 2 C Serial Interface

CEIBO FE-5111 Development System

M68HC705L4 PROGRAMMER BOARD APPLICATION NOTE

CEIBO FE-W7 Development System

K191 3 Channel RGB LED Controller

DIY KIT 123. ATMEL 89xxxx PROGRAMMER

FEBL620Q504H_RB-01. ML620Q504H Reference Board User s Manual

3.3V regulator. JA H-bridge. Doc: page 1 of 7

SH69P55A EVB. Application Note for SH69P55A EVB SH69P55A EVB SH69V55A

EZ-Link (AN2720SC) Single-Chip USB-to-USB Networking Solution FEATURES OVERVIEW

SH7286 Group APPLICATION NOTE. USB Function Module: USB Mass Storage Class Oct. 22, Summary. Target Device. Contents. R01AN0063EJ0100 Rev. 1.

EB-51 Low-Cost Emulator

S3 Flash In-System Programmer

Images Scientific OWI Robotic Arm Interface Kit (PC serial) Article

High speed USB interface for digital processor system

IMPORTANT NOTICE. As a result, the following changes are applicable to the attached document.

High Speed USB Controllers for serial and FIFO applications. Debug Information for FT8U232/245 devices

MAX6620 Evaluation Kit/Evaluation System

PART. Maxim Integrated Products 1

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0,

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

AP3156 Evaluation Module

EVAL-ADT7516. SPI -/I 2 C -Compatible, Temperature Sensor, 4-Channel ADC and Quad Voltage Output DAC FEATURES APPLICATIONS

Doc: page 1 of 6

SH69P48A EVB. Application Notes for SH69P48A EVB SH69V48A JP2 J4(ICE_J4) S1 IDD TEST JP1 74HC273 JP4 JP3 74HC273 JP6 STKOVE JP7 SW1 J5(ICE_J5)

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM

SL11RIDE Specification

+Denotes lead-free and RoHS compliant.

AAZ-0914A USB, Blue tooth and Graphic CPU 50MHZ Antenna Analyzer

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

Doc: page 1 of 8

IMU Axis Gyro Evaluation Board Application Note

isppac-powr607 Evaluation Board User s Guide

Revision: May 11, E Main Suite D Pullman, WA (509) Voice and Fax LED. Doc: page 1 of 6

Ocean Controls KT-5193 Modbus Programmable Stepper Motor Controller

Preliminary Datasheet

DIY KIT 121. ATMEL 89Cx051 PROGRAMMER

Read section 8 of this document for detailed instructions on how to use this interface spec with LibUSB For OSX

You need the following components to assemble the Black n Wood Nixie Clock circuit board:

EZ-USB AT2LP USB 2.0 to ATA/ATAPI Bridge

How to Implement I 2 C Serial Communication Using Intel MCS-51 Microcontrollers

Cerebot Nano Reference Manual. Overview. Revised April 15, 2016 This manual applies to the Cerebot Nano rev. A

SiliconBlue. SiliconBlue Technologies iceman65 Board. Programmable Solutions for Consumer Handheld. 7-MAY-2008 (v1.

USB3DevIP Data Recorder by FAT32 Design Rev Mar-15

Building and using JasperMIDI

ARM programmer and daughter board EB Technical datasheet

4.0 Blue LED DCF77 Clock documentation

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

PCI to SH-3 AN Hitachi SH3 to PCI bus

Symphony SoundBite Reference Manual

CPLD board datasheet EB

Maxim Integrated Products 1

Evaluates: MAX35103, MAX MAX35103EVKIT2 Evaluation Kit. General Description. Benefits and Features. MAX35103EVKIT2 Example Application

UM ISP1183 Microcontroller Eval Kit. Document information. isp1183, usb, peripheral, universal serial bus

F²MC-8L FAMILY MB89201 SERIES FLASH PROGRAMMING 8-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Button Code Kit. Assembly Instructions and User Guide. Single Button Code Entry System

Ocean Controls KT-5190 Serial Stepper Motor Controller

M480 Series Errata Sheet

IMPORTANT NOTICE. As a result, the following changes are applicable to the attached document.

Maxim Integrated Products 1

Sprinkler Controller Assembly Manual

OMEN Alpha / issue 4. Technical Documentation

BIG8051. Development system. User manual

Freescale Semiconductor, I

Doc: page 1 of 6

PCB Layout and design Considerations for CH7007 and CH7008

Arduino Uno R3 INTRODUCTION

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

S USB-PC Connection (Cable Not Included) S USB Powered (No External Power Supply Required) S Real-Time Data Acquisition Through the USB

Bolt 18F2550 System Hardware Manual

UM ISP1181x Microcontroller Eval Kit. Document information. Keywords isp1181a, isp1181b, usb, universal serial bus, peripheral

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

SimPLC. User Manual.

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

MAX17116Q Evaluation Kit Evaluates: MAX17116 in a 24-Pin TQFN Package

K8099 NIXIE CLOCK. * optional enclosure TKOK19 (black) - TKOK17 (white) ** optional plexiglass enlcosure B8099 ILLUSTRATED ASSEMBLY MANUAL

+Denotes lead-free/rohs-compliant. J5 1 J10 J13 4 J17 1 L1 1 L2 1 L4 L7 4

MAXQ622 Evaluation Kit Evaluates: MAXQ622

MAX1587AEVKIT. Maxim Integrated Products 1

Designing a USB Keyboard with the Cypress Semiconductor CY7C63413 USB Microcontroller

3. The MC6802 MICROPROCESSOR

Digilab 2 XL Reference Manual

Product Specification

APPLICATION NOTE. Atmel AT01080: XMEGA E Schematic Checklist. Atmel AVR XMEGA E. Features. Introduction

Programming in the MAXQ environment

AKKON USB CONTROLLER BOARD

MAX1662 Evaluation Kit/Evaluation System

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

AN-719 APPLICATION NOTE One Technology Way P.O. Box 9106 Norwood, MA Tel: 781/ Fax: 781/

Clicker 2 for Kinetis

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter

CONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

Evaluation Board for Quad, 16-Bit, Serial Input, Voltage Output DAC EVAL-AD5064-1EBZ

Easy Kit Board Manual

KIT33887EKEVB Evaluation Board

Transcription:

Philips Semiconductors Connectivity December 2000 D12 Mass Storage Kit ( USB to CompactFlash TM or IDE) We welcome your feedback. Send it to apic@philips.com.

Connectivity Page 2 of 17 Table of Contents OVERVIEW...3 TECHNIQUE 1...5 TECHNIQUE 2...6 SUSPEND AND RESUME CIRCUIT...7 MASS STORAGE PROTOCOL...8 TECHNICAL OVERVIEW OF USB MASS STORAGE CLASS BULK-ONLY TRANSPORT...8 Command Block Wrapper (CBW)...9 Command Status Wrapper (CSW)...10 SCSI PROTOCOL...11 FIRMWARE PROGRAMMING GUIDE... 13 JUMPER SETTINGS... 14 HDD POWER SUPPLY... 15 BOM... 16 APPENDIX... 17

Connectivity Page 3 of 17 Overview This figure shows the printed circuit board (PCB) assembly of a USB mass storage kit designed using the Philips USB 1.1 parallel interface device, PDIUSBD12. The current configuration for this mass storage kit supports only one peripheral, that is, either the CompactFlash (CF) card or the IDE 3.5 hard disk can be connected at any one time. This mass storage kits complies with USB Mass Storage Class with sub class of USB BULK-only transport protocol. The following block diagram illustrates the mass storage kit:

Connectivity Page 4 of 17 Suspend &Resume circuit USB CON 80C52 D12 74245 CF Header 100pin CPLD 74245 JTAG Header 74245 IDE Header HDD Power supply Harddisk Connector This architecture shows a generic interface control that consists of two techniques to control IDE peripherals. It consists of an 8052 microcontroller with RAM size of 256 bytes, operating at its maximum frequency of 24 MHz. A switching power supply regulator is provided to step down the adapter provided in the Mass Storage kit. It allows 12 V to be stepped down to 5 V without having massive efficiency reduction, unlike that of a linear power supply. This controller can control the IDE through a simple buffer (3 units of 74LS245), which results in slower throughput. Another technique is to access the IDE through memory mapping using CPLD.

Connectivity Page 5 of 17 Technique 1 This diagram illustrates a simple method of accessing IDE devices. All registers and data access are emulated by 8051 I/O ports; therefore, the throughput is very slow. Suspend &Resume circuit USB CON D12 74245 Address+ Control lines CF Header 80C52 74245 Data lines 74245 Data lines IDE Header

Connectivity Page 6 of 17 Technique 2 Suspend &Resume circuit USB CON D12 CF Header 80C52 100pin CPLD IDE Header The current board configuration uses this technique, in which the PIO address of the ATA drive is memory mapped to the on-board CPLD: Memory Location Address Content 0x4000H D12_COMMAND 0x4001H D12_Data 0x8000H IDE_WR_1F0(Data register write) 0x8002H IDE_RD_1F0(Data register read) 0x8004H IDE_1F1(error/feature register) 0x8005H IDE_1F2(sector count register) 0x8006H IDE_1F3(sector number register) 0x8007H IDE_1F4(cylinder low register) 0x8008H IDE_1F5(cylinder high register) 0x8009H IDE_1F6(drive/head register) 0x800AH IDE_1F7(status register) 0x800BH IDE_3F6(alternate status register) 0x800CH IDE_3F7(driver address register)

Connectivity Page 7 of 17 Suspend and Resume Circuit A suspend and resume circuit has been incorporated to allow the device to enter suspend mode and yet achieve the restricted suspend current stated in the USB Specification Rev. 1.1. 1 2 3 4 D D VCC C R22 100K C32 1uF VCC R21 100K D12_SUSPD 9 10 11 6 7 U7B A B CLR Cext Rext/Cext SN74HCT123 Q Q 5 12 R23 100K C35 1uF - 10V VCC R24 100K 1 2 3 14 15 U7A A B CLR Cext Rext/Cext SN74HCT123 Q Q 13 4 R11 10K R16 1K Q1 BC858B RESUME C C33 1uF SUSPEND AND RESUME CIRCUIT B B A Title A Size Number A4 Date: 18-Aug-2000 Sheet of File: D:\H20_D12\..\suspend_resume.Sch Drawn By: Revision 1 2 3 4 The implementation forces the microcontroller unit (MCU) to enter power-down mode, in which its oscillator will stop working. Only a hard reset will recover the MCU operation. From the circuit, the resume signal is connected to the reset circuit and upon the PC recovering from suspend stage will cause PDIUSBD12 to toggle the suspend signal by which the resume signal will be asserted by the circuit. Only a board with I/O mode access in this case technique 1 can achieve the 500 µa suspend current. In the CPLD version, it is not possible to achieve the USB suspend current spec because CPLD cannot be disabled and it draws more than 100mA of current during operation. During PC suspend mode, the power to the CompactFlash card will also be cut off.

Connectivity Page 8 of 17 Mass Storage Protocol The flow of communication for Mass Storage class is as follows: 1. Host sends command wrapped in Mass Storage Class Transport protocol. 2. Within the transport protocol, the operation code is wrapped in SCSI command protocol. 3. When the message reaches the hardware, the controller will decode the message and translate it into ATA interface protocol to communicate with the IDE peripheral. Technical Overview of USB Mass Storage Class Bulk-Only Transport The following is an extract from the specification of Bulk-Only Transport: Command Block Wrapper (CBW) - A packet containing a command block and associated information. Command Status Wrapper (CSW) - A packet containing the status of a command block. Data-In - Indicates a transfer of data IN from the device to the host. Data-Out - Indicates a transfer of data OUT from the host to the device.

Connectivity Page 9 of 17 Command Block Wrapper (CBW) The CBW shall start on a packet boundary and shall end as a short packet with exactly 31 (1FH) bytes transferred. Fields appear aligned to byte offsets equal to a multiple of their byte size. All subsequent data and the CSW shall start at a new packet boundary. All CBW transfers shall be ordered with the LSB (byte 0) first (little endian). Read command

Connectivity Page 10 of 17 From this USB traffic with reference to packet 1, one can decode the contents as 55 53 42 43 is the CBW signature followed by 28 E8 31FE is the CBWTag, which is generated by the host. 00 02 00 00 is the CBWDateTransferLength, which for this case is 0000,0200H = 512Bytes. 80 is the Flag followed by 00 is the CBWLUN followed by 0A is the CBWCBLength meaning the command length is 10Bytes long. For the command block, see the next section on SCSI. 28 equal to read command 00 equal to reserved 00 00 00 00 equal to the logical address 00 00 00 01 equal to the transfer length and for this case equal to 1 sector ( 512Bytes) Command Status Wrapper (CSW) The CSW shall start on a packet boundary and shall end as a short packet with exactly 13 (0DH) bytes transferred. Fields appear aligned to byte offsets equal to a multiple of their byte size. All CSW transfers shall be ordered with the LSB (byte 0) first (little endian). From this USB traffic at packet 1: 55 53 42 53 will be the CSWsignature followed by 28 E8 31 FE equals the CSWTag generated earlier from the host. 00 00 00 00 equals the CSWDataResidue 00 indicates the CSWstatus, which for this case is equal to OK.

Connectivity Page 11 of 17 SCSI protocol The field description table shows the SCSI primary commands structure. In typical usage, the OPERATION CODE field contains the code value identifying the operation being requested by the CDB (command descriptor block). The LOGICAL BLOCK ADDRESS field contains a logical block address. The TRANSFER LENGTH field specifies the number of bytes, logical blocks, or other command-specific units to be transferred. The PARAMETER LIST LENGTH field specifies the number of bytes of command parameter data to be sent from the application client to the device server. The ALLOCATION LENGTH field specifies the number of bytes set aside by the application client to receive command parameter data from the device server. The contents of the CONTROL field are defined in SAM-2.

Connectivity Page 12 of 17 This is an example of one of the SCSI primary read commands. The command list that is supported in this mass storage kit is: 1. Inquiry 2. Requests sense 3. Test unit ready 4. Mode sense 5. Mode select 6. Prevent allow medium removal 7. Read buffer 8. Write buffer

Connectivity Page 13 of 17 Firmware Programming Guide MAINLOOP.C RBC.c Chap_9.c ISR.c TPBulk.c Hal4sys.c Hal4d12.c Hal4ata.c USB IDE Drive Or Compact Flash card

Connectivity Page 14 of 17 1. Hardware Abstraction Layer for D12 Hal4d12.C This is the lowest layer code in the firmware. It performs hardware dependent I/O access to the PDIUSBD12. 2. Hardware Abstraction Layer for ATA Hal4ata.C This part of the code provides handles to the IDE protocol interface. 3. Hardware Abstraction Layer for System Hal4sys.C This part of the code is the lowest layer for IDE peripherals. 4. Reduced Block Command Layer RBC.C The subset of SCSI primary commands. This code decodes SCSI commands from the Host. 5. Interrupt Service Routine - ISR.C This part of the code handles interrupts generated by the PDIUSBD12. It retrieves data from PDIUSBD12 s internal FIFO to MCU memory, and sets up the proper event flags to inform Main Loop program for processing. 6. Main Loop - MAINLOOP.C The Main Loop checks the event flags and passes to appropriate subroutine for further processing. 7. Protocol Layer - CHAP_9.C The Protocol layer handles standard USB device requests. 8. Bulk Only Transport Layer - TPBulk.C This code handles the USB mass storage class protocol. Jumper Settings Jumper JP6 JP7 JP8 JP9 Description CSEL- low (default on) CSEL high ( default off) CPLD IO supply 5V ( default on) CPLD IO supply 3.3V ( default off) The setting for CSEL on the IDE drive is default low because the current board supports only a single IDE drive. JP7 is installed for you to run both the IDE drive and the CompactFlash card simultaneously. For the CPLD IO supply, the default is 5V as the current IDE drive and CompactFlash card are 5V tolerant. Only when an attempt to interface a 3.3V IDE device will setting the CPLD IO supply to 3.3V be needed.

Connectivity Page 15 of 17 HDD Power Supply A DC-DC power supply is included in the mass storage kit for powering the external HDD. As a typical HDD requires both 5V and 12V supplies, a step-down regulator is included. The MC33166 series consists of high performance fixed frequency power switching regulators that contain the primary functions required for DC-to-DC converters. It is specifically designed to be incorporated in step-down and voltageinverting configurations with a minimum number of external components and can also be used cost effectively in stepup applications. Its has output Switch Current in excess of 3.0 A using Fixed Frequency Oscillator (72 khz) with On Chip Timing. It provides 5.05 V Output without External Resistor Divider with operation voltage from 7.5 V to 40 V.

Connectivity Page 16 of 17 BOM The storage kit comes along with a power adapter (12V output) which has wide input voltage range type. It has also hard-disk cable (40-pin flat cable) and power cable (4 wires). The PCBA has the following components: S/No Designator Part number Description 1 22 pf C3 C4 C5 C6 C7 C9 Ceramic capacitor 0805 2 0.1 µf C10 C11 C12 C13 C14 Ceramic capacitor 0805 C15 C16 C17 C18 C19 C20 C21 C22 C23 C24 C25 C26 C27 C28 C29 C30 C31 3 1.0µF16V C2 Ceramic capacitor 4 100K R21 R22 R23 R24 Resistor 0805 5 10K R? R? R10 R11 R12 Resistor 0805 R13 R14 R7 R8 R9 6 18R R1 R2 Resistor 0805 7 190µH L3 inductor 8 1K R15 R16 R17 R18 R19 Resistor 0805 9 1M R3 R4 R5 Resistor 0805 10 1N5822 D3 diode 11 1µF C32 C33 C36 capacitor 12 1µF - 10V C35 capacitor 13 2200µF C43 capacitor 14 24MHz X2 Crystal 15 330 R64 Resistor 0805 16 3mm GREEN LED D1 LED 17 4.7K RP1 RP2 RP3 RP4 Resistor 0805 18 4.7µF16V C1 C8 capacitor 19 470R R6 Resistor 0805 20 5.6K R26 Resistor 0805 21 640 R37 Resistor 0805 22 68K R30 R31 Resistor 0805 23 6MHz X1 Crystal 24 80C52 U2 MCU 25 BC848 Q3 Q4 transistor 26 BC858B Q1 transistor 27 BLM11B121SB FB2 FB3 Ferrite bead 28 BLM31P121SGP FB1 Ferrite bead 29 BNC C40 DC jack connector 30 CF_HEADER 25X2 JP3 Compact flash connector 31 HardDisk Power Connector JP5 HDD power connector 32 IDEHEADER 20X2 JP1 33 JTAG HEADER 6 JP4 34 JUMPER JP8 JP9 35 LED D7 36 LP2985IM5-33 Q5 3.3V regulator 37 MC33166 C41 5V regulator for HDD 38 MMC Connector JP2 39 PDIUSBD12 U1 USB interface 40 Si2301DS Q2 MOSFET 41 SN74HCT123 U7 42 SN74HCT245 U3 U4 U5

Connectivity Page 17 of 17 S/No Designator Part number Description 43 SN74LVT244MTC U8 44 USBCON TYPE A CON1 45 XC95108-7PQ100C(100) U6 CPLD 46 Tact Switch SW1 Reset button APPENDIX IDE hard disk setup for USB Mass Storage kit Setup Notes: 1. Perform FORMAT or FDISK hard disk using a normal PC. (set HDD to slave mode, and connect in parallel to original HDD in the PC) 2. Remove HDD from system and ensure that the hard disk is set to master mode. 3. Connect the HDD as shown in the diagram. 4. Power on hard disk for at least 5 seconds (by connecting a 12 V adapter to the DC jack on the PCB), and then connect the USB mass storage kit to host. 5. If GoodLink LED (D1) is not lit, reset the mass storage system by pressing SW1. (this may happen because of hard disk is slow in powering up). The D7 LED indicates Prevent Media Removal status. 6. During data transfer, the LED is lit to indicate that the CompactFlash card must not be removed from board.