SCSI2SD Schematic Notes: Difference between revisions

From code/src wiki
Jump to navigationJump to search
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
Details for the circuit design of [[SCSI2SD]].
Details for the circuit design of [[SCSI2SD]].


== SMT Type ==
== Changes between V1 and V2 ==
# 0805 sized components will be used where applicableThese represent a good tradeoff between hand-solderability and PCB board space.
The [[First_reflow_soldering_attempt]] was a failure.  As a result, the schematic is being improved to simplify construction.
 
=== Change of microcontroller footprint ===
The V1 incorrectly made use of a 10x10mm QFN68 0.5mm pitch footprint for the [http://www.cypress.com/?id=2326 CY8C53] microcontroller, instead of the smaller 8x8mm QFN68. 8x8mm is seriously tiny, with a pitch of only 0.4mm.  The TSSOP packages (0.635mm pitch) on the V1 boards had many solder bridges etc, and moving to an even finer pitch device would be well beyond my soldering ability.
 
The solution is to make use of the 100-pin TQFP versions of the microcontroller insteadThe devices use a 0.5mm pitch, 25% larger than the QFN68 devices, and the same as the (incorrect) footprint on the V1 board.


== Crystal Oscillator ==
=== Change of PHY ===
* LCP1751 requires a 25MHz crystal, which results in a 100MHz clock with x4 PLL
The V1 schematic made use of a typical bus arrangement to interface to the SCSI wires.  SCSI signals were split into read and write paths, with the microcontroller using a signal to switch the bus between read or write modeThis arrangement uses minimal microcontroller pins (18 SCSI pins + 1 R/W signal), but additional interface IC's.
* The crystal requires 2 caps for stability. The required value is:
  2 * (CL - CS)


Where CL is the crystal's load capacitance, as specified by the crystal manufacturer, and CS is the PCB's stray capacitance (around 5pF for a reasonable PCB).
The V2 schematic will switch back to a much simpler arrangement whereby each SCSI signal is connected to the microcontroller twice - once for read, and another for write (via an inverting buffer).  This arrangement is possible due to the additional I/Os available with the 100-pin QFP version of the microcontroller, and saves the cost/board space/soldering of 6 additional ICs.  The PSoC5 supports configurable CMOS or LVTTL (SCSI-compatible) signal levels on all GPIO pins.


[http://au.element14.com/txc/9c-25-000meej-t/quartz-crystal-25-mhz-18-pf-hc/dp/1842314 TXC - 9C-25.000MEEJ-T] Load capacitance 18pF. Therefore, use 2x 22pF standard ceramic capacitors.
== Removal of the switching regulator ==
Since the change of PHY has reduced the need for 3.3V power, it is now feasible to run the SD Card from a much simpler (cheaper) LDO linear regulator.


== Power Supply ==
The CY8C53 micro will use the 5V supply instead (internally regulated to 1.8V anyway).  Running at 5V is necessary for the PHY design of directly connecting the input SCSI signals.  This micro allows some I/O pins to run at a lower voltage for interfacing directly to the SD card at 3.3V.


=== Power Requirements ===
=== Use of a solder stencil ===
{| border="1"
The 0.5mm pitch of the microcontroller will require the use of a stencil to limit the amount of solder paste applied. I applied way too much paste to the 0.635mm pitch devices on the V1 boards, and this caused many solder bridges.
!
!3.3V
!5V
|-
|LPC1751
|600mA
Rated at 100mA per supply pin.<br />
Analog supply pin unused.
|0
|-
|SD Card
|200mA
[http://www.embeddedrelated.com/groups/msp430/show/14851.php]
|0
|-
|UCC5617
Optionally powered by SCSI TERMPWR
|0
|440mA
|-
|74HCT05
|0
| ?
Likely to be insignificant
|-
|'''Total'''
|'''800mA'''
|> '''440mA'''
|}


5V supply from a hard drive molex connector should provide more than sufficient current. A regulator will be required to convert the 5v supply to 3.3V.
The 0.5mm pitch will require a laser-cut stencil.
# Laser-cut 3mil mylar (plastic) stencils available from [http://www.pololu.com/catalog/product/446 pololu] for $25. Non-framed.
# Laser-cut 3.5mil kapton (plastic) stencils available from [http://ohararp.com/Stencils.html ohararp] for $25. Non-framed.


==== Preferred Option: Switching Regulator ====
== Board specifications ==
* [http://www.onsemi.com/PowerSolutions/product.do?id=NCP3170 NCP3170]
# 0805 sized components will be used where applicable. These represent a good tradeoff between hand-solderability and PCB board space.
* Over 90% efficiency with 5V input.
# Pin pitch will be 0.5mm or (preferably) larger.
* [http://au.element14.com/on-semiconductor/ncp3170adr2g/buck-3a-8soic/dp/1924872?Ntt=NCP3170 CHEAP] $1.73
* * Max load current without a heatsink is [http://www.codesrc.com/utilities/thermal-resistance.php?Tamb=70&Tj=150&r_jc=1&r_b=0&r_ha=87&efficiency=90&voltage=3.3&switching 2.75A]


==== Backup Option: Linear Regulator ====
== Power Supply ==
Everything except the SD Card and terminator will make use of the 5V supplied over the molex connector.


A [http://www.national.com/mpf/LM/LMS1585A.html LMS1585A] linear LDO regulator can be used to convert the 5v supply to the required 3.3v.
The SCSI terminator will use a 2.85 fixed-voltage verson of the LD1117 (LT1117) LDO Regulator. The datasheet provides examples of use for SCSI termination.
* 5A max current is more than enough
* Easy TO-220 mounting
* 1.3V dropout @ 3A allows for 5V supply to drop to 4.6V
* Significantly cheaper than a switching regulator
* Simpler than a switching regulator.
* At an expected peak current of 800mA, the regulator will dissipate: (5-3.3)*0.8 = 1.36W
* Thermal Resistance Junction-to-Case: 2.3C/W
* Max load current without a heatsink is insufficient at [http://www.codesrc.com/utilities/thermal-resistance.php?Tamb=70&Tj=150&r_jc=2.3&r_b=0&r_ha=65&efficiency=66&voltage=3.3 0.7A]


== In-circuit programming ==
The SD Card (approv 200mA max) will be serviced by a fixed 3.3V version of the same LD1117 LDO regulator.
UART0 pins, + active low program enable
power supply while programming ?
Custom header ?
Custom bootloader as well ?
Reuse for serial debug output ?


== Switches ==
== Switches ==
TERMPWR, terminator, parity, SCSI ID
* Parity and SCSI ID will be set via a set of DIP switches to ground.
* The micro GPIO port pull-ups will be enabled (this is the default anyway).
* Parity requires 1 bit, SCSI ID requires 3 bits, SCSI Terminator DISCNT requires 1 bit. (5-way DIP switch required)

Latest revision as of 02:27, 1 June 2013

Details for the circuit design of SCSI2SD.

Changes between V1 and V2

The First_reflow_soldering_attempt was a failure. As a result, the schematic is being improved to simplify construction.

Change of microcontroller footprint

The V1 incorrectly made use of a 10x10mm QFN68 0.5mm pitch footprint for the CY8C53 microcontroller, instead of the smaller 8x8mm QFN68. 8x8mm is seriously tiny, with a pitch of only 0.4mm. The TSSOP packages (0.635mm pitch) on the V1 boards had many solder bridges etc, and moving to an even finer pitch device would be well beyond my soldering ability.

The solution is to make use of the 100-pin TQFP versions of the microcontroller instead. The devices use a 0.5mm pitch, 25% larger than the QFN68 devices, and the same as the (incorrect) footprint on the V1 board.

Change of PHY

The V1 schematic made use of a typical bus arrangement to interface to the SCSI wires. SCSI signals were split into read and write paths, with the microcontroller using a signal to switch the bus between read or write mode. This arrangement uses minimal microcontroller pins (18 SCSI pins + 1 R/W signal), but additional interface IC's.

The V2 schematic will switch back to a much simpler arrangement whereby each SCSI signal is connected to the microcontroller twice - once for read, and another for write (via an inverting buffer). This arrangement is possible due to the additional I/Os available with the 100-pin QFP version of the microcontroller, and saves the cost/board space/soldering of 6 additional ICs. The PSoC5 supports configurable CMOS or LVTTL (SCSI-compatible) signal levels on all GPIO pins.

Removal of the switching regulator

Since the change of PHY has reduced the need for 3.3V power, it is now feasible to run the SD Card from a much simpler (cheaper) LDO linear regulator.

The CY8C53 micro will use the 5V supply instead (internally regulated to 1.8V anyway). Running at 5V is necessary for the PHY design of directly connecting the input SCSI signals. This micro allows some I/O pins to run at a lower voltage for interfacing directly to the SD card at 3.3V.

Use of a solder stencil

The 0.5mm pitch of the microcontroller will require the use of a stencil to limit the amount of solder paste applied. I applied way too much paste to the 0.635mm pitch devices on the V1 boards, and this caused many solder bridges.

The 0.5mm pitch will require a laser-cut stencil.

  1. Laser-cut 3mil mylar (plastic) stencils available from pololu for $25. Non-framed.
  2. Laser-cut 3.5mil kapton (plastic) stencils available from ohararp for $25. Non-framed.

Board specifications

  1. 0805 sized components will be used where applicable. These represent a good tradeoff between hand-solderability and PCB board space.
  2. Pin pitch will be 0.5mm or (preferably) larger.

Power Supply

Everything except the SD Card and terminator will make use of the 5V supplied over the molex connector.

The SCSI terminator will use a 2.85 fixed-voltage verson of the LD1117 (LT1117) LDO Regulator. The datasheet provides examples of use for SCSI termination.

The SD Card (approv 200mA max) will be serviced by a fixed 3.3V version of the same LD1117 LDO regulator.

Switches

  • Parity and SCSI ID will be set via a set of DIP switches to ground.
  • The micro GPIO port pull-ups will be enabled (this is the default anyway).
  • Parity requires 1 bit, SCSI ID requires 3 bits, SCSI Terminator DISCNT requires 1 bit. (5-way DIP switch required)