7i96 - P1 CONNECTOR - 15 mA for sink - it is not good

More
20 Sep 2022 17:49 #252419 by zz912
Hello,
I have problem. I made breaking for P1 EXPANSION CONNECTOR. I need only inputs.

 
This is schema: 


This dont working. First problem was rezistor R2. I clamped it. But after that it still didn't work well. So I increased the current for the diode on the optocoupler. After that it started working properly.
 
 

When I showed off these modifications on the CZ discussion forum, I was warned that something was wrong when I needed such a large current in the optocoupler.
forum.strojirenstvi.cz/viewtopic.php?t=42356

So I disconnected the optocoupler and tried connecting pin P1 to ground via an ammeter. There should be a 4k7 Pull up resistor, so I should measure about 1 milliamp. However, I measured 15 milliamps!!!

I tried this with LinuxCNC turned off and on, to rule out that the pin is configured as OUTPUT.
[code]zdenek@CNC:~$ mesaflash --device 7i96 --addr 10.10.10.10 --readhmid
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA7I96
  FPGA Size: 9 KGates
  FPGA Pins: 144
  Number of IO Ports: 3
  Width of one I/O port: 17
  Clock Low frequency: 100.0000 MHz
  Clock High frequency: 200.0000 MHz
  IDROM Type: 3
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256

Modules in configuration:

  Module: DPLL
  There are 1 of DPLL in configuration
  Version: 0
  Registers: 7
  BaseAddress: 7000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: WatchDog
  There are 1 of WatchDog in configuration
  Version: 0
  Registers: 3
  BaseAddress: 0C00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: IOPort
  There are 3 of IOPort in configuration
  Version: 0
  Registers: 5
  BaseAddress: 1000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: PWM
  There are 1 of PWM in configuration
  Version: 0
  Registers: 5
  BaseAddress: 4100
  ClockFrequency: 200.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: StepGen
  There are 4 of StepGen in configuration
  Version: 2
  Registers: 10
  BaseAddress: 2000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: QCount
  There are 1 of QCount in configuration
  Version: 2
  Registers: 5
  BaseAddress: 3000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: SSerial
  There are 1 of SSerial in configuration
  Version: 0
  Registers: 6
  BaseAddress: 5B00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 64 bytes

  Module: SSR
  There are 1 of SSR in configuration
  Version: 0
  Registers: 2
  BaseAddress: 7D00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: LED
  There are 1 of LED in configuration
  Version: 0
  Registers: 1
  BaseAddress: 0200
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for TB3 -> 7I96_0
Pin#                  I/O   Pri. func    Sec. func        Chan     Sec. Pin func   Sec. Pin Dir

TB3-1                   0   IOPort       None           
TB3-2                   1   IOPort       None           
TB3-3                   2   IOPort       None           
TB3-4                   3   IOPort       None           
TB3-5                   4   IOPort       None           
TB3-6                   5   IOPort       None           
TB3-7                   6   IOPort       None           
TB3-8                   7   IOPort       None           
TB3-9                   8   IOPort       None           
TB3-10                  9   IOPort       None           
TB3-11                 10   IOPort       None           
TB3-13,14              11   IOPort       SSR              0        Out-00          (Out)
TB3-15,16              12   IOPort       SSR              0        Out-01          (Out)
TB3-17,18              13   IOPort       SSR              0        Out-02          (Out)
TB3-19,20              14   IOPort       SSR              0        Out-03          (Out)
TB3-21,22              15   IOPort       SSR              0        Out-04          (Out)
TB3-23,24              16   IOPort       SSR              0        Out-05          (Out)

IO Connections for TB1/TB2 -> 7I96_1
Pin#                  I/O   Pri. func    Sec. func        Chan     Sec. Pin func   Sec. Pin Dir

