Difference between revisions of "DIGIO32-I2C"

From Land Boards Wiki
Jump to navigation Jump to search
Line 60: Line 60:
 
=== Card Test Procedure ===
 
=== Card Test Procedure ===
  
* Connect USB-C to Test Station
+
* Power up Test Station/UUT
* Run puTTY on PC
 
** Select serial port
 
*** Find COMx using Device Manager
 
** 9600 baud
 
  
 
==== Program EEPROM ====
 
==== Program EEPROM ====
  
* Run [https://github.com/land-boards/lb-Arduino-Code/tree/master/LBCards/ODAS/ODASTESTER ODASTESTER] Software
+
* Some UUTs have Personality EEPROMs
** Type E to select EEPROM menu
+
* Run
** Type W to write EEPROM
+
 
** Type 5 to select DIGIO32-I2C card
+
<pre>
** Type X to exit to top level menu
+
chdir "/lbcards/ODAS_EEPROM"
 +
load "ODASEEPROM.bas"
 +
run
 +
</pre>
 +
 
 +
* If the UUT EEPROM is already programmed, the result is:
 +
 
 +
<pre>
 +
Found device at 0x50
 +
Personality EEPROM contents
 +
Signature = ODAS
 +
Version = 1
 +
Rsvd = 0
 +
NumAtoms = 2
 +
eeplen = 96
 +
uuid = 0000000000000000
 +
Product ID = 6 (DIGIO32-I2C)
 +
vslen = 32
 +
pslen = 32
 +
Vendor String = LAND-BOARDS.COM
 +
Product String = DIGIO32-I2C
 +
Re-write (Y/N)?
 +
</pre>
  
 
==== Bounce LED Test ====
 
==== Bounce LED Test ====
Line 78: Line 96:
 
[[FILE:DIGIO32-I2C_P1994_720px.jpg]]
 
[[FILE:DIGIO32-I2C_P1994_720px.jpg]]
  
* Type C to select card test
+
* Cable DB-37 to [[LED-32]] card
* Type B to bounce LED across the UUT card
+
* Type
 +
 
 +
<pre>
 +
chdir "/lbcards/GPIO32"
 +
load "DIGIO32I2C-01.bas"
 +
run
 +
</pre>
 +
 
 
* Should see the LEDs go around the [[LED-32]] card
 
* Should see the LEDs go around the [[LED-32]] card
 
* Hit any key to stop (after finishing rotation)
 
* Hit any key to stop (after finishing rotation)

Revision as of 19:06, 19 June 2022

Tindie-mediums.png

DIGIO32-I2C-P232-720px.jpg

Features

  • 32-bit Digital I/O
  • 24LC024 ODAS Personality EEPROM
    • pid = 6
    • Write Enable jumper protects EEPROM against accidental damage
  • I/O Connector is inexpensive/standard DB-37 Female
  • I2C Interface
    • Daisy-chain I2C connector
    • I2C Termination jumpers for end of I2C chain
    • I2C Address select jumper (2 addresses - can support up to 4 cards)
  • Power Options
    • Supports 3.3V or 5V signal levels
    • Fuse protected power output on DB-37
  • Power connector (not required for minimal loads
  • ODAS form factor (width is 95 mm)
  • 6-32 Mounting holes

Connectors

DB-37 Female Pinout

DB37Pinout.PNG

Schematic

Testing

  • There are two card tests
    • Bounce LED test
      • Good for visual verification/debugging
      • Only tests outputs from UUT
    • Card to card test
      • More flexible/faster test
      • Tests both inputs/outputs from/to the card

Cards

Card Test Procedure

  • Power up Test Station/UUT

Program EEPROM

  • Some UUTs have Personality EEPROMs
  • Run
chdir "/lbcards/ODAS_EEPROM"
load "ODASEEPROM.bas"
run
  • If the UUT EEPROM is already programmed, the result is:
Found device at 0x50
Personality EEPROM contents
 Signature = ODAS
 Version = 1
 Rsvd = 0
 NumAtoms = 2
 eeplen = 96
 uuid = 0000000000000000
 Product ID = 6 (DIGIO32-I2C)
 vslen = 32
 pslen = 32
 Vendor String = LAND-BOARDS.COM
 Product String = DIGIO32-I2C
Re-write (Y/N)?

Bounce LED Test

DIGIO32-I2C P1994 720px.jpg

  • Cable DB-37 to LED-32 card
  • Type
chdir "/lbcards/GPIO32"
load "DIGIO32I2C-01.bas"
run
  • Should see the LEDs go around the LED-32 card
  • Hit any key to stop (after finishing rotation)

Card-to-Card Test

DIGIO32-I2C P1999 720px.jpg

  • Can be used in place of the Bounce LED test
  • (2) DB37RIBBON cards
  • Cables to connect two DB37RIBBON cards
  • Type C to select card test
  • Type T to test the card
  • puTTY will display test pass/fail
  • Can set L for loop test then T to run test
  • Mark bottom TEST block on bottom of card
Code Header
  //////////////////////////////////////////////////////////////////////////////////////
  // uint8_t testDigio32Card() - Test the DIGIO32 card.
  // The Test Station and the UUT both are DIGIO32 cards.
  // Cable from UUT DB-37 connector to the DIGIO32 card DB-37 in the Test Station.
  // The DIGIO32 internal to the Test Station is set to all inputs with pull-ups.
  // The DIGIO32 that is the UUT is set up to all outputs.
  //////////////////////////////////////////////////////////////////////////////////////

Drivers

Assembly Sheet