Difference between revisions of "Gpibgrok"

From sigrok
Jump to navigation Jump to search
Line 94: Line 94:
== Bill of materials ==
== Bill of materials ==


(work in progress)
{| border="0" style="background-color: #eeeeee; font-size: smaller" class="alternategrey sortable sigroktable"
|-
! align="left" | Description
! align="left" | Manufacturer
! align="left" | Part Number
! align="left" | Package
! align="left" | Quantity
! align="left" | Vendor
! align="left" | Price
 
|-
|| Generic Capacitor 100nF 10V || any ||  || 0603 || 5 ||  || $0.10
 
|-
|| Generic Capacitor 1 µF 10V || any ||  || 0603 || 2 ||  || $0.10
 
|-
|| Chip LED || Lite-On || LTST-C193TBKT-5A || 0603 || 1 || Digikey || $0.47
 
|-
|| SMT Micro USB Female right-angle bottom-mount connector type B || Molex || 473460001 || Receptacle || 1 || Newark || $0.52
 
|-
|| Connector, GPIB Sldr, Female || L-COM || CIB24S ||  || 1 || L-COM || $8.02
 
|-
|| Generic Resistor (0.0R) || any ||  || 0603 || 2 ||  || $0.10
 
|-
|| Generic Resistor (30) || any ||  || 0603 || 1 ||  || $0.10
 
|-
|| Common mode filter with ESD protection for USB 2.0 interface || STMicroelectronics || ECMF02-4CMX8 || QFN-8L || 1 || Arrow || $0.54


{| border="0" style="background-color: #eeeeee; font-size: smaller" class="alternategrey sortable sigroktable"
|-
|-
! align="left" | Qty
|| Octal Transceiver GPIB Control || Texas Instruments || SN75161BDW || SOIC || 1 || Arrow || $1.60
! align="left" | Device
! align="left" | Footprint
! align="left" | Value
! align="left" | Refdes
! align="left" | Digikey
! align="left" | Mouser
! align="left" | Comments


|-
|-
|| 1 || ST STM32F103C6T6A || LQFP-48 || ... || ... || [http://www.digikey.de/scripts/DKSearch/dksus.dll?Detail&itemSeq=115187891 4.54€] || ... || ...
|| LP2980-N Micropower 50-mA Ultra Low-Dropout Regulator in SOT-23 Package || Texas Instruments || LP2980IM5-3.3/NOPB || SOT-23-5 || 1 || Arrow || $0.43


|-
|-
|| 1 || TI SN75160B || ... || ... || ... || [http://www.digikey.de/product-detail/de/SN75160BDW/296-6844-5-ND/370216 2.33€] || ... || ...
|| Octal Transceiver GPIB Data bus || Texas Instruments || SN75160BDW || SOIC || 1 || Digikey || $2.18


|-
|-
|| 1 || TI SN75162B || ... || ... || ... || [http://www.digikey.de/scripts/DKSearch/dksus.dll?Detail&itemSeq=115187661 2.33€] || ... || ...
|| 32-bit MCU ARM Cortex-M0+, 64 KB Flash, 8 KB SRAM, 2 KB EEPROM, USB || STMicroelectronics || STM32L062K8T6 || LQFP32 || 1 || Arrow || $2.33  


|}
|}

Revision as of 20:13, 15 September 2016

This page documents some ideas and information for a GPIB-USBTMC hardware interface.

NOTE: This project is on hold currently, nobody is working on it.

Motivation

There are many ways to communicate with devices that have a GPIB port, and sigrok aims to support as many of them as possible (see IEEE-488). However in this day and age the only reasonable interface for this would have to use a USB device port, since USB host ports are so ubiquitous. The USB standards include a device class specifically made for test and measurement, called the USBTMC class.

Yet most of the GPIB-USB interfaces available don't use this device class; they typically use either a proprietary protocol or serial emulation. There is only one GPIB-USBTMC interface that we know of: the TEK-USB-444 from Tektronix, and it's ridiculously overpriced at around $740.

We think we can make a GPIB-USBTMC interface that is:

  • 100% free and open source, hardware and firmware/software
  • 100% standards-compliant
  • Considerably cheaper than anything else out there (less than $50)

In addition, since we'd be making essentially a "server-side" i.e. USB device-side implementation of the USBTMC protocol, this code would be reusable in projects such as Das Oszi.

Hardware design

  • STM32L0 ARM Cortex M0
    • Built-in FS USB with crystaless operation
    • Compatible with libopencm3
    • 32 pin LQFP keeps size low and assembly easy
  • Specialty Trancievers
    • TI still makes the SN75160 (data) and SN75161 (handshake)
    • High current drive required for logic lines according to GPIB standard
    • Directional bundling of pins based on protocol simplfies firmware
  • 2 Layer PCB to keep cost low
  • Designed to fit in L-COM housing for CIB24S GPIB connector
    • Saves effort on custom enclosure
  • Current design hosted at Upverter

Firmware

This is more of a TODO list at the moment:

  • Start with libopencm3
    • Add new class for USB TMC
  • GPIB
    • Implement functions
      • Serial poll
      • Write
      • Read
      • Reset
      • Local lockout
    • Monitor and handle SRQs
  • Commands
    • All data is just passed thru from PC to GPIB device and back, parsing of SCPI or other protocols is not required in firmware
  • Firmware update
    • Use the DFU bootloader in libopencm3
    • Modify to check register for boot flag instead of hardware pin
    • Some special command in USB TMC can set to bootloader mode and reset processor, then when DFU is done, set flag back and boot to main

Components

GPIB connectors

GPIB protocol chips

(pretty much all of them are no longer available, or horribly expensive, or hard to get, or a combination thereof)

GPIB transceiver chips

Bill of materials

Description Manufacturer Part Number Package Quantity Vendor Price
Generic Capacitor 100nF 10V any 0603 5 $0.10
Generic Capacitor 1 µF 10V any 0603 2 $0.10
Chip LED Lite-On LTST-C193TBKT-5A 0603 1 Digikey $0.47
SMT Micro USB Female right-angle bottom-mount connector type B Molex 473460001 Receptacle 1 Newark $0.52
Connector, GPIB Sldr, Female L-COM CIB24S 1 L-COM $8.02
Generic Resistor (0.0R) any 0603 2 $0.10
Generic Resistor (30) any 0603 1 $0.10
Common mode filter with ESD protection for USB 2.0 interface STMicroelectronics ECMF02-4CMX8 QFN-8L 1 Arrow $0.54
Octal Transceiver GPIB Control Texas Instruments SN75161BDW SOIC 1 Arrow $1.60
LP2980-N Micropower 50-mA Ultra Low-Dropout Regulator in SOT-23 Package Texas Instruments LP2980IM5-3.3/NOPB SOT-23-5 1 Arrow $0.43
Octal Transceiver GPIB Data bus Texas Instruments SN75160BDW SOIC 1 Digikey $2.18
32-bit MCU ARM Cortex-M0+, 64 KB Flash, 8 KB SRAM, 2 KB EEPROM, USB STMicroelectronics STM32L062K8T6 LQFP32 1 Arrow $2.33

Resources

Volunteers

Please edit this section with your name and (public) contact details if you are interested in developing this.

  • User:Ivan747 (same nick on IRC), experience in hardware, low level firmware (but not USB). Willing to participate with the support from someone experienced in USB protocols on any kind of ARM device. Contact: ivan747[at]users.sourceforge.net.