TB1-2,3                17   IOPort       StepGen          0        Step/Table1     (Out)
TB1-4,5                18   IOPort       StepGen          0        Dir/Table2      (Out)
TB1-8,9                19   IOPort       StepGen          1        Step/Table1     (Out)
TB1-10,11              20   IOPort       StepGen          1        Dir/Table2      (Out)
TB1-14,15              21   IOPort       StepGen          2        Step/Table1     (Out)
TB1-16,17              22   IOPort       StepGen          2        Dir/Table2      (Out)
TB1-20,21              23   IOPort       StepGen          3        Step/Table1     (Out)
TB1-22,23              24   IOPort       StepGen          3        Dir/Table2      (Out)
TB2-2,3                25   IOPort       PWM              0        PWM             (Out)
TB2-4,5                26   IOPort       PWM              0        Dir             (Out)
TB2-7,8                27   IOPort       QCount           0        Quad-A          (In)
TB2-10,11              28   IOPort       QCount           0        Quad-B          (In)
TB2-13,14              29   IOPort       QCount           0        Quad-IDX        (In)
TB2-16,17              30   IOPort       SSerial          0        RXData0         (In)
TB2-18,19              31   IOPort       SSerial          0        TXData0         (Out)
Internal-TXEn          32   IOPort       SSerial          0        TXEn0           (Out)
Internal               33   IOPort       SSR              0        AC Ref          (Out)

IO Connections for P1 -> 7I96_2
Pin#                  I/O   Pri. func    Sec. func        Chan     Sec. Pin func   Sec. Pin Dir

P1-01/DB25-01          34   IOPort       None           
P1-02/DB25-14          35   IOPort       None           
P1-03/DB25-02          36   IOPort       None           
P1-04/DB25-15          37   IOPort       None           
P1-05/DB25-03          38   IOPort       None           
P1-06/DB25-16          39   IOPort       None           
P1-07/DB25-04          40   IOPort       None           
P1-08/DB25-17          41   IOPort       None           
P1-09/DB25-05          42   IOPort       None           
P1-11/DB25-06          43   IOPort       None           
P1-13/DB25-07          44   IOPort       None           
P1-15/DB25-08          45   IOPort       None           
P1-17/DB25-09          46   IOPort       None           
P1-19/DB25-10          47   IOPort       None           
P1-21/DB25-11          48   IOPort       None           
P1-23/DB25-12          49   IOPort       None           
P1-25/DB25-13          50   IOPort       None
[/code]

File Attachment:
 Can't think of what could be wrong?
Attachments:

Please Log in or Create an account to join the conversation.

More
20 Sep 2022 18:12 #252421 by PCW
If the 7I96S GPIO on P1 are not all high when unconnected
and with default firmware, you likely have damaged I/O pins.

Please Log in or Create an account to join the conversation.

More
20 Sep 2022 18:21 #252423 by zz912
I have problem with old 7i96. I have all pins HIGH in defalut. All working (in picture is not default state), but I must sink it by 15 mA. I tried change firmware, and this not help.

I made same test with 7i96S and there I measured 1mA.

Please Log in or Create an account to join the conversation.

More
20 Sep 2022 18:32 #252424 by zz912
Sinking old 7i96 is needed 15mA.Sinking new 7i96S is needed 1mA.I measured with only connected power.
 
Attachments:

Please Log in or Create an account to join the conversation.

More
20 Sep 2022 18:33 #252425 by PCW
Pretty strange, does sound like damage.
Do all pins have 15 mA sink current?

Please Log in or Create an account to join the conversation.

More
20 Sep 2022 18:47 #252429 by zz912
I thought all the pins were the same. So I did all the measurements on the IO50 pin on the 7i96 card. I have now taken measurements on all pins on both mesa.

All pins need 1mA for sink, only pin IO50 on mesa 7i96 needs 15mA. Pin IO50 on the 7i96S needs 1mA.

Please Log in or Create an account to join the conversation.

More
20 Sep 2022 18:57 #252430 by zz912
I found another old 7i96 and it need 16mA for sinking IO50.
 
Attachments:

Please Log in or Create an account to join the conversation.

More
20 Sep 2022 18:59 - 20 Sep 2022 19:01 #252431 by PCW
Might be an assembly error on some 7I96's (pullups on 34..49 are done with resistor networks but I/O50s pullup is a separate resistor)
Last edit: 20 Sep 2022 19:01 by PCW.

Please Log in or Create an account to join the conversation.

More
20 Sep 2022 19:05 #252432 by zz912
What is the designation of that resistor?

Please Log in or Create an account to join the conversation.

More
20 Sep 2022 19:11 #252433 by PCW
I'll have to look at the schematic at work a bit later today

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.293 seconds
Powered by Kunena Forum