Transcript
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
CSB502SSD Raspberry PI 2 Solid State Drive Shield Hardware Reference Manual © 2015 PI 2 Design
PAGE 1
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015 Table of Contents 1 Warranty ......................................................................................................................................................................................... 3 2 Operating Specifications ................................................................................................................................................................. 4 2.1 CSB502SSD Operating specifications ..................................................................................................................................... 4 3 Overview ........................................................................................................................................................................................ 5 3.1 Introduction ............................................................................................................................................................................. 5 3.2 Block Diagram ......................................................................................................................................................................... 5 4 On-Board Devices .......................................................................................................................................................................... 7 4.1 Overview ................................................................................................................................................................................. 7 4.1 CSB502SSD I2C Bus Devices................................................................................................................................................. 7 4.1 DS1339 Real Time Clock ........................................................................................................................................................ 7 4.1.1 DS1339 RTC Notes ......................................................................................................................................................... 8 4.2 24AA32T ID EEPROM ............................................................................................................................................................ 8 4.2.1 24AA02T EEPROM Notes ............................................................................................................................................... 8 4.3 USB Devices ........................................................................................................................................................................... 8 4.3.1 USB Hub Notes................................................................................................................................................................ 9 4.4 PL2571 USB2.0 to SATA Controller ........................................................................................................................................ 9 4.4.1 PL2571 Notes .................................................................................................................................................................. 9 4.5 Ogemray GWF-3M08 WiFi Module .......................................................................................................................................... 9 4.5.1 GWF-3M08 Notes .......................................................................................................................................................... 10 4.6 Bi-Color Status LED .............................................................................................................................................................. 10 4.6.1 Bi-Color Status LED Notes ............................................................................................................................................. 10 5 Raspberry PI GPIO ....................................................................................................................................................................... 12 5.1 Overview ............................................................................................................................................................................... 12 5.1.1 Raspberry PI GPIO Notes .............................................................................................................................................. 14 6 CSB502SSD Software .................................................................................................................................................................. 15 6.1 Overview ............................................................................................................................................................................... 15 7 3D Board Renderings ................................................................................................................................................................... 16 7.1 Overview ............................................................................................................................................................................... 16 7.2 Photos ................................................................................................................................................................................... 16 8 Document Revisions ..................................................................................................................................................................... 19 9 Ordering Information ..................................................................................................................................................................... 20 9.1 Valid Part Numbers ............................................................................................................................................................... 20 10 Errata.......................................................................................................................................................................................... 21 10.1 Overview ............................................................................................................................................................................. 21
List of Tables Table 1 – CSB502SSD Operating Specifications ............................................................................................................................... 4 Table 2 – CSB502SSD I2C Bus Devices ........................................................................................................................................... 7 Table 3 – Raspberry PI to DS1339 RTC Connections........................................................................................................................ 7 Table 4 – Raspberry PI to 24AA32T EEPROM Connections .............................................................................................................. 8 Table 5 – USB Hub Connections ....................................................................................................................................................... 9 Table 6 – GWF-3M08 Connections .................................................................................................................................................. 10 Table 7 – Bi-Color LED Connections ............................................................................................................................................... 10 Table 8 – CPU GPIO Pin Assignments ............................................................................................................................................ 14 Table 9 – Document Revisions ........................................................................................................................................................ 19 Table 10 – Ordering Information ...................................................................................................................................................... 20
List of Figures Figure 1 – CSB502SSD Block Diagram ............................................................................................................................................. 6 Figure 2 – CSB502SSD Top Side Photo .......................................................................................................................................... 17 Figure 3 – CSB502SSD Bottom Side Photo..................................................................................................................................... 18
PAGE 2
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
1 WARRANTY The enclosed product ("the Product"), a part of the Pi 2 Embedded (a division of PI 2 Design) Single Board series, is warranted by PI 2 Embedded for a period of one year for reasonable development, testing and use, all as further described and defined below. This warranty runs solely to the individual or entity purchasing the Product and is not transferable or assignable in any respect. This warranty is valid only for so long as the product is used intact as shipped from PI 2 Design. Any attempt or effort to alter the Product, including but not limited to any attempt to solder, de-solder, unplug, replace, add or affix any part or component of or onto the Product, other than components specifically intended for the user to plug and unplug into appropriate sockets and/or connectors to facilitate user programming, development and deployment, all as specifically described and authorized in this Product Hardware Reference Manual, shall void this warranty in all respects. Coverage under this warranty requires that the Product be used and stored at all times in conditions with proper electrostatic protection necessary and appropriate for a complex electronic device. These conditions include proper temperature, humidity, radiation, atmosphere and voltage (standard commercial environment, 0C to +70C, <60%RH). Any Product that has been modified without the express, prior written consent of PI 2 Embedded is not covered by this warranty. The use or connection of any test or bus connector, adapter or component with any device other than a PI 2 Embedded connector or adapter shall void this warranty and the warranty of all other components, parts and modules connected to the rest of the system. PI 2 Embedded shall not be responsible for any damage to the Product as a result of a customer's use or application of circuitry not developed or approved by PI 2 Embedded for use on or in connection with the Product.
This warranty does not cover defects caused by electrical or temperature fluctuations or from stress resulting from or caused by abuse, misuse or misapplication of the Product. Any evidence of tampering with the serial number on the Product shall immediately void this warranty. This Product is not intended to be used on or embedded in or otherwise used in connection with any life-sustaining or life-saving product and this warranty is not applicable nor is PI 2 Embedded liable in any respect if the Product is so used. Notwithstanding anything to the contrary herein, PI 2 Embedded expressly disclaims any implied warranty of merchantability or implied warranty of fitness for a particular purpose in connection with the manufacture or use of the Product.
PAGE 3
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
2 OPERATING SPECIFICATIONS 2.1 CSB502SSD OPERATING SPECIFICATIONS The CSB502SSD conforms to the following specifications:
Specification Dimensions Weight Storage Temperature Operating Temperature Humidity
Value 85mm x 56mm – Full Size Raspberry PI Shield ~10g (not Including SSD) -20C to +85C 0C to +70C (not including SSD) 0% to 95% RH, Non-Condensing
Input Voltage (VIN)
+8V to +24V, Nominal +12V, 1A Peak
Power Consumption
1W Typical, 2W Maximum (excludes SSD, Raspberry PI 2, and USB) Table 1 – CSB502SSD Operating Specifications
PAGE 4
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
3 OVERVIEW 3.1 INTRODUCTION The CSB502SSD, designed and manufactured by PI 2 Embedded is a professional I/O Shield designed for the low cost Raspberry PI 2 (RPi 2) computer. This shield converts one RPi 2 USB Host Port to a high capacity mSATA SSD Drive (up to 1TB), Dual USB 2.0 Host Ports and 802.11b/g/n WiFi w/Soft-AP Mode support. The major features of the CSB502SSD are as follows: • • • •
• •
•
FORM FACTOR – Full Size Raspberry Pi 2 I/O Shield with 40-Pin mating connector. Stacking and Non-Stacking versions are available. USB PORTS – Two USB2.0 Type A (5V @ 1.5A power) for additional USB expansion. SSD – PL2571 Controller and mSATA Socket for up to 1TeraByte on-board Storage. WiFi – GWF-3M08 Module (Based on Ralink RT5370) provides 802.11b/g/n for up to 150Mbps. On-Module IPEX connector allows for optimal antenna placement. RTC WITH BATTERY – DS1339 Real Time Clock with 16mm Coin Cell Backup and Alarm. TEMP SENSOR – 1-Wire DS18B20 Temperature Sensor mounted below SSD to monitor health of drive. Additionally the DS18B20 has a unique 64-Bit ID that can be used to identify the shield for advanced Asset Management. ON-BOARD POWER SUPPLY – Wide-Input 5V @ 10A powers all peripherals plus the RPi 2. Additional 5-Pin Header can be used to power the Pi Foundation 7" Touch LCD w/I2C.
3.2 BLOCK DIAGRAM Refer to the following figure for a block diagram of the CSB502SSD SOM.
PAGE 5
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
12V @ 5A Power Brick 2.5MM DC Jack USB-A to Micro USB-B Patch Cable
Backpower Protection Circuit
+8V to +24V Input 5V @ 10A Switching Supply
USB MICRO-B Dual 5V @ 1.5A Power Switch
USB2514 HUB
USB-A HOST
UPSTREAM PORT HOST PORT 1
USB-A HOST
USB-A HOST
USB Type-A
HOST PORT 2 HOST PORT 3
USB-A HOST
HOST PORT 4
USB Type-A mSATA 5mm Socket 32GB to 1TB
10/100 RJ45 w/Transformer USB Port
GPIO
I2C ID I2C GPIO
Extended Height 40-Pin Socket
40-Pin Expansion Header
SATA Port
+5V
3V @ 3A Switching Supply
PL2571 SATA Controller
1-Wire DS18B20 Temp. Sensor w/64-Bit ID
IPEX (U.FL) Antenna Jack OGEMRAY GWF-3M08 802.11b/g/n
5-Pin Header 24AA32T EEPROM
DS1339 Real Time Clock
Bi-Color Status LED
Raspberry Pi 2 HDMI
CSB502SSD BLOCK DIAGRAM Figure 1 – CSB502SSD Block Diagram
PAGE 6
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
4 ON-BOARD DEVICES 4.1 OVERVIEW The CSB502SSD interfaces to the Raspberry PI via the 40-Pin GPIO connector as well as one USB host port (using USB-A male to USB-Micro-B cable). This section describes in detail the devices located on the CSB502SSD as seen from these two interfaces. 4.1 CSB502SSD I2C BUS DEVICES The following table describes the CPU I2C Bus usage of the CSB502SSD. Refer to the respective device documentation for more detail.
I2C Bus
7-Bit I2C Description Address
I2C
0x50
DS1339 Real Time Clock
ID_I2C
0x50
32Kbit EEPROM for ID usage Table 2 – CSB502SSD I2C Bus Devices
4.1 DS1339 REAL TIME CLOCK A Dallas/Maxim DS1339 provides a battery backed Real-Time Clock. This device sits on the Raspberry PI I2C bus at address 0x68. Additionally, the interrupt output of the DS1339 connects to a Raspberry PI GPIO to allow the user to set alarms. The signals used to interface with the DS1339 are shown in the following table.
DS1339 Signal
Raspberry PI Signal
Description
SCL
SCL
I2C Bus Clock
SDA
SDA
I2C Bus Data
*INT
GPIO20
VBAT
-
Interrupt Output from DS1339 Coin Cell Battery Input to DS1339
Table 3 – Raspberry PI to DS1339 RTC Connections
PAGE 7
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015 4.1.1 DS1339 RTC NOTES 1. The CSB502SSD is fitted with a CR1620 Battery rated at 75ma/hr. This is a non-rechargeable battery. It will provide back-up power (when the Raspberry PI is non-powered) for 10+ years. Temperature and humidity beyond the ratings for the CSB502SSD can shorten this life considerably. 2. By default the DS1339 RTC interrupt is set to a 1 second square wave with the output disabled. Software should setup the interrupt function for the desired functionality. Refer to the DS1339 data sheet for more information. 3. The DS1339 supports a rechargeable battery using an internal trickle charger. This is disabled by default and should only be used if the coin cell has been replaced with a verified rechargeable battery. Enabling the trickle charger (valid only when the 3.3V rail is on) with a primary (nonrechargeable) coin cell will not damage the coin cell, but may drain it faster. 4.2 24AA32T ID EEPROM A Microchip 24AA32T EEPROM provides user programmable EEPROM. It is on the Raspberry PI ID I2C Bus at I2C address 0x50. The signals used to interface with the 24AA32T are shown in the following table.
24AA32T Signal
CPU Signal
Description
SCL
ID_SCL
I2C Bus Clock
SDA
ID_SDA
I2C Bus Data
Table 4 – Raspberry PI to 24AA32T EEPROM Connections
4.2.1 24AA02T EEPROM NOTES 1. By default the ID EEPROM delivered with the CSB502SSD is blank. 4.3 USB DEVICES The CSB502SSD uses a Microchip USB2514 4-Port Hub to expand the USB interface to four downstream devices. These devices are listed in the following table.
PAGE 8
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
USB Port
Device
0
RPi
1
PL2571B
2
Description Upstream port from Raspberry Pi via USB-A to USB Micro-B cable USB2.0 to SATA Controller
GWF-3M08 80.22n/g/n WiFi Module
3
USB-A 0
USB Host Port 0
4
USB-A 1
USB Host Port 1 Table 5 – USB Hub Connections
4.3.1 USB HUB NOTES 1. USB Host Ports 0 and 1 (Hub ports 3 and 4) are provide with 5V each via an AP2192 Dual Power Switch. The maximum current per port is 1.5A. 2. Over Current Error signals from the AP2192 are routed to the USB2514 and reported to the Raspberry Pi via standard USB messaging. 4.4 PL2571 USB2.0 TO SATA CONTROLLER The CSB502SSD is provided with a PL2571 SATA controller from Prolific Corp. The PL2571 implements a standard USB Storage interface and is supported by most Operating Systems by default. 4.4.1 PL2571 NOTES 1. The PL2571 reports USB Vendor ID 0x067B and Product ID 0x2571. 2. A 5.2mm mSATA socket is connected to the PL2571. 3. A Blue Surface Mount LED (D5) indicates SATA activity. 4.5 OGEMRAY GWF-3M08 WIFI MODULE The CSB502SSD uses the OGEMRAY GWF-3M08 802.11b/g/n module. This module is based on the Ralink RT5370 chip. The module has a u.fl (also known as I-Pex) antenna jack to allow for optimal external antenna placement. The GWF-3M08 is connected via USB, but uses two GPIO’s for control as shown in the following table.
PAGE 9
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
GWF-3M08 Signal
Connection
Description
USB D+/-
USB2514
WPS
RPi GPIO16
A high places the GWF-3M08 in WPS mode allowing the Raspberry PI to connect to WiFi access points via the WPS protocol
TXEN
RPi GPIO25
A high enables transmitting by the GWF-3M08. A low true disables the transmit circuitry thus reducing power consumption.
USB Hub Port 2
Table 6 – GWF-3M08 Connections
4.5.1 GWF-3M08 NOTES 1. The GWF-3M08 reports USB Vendor ID 0x148F and Product ID 0x5370, these are the Ralink RT5370 ID’s. 2. A Yellow Surface Mount LED (D4) indicates WiFi Link Status and Activity. 4.6 BI-COLOR STATUS LED The CSB502SSD provides a Bi-Color (Green/Yellow) surface mount LED (D1) for user programmable status. This LED is connected to the RPi 2 GPIO as shown in the following table.
LED
RPi 2 GPIO
Description
GRN-
GPIO27
Green Cathode, low illuminates the Green LED.
YEL-
GPIO17
Yellow Cathode, low illuminates the Yellow LED.
GRN+ YEL+
-
Connected to 3.3V via 330 ohm resistor
Table 7 – Bi-Color LED Connections
4.6.1 BI-COLOR STATUS LED NOTES 1. The current LED used on the CSB502SSD allows both the Yellow and PAGE 10
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015 Green LED’s to be enabled simultaneously. This use is unsupported and may not be available on future versions.
PAGE 11
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
5 RASPBERRY PI GPIO 5.1 OVERVIEW The CSB502SSD uses a number of signals from the Raspberry Pi 2 GPIO header for control and status purposes. This usage is defined in the following table.
RPi 2 PIN
DIR
AF
PUP/ PDN
CSB502SSD Name
Description/Notes
1
-
-
-
-
2
-
-
-
+5V
3
I/O
Y
PUP
I2C_SDA
4
-
-
-
+5V
5
OUT
Y
PUP
I2C_SCL
6
-
-
-
GND
7
-
-
-
-
GPIO4/GCLK - Unused
8
-
-
-
-
GPIO14/TXD - Unused
9
-
-
-
GND
10
-
-
-
-
11
OUT
-
-
*Y_LED
12
-
-
-
-
GPIO18/GEN1 - Unused
13
-
-
-
-
GPIO4/GCLK - Unused
14
OUT
-
-
*G_LED
15
-
-
-
-
GPIO22/GEN3 - Unused
16
-
-
-
-
GPIO23/GEN4 - Unused
Raspberry PI +3.3V - Unused +5V Power to the Raspberry PI I2C Bus Data +5V Power to the Raspberry PI I2C Bus Clock
GPIO4/GCLK - Unused GPIO17 – Low True Yellow Enable for Green/Yellow LED
GPIO17 – Low True Green Enable for Green/Yellow LED
PAGE 12
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
RPi 2 PIN
DIR
AF
PUP/ PDN
CSB502SSD Name
17
-
-
-
-
Raspberry PI +3.3V - Unused
18
-
-
-
-
GPIO24/GEN5 - Unused
19
-
-
-
-
GPIO10/SPI_MOSI - Unused
20
-
-
-
GND
21
-
-
-
-
22
OUT
-
-
WI_TXEN
23
I/O
-
PUP
1-WIRE
24
-
-
-
-
25
-
-
-
GND
26
-
-
-
-
27
I/O
Y
-
ID_SDA
ID I2C Bus Data
28
OUT
Y
-
ID_SCL
ID I2C Bus Clock
29
-
-
-
-
GPIO5 - Unused
30
-
-
-
GND
31
-
-
-
-
32
IN
-
PUP
VG_PG
33
-
-
-
-
34
-
-
-
GND
35
-
-
-
-
36
OUT
-
-
WI_WPS
37
-
-
-
-
-
PUP
*RTC_INT
38
Description/Notes
GPIO9/SPI_MISO - Unused GPIO25 – WiFi Transmit Enable GPIO11 – DS18B20 Temp Sensor GPIO8/*SPI_CS0 - Unused
GPIO1/*SPI_CS1 - Unused
GPIO6 - Unused GPIO12 – Power Supply Good GPIO13 - Unused
GPIO19 - Unused GPIO16 – WiFi WPS Enable GPIO26 - Unused GPIO20 - DS1339 RTC Interrupt
IN
PAGE 13
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
RPi 2 PIN
DIR
AF
PUP/ PDN
CSB502SSD Name
39
-
-
-
GND
40
-
-
-
-
Description/Notes
GPIO5 - Unused
Table 8 – CPU GPIO Pin Assignments
5.1.1 RASPBERRY PI GPIO NOTES 1. Direction (DIR) is from the point of view of the Raspberry PI. 2. Y in the Alternate Function (AF) column indicates that the use of this pin requires the pin to be assigned to the function as defined by the Raspberry PI specifications. 3. PUP/PDN indicates if the GPIO should have its associated Pullup (PUP) or Pulldown (PDN) resistor enabled. 4. An asterisk ‘*’ at the beginning of the name indicates a low true signal.
PAGE 14
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
6 CSB502SSD SOFTWARE 6.1 OVERVIEW Due to the various resources interfaced on the CSB502SSD, both internal and external to the Raspberry Pi 2, it is necessary to initialize a large number of CPU registers and external devices before correct operation can begin. These values and their proper sequencing are beyond the scope of this document. Contact PI 2 Design for example operating and initialization code.
PAGE 15
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
7 3D BOARD RENDERINGS 7.1 OVERVIEW This section provides the top and bottom 3D renderings pf the CSB502SSD. 7.2 PHOTOS The top and bottom layout of the CSB502SSD is shown in the following figures (for illustrative purposes only).
PAGE 16
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
Figure 2 – CSB502SSD Top Side Photo
PAGE 17
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
Figure 3 – CSB502SSD Bottom Side Photo
PAGE 18
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
8 DOCUMENT REVISIONS Date
Revision
11/23/2015
P3.0
Change Preliminary Release Table 9 – Document Revisions
PAGE 19
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
9 ORDERING INFORMATION 9.1 VALID PART NUMBERS The following table defines the valid ordering numbers for the CSB502SSD. Note that the items in BOLD are standard, normally stocked items. All others may be subject to minimum order quantities and/or additional lead times.
Order Number
Description
CSB502SSD
CSB502SSD Shield Only
CSB502SSD-KIT
CSB502SSD with Micro-USB to USB-A cable, 12V @ 5A Power Supply, WiFi PCB Antenna and Mounting Hardware Table 10 – Ordering Information
PAGE 20
PI2Embedded CSB502SSD Hardware Reference Manual – P3.0 - 11/30/2015
10 ERRATA 10.1 OVERVIEW There are no known errata for CSB502SSD Rev. P3.
PAGE 21