mesa 7i73 4x8 keypad problems on KEY8 input

More
01 May 2025 16:35 #327438 by PasstScho
Hello,
I'm helping some friends to use a 7i73 connected to 7i96s for a CNC.
7i73 is using Firmware 14 (read from linuxcnc) with a custom adapter board to make it easier to connect a panel with switches and mpg. 7i73 is in 4x8 mode with analog in and no lcd (jumpers set accordingly & sserial=10000...).
The adapter board doesn't do much besides adapting from IDC Connectors to screw terminals.
In general the system works fine and the keypad also works with linuxcnc - buuuut all keys connected to KEY8(in) don't work. Other keypad-switches are working fine.
Cabling was done with 0,5mm² and it is quite a mess. My first guess was the big and long cables would have too much capacitance and the 10k pullups couldn't pull the line back up in time.
Bridging with a short cable made it work, so card and general set-up seems to be ok.
Replacing the 10k pullup resistors with 1k did NOT do the trick!
After some Scope measurements it actually looks like the KEY8 inputs will be measured far to soon after enabling e.g. the KEY4 output line. The outputs will be (open drain) low for ~30µs. In the scope the difference in the signals will be very little and only in the first few µs.
So the conclusion is that the KEY8 inputs will be sampled early after setting the row outputs. With my long cables and many connections it looks like this will make it unreliable to get the right switch input.
Shorter cabling is not really an option. And in case the signals are really sampled that early I'd rather like to somehow get that fixed in the firmware.
I counter-checked with another 7i73 board from another batch and did see the same result.

Attached pictures show the testing setup. Scope screenshots are from the video:

Scope cabling is not much better than the key cabling but it should still show the most important...
Yellow is KEY4 (open drain output with added pullup to see measurement moment without button pressed).
Blue is KEY8 input with pullup (not sure if original 10k or already changed to 1k).
The video is showing the difference of:
- a bad signal, "shorted" via switch that will not be seen in linuxcnc meter
- a "good" signal seen in linuxcnc meter, done by bridged signals on adapter board (very end of video)

Can anybody confirm this?
Could it be a problem in Firmware V14 that only KEY8 is sampled early?
What would be the solution for this problem?

Thanks for your help!
Alex

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

More
01 May 2025 17:08 #327445 by PCW
I'll take a look. Seems like the scan sequence needs to be changed
so the sample is done at the beginning of the next cycle so the full
period is available for settling time.

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

More
01 May 2025 17:52 #327453 by PasstScho
Replied by PasstScho on topic mesa 7i73 4x8 keypad problems on KEY8 input
thank you for the quick response!
I am not sure what you mean by beginning of the next cycle.
If I remember right, the samling of rows is done with 3.7kHz scan frequency and each row is measured for ~30µs.
From my understanding the inputs should be sampled at the end of each cycle so here ~25µs after the output is set to low. So right before it is set back to hi-z.

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

More
01 May 2025 22:00 - 02 May 2025 00:08 #327470 by PCW
7I73 version 16 firmware

Increases the time between setting the row outputs
and sampling the column inputs( for longer cables etc)

Firmware:

 

File Attachment:

File Name: 7i73.zip
File Size:8 KB


SSerial update script:

 

File Attachment:

File Name: updatess-eth.zip
File Size:1 KB



 
Attachments:
Last edit: 02 May 2025 00:08 by PCW. Reason: clarify
The following user(s) said Thank You: andypugh, besriworld

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

More
05 May 2025 22:42 #327796 by PasstScho
Replied by PasstScho on topic mesa 7i73 4x8 keypad problems on KEY8 input
Today I tried the updating progress and V16 was loaded.
Unfortunately the key matrix now doesn't seem to work anymore at all. I didn't have time to check with the scope but it looks like there is sth. general wrong now?
I checked with the meters in linuxcnc and the buttons that worked before aren't recognized anymore, as well as the buttons that didn't work before.
I am not sure if i measured that right but I checked with linuxcnc scope and I did not get a trigger on a changed keycode of the 7i73.
I counter checked to check general device integrity by checking analog values - they are still transmitted.

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

More
06 May 2025 00:21 #327808 by PCW
Sorry about that, I'll take a look tomorrow.

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

More
06 May 2025 21:50 #327899 by PasstScho
Replied by PasstScho on topic mesa 7i73 4x8 keypad problems on KEY8 input
No problem - thank you!

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

More
07 May 2025 00:53 - 07 May 2025 01:14 #327917 by PCW
Unfortunately its a bit more complex, the remote update seems to not work properly
with Rev 14 or earlier base part and Rev 15 and newer user parts, so until
this can be figured out, cards Rev 14 or earlier would need to be updated
to Rev 16 with  a PIC programmer. I will try and figure this out tomorrow
but its a bit subtle...

You can get back the original functionality (with key 8 long wiring bug)
by remote updating to the R14 version
 
Last edit: 07 May 2025 01:14 by PCW.
The following user(s) said Thank You: tommylight

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

More
07 May 2025 19:52 #327956 by PasstScho
Replied by PasstScho on topic mesa 7i73 4x8 keypad problems on KEY8 input
Oh, interesting.
So do I understand right - it should work when I find a PIC programmer that can program it? I guess that should be doable.
Is there a pinout for the programmer pins?

best regards & thanks for your support,
Alex

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

More
07 May 2025 21:19 #327960 by PCW
Yes,

programmer pinout is:

1  VPP
2  +3.3V
3  PGD
4  PGC
5  GND

Full (base and user part) R16 file is:

 

File Attachment:

File Name: 7i73r16.zip
File Size:24 KB


Sorry I could not get the remote update working with
the older base part. I will look into this when I have more time.
 
Attachments:
The following user(s) said Thank You: COFHAL

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

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