Mesa 7i93 firmware for 3 axes 2PWM and 38GPIO

More
06 Jul 2019 17:52 #138752 by aoz
Hello community

Had specific purpose to have as many GPIO on 7i93 as possible after 3 axes and 2PWM left. So build custom firmware for 7i93 and it has:
3 Axes - Step/DIR
2 PWM
all the rest - 38 are GPIO

File Attachment:

File Name: 7i93_3AXES..._AoZ.zip
File Size:58 KB
Attachments:
The following user(s) said Thank You: tommylight, pl7i92

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

More
07 Jul 2019 06:54 #138773 by pl7i92
can you please mail this to mesa so it can be put into the download

maybe other people are faced with the same problem

and WHY did you change it what is your special need
24 Gpio free available shoudt be enoph for standard users

as you killed the 2 encoders
so no return from the spindle as encoder internal 4Mhz
the Gpio are mutch slower then the original setup

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

More
12 Jul 2019 12:05 #139164 by andypugh

Hello community

Had specific purpose to have as many GPIO on 7i93 as possible after 3 axes and 2PWM left. So build custom firmware for 7i93 and it has:
3 Axes - Step/DIR
2 PWM
all the rest - 38 are GPIO

File Attachment:

File Name: 7i93_3AXES..._AoZ.zip
File Size:58 KB


Is this different from disabling unwanted encoders / stepgens in the HAL file?

"num_encoders=0", for example, will make all the encoder pins revert to GPIO.

linuxcnc.org/docs/2.7/html/man/man9/host...ml#config%20modparam

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

More
14 Jul 2019 16:13 #139318 by aoz
Honestly I didn't tried to manipulate with HAL settings trying to disable unwanted encoders furthermore querying firmware it reports encoders being enabled in previous firmware so I hardcoded then in modified version as GPIOs. Also are you sure that by setting encoders to 0 will they become available as GPIOs?

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

More
14 Jul 2019 16:26 - 14 Jul 2019 16:27 #139320 by PCW
Yes, if you disable the special feature (encoder, stepgen, PWM etc) for a pin,
it always reverts to GPIO.

The limitation is that the driver can only specify the number of enabled instances.
For example, setting num_encoders to 3 enables encoders 0,1,2 on whatever pins they
are assigned in the firmware and any pins for encoders 3,4,5 etc revert to GPIO.

So depending on the firmwares ordering of encoder (stepgen pwmgen etc) instances
you may not be able to free up the pins you need

The firmware does allow pin by pin selection of GPIO vs special function but the driver
adopts a simple selection scheme to avoid overly complex command line options.
Last edit: 14 Jul 2019 16:27 by PCW.

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

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