Mesa 7i93 firmware for 3 axes 2PWM and 38GPIO
- aoz
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 2
06 Jul 2019 17:52 #138752
by aoz
Mesa 7i93 firmware for 3 axes 2PWM and 38GPIO was created 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
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
Attachments:
The following user(s) said Thank You: tommylight, pl7i92
Please Log in or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
Less
More
- Posts: 1890
- Thank you received: 356
07 Jul 2019 06:54 #138773
by pl7i92
Replied by pl7i92 on topic Mesa 7i93 firmware for 3 axes 2PWM and 38GPIO
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
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23310
- Thank you received: 4858
12 Jul 2019 12:05 #139164
by andypugh
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
Replied by andypugh on topic Mesa 7i93 firmware for 3 axes 2PWM and 38GPIO
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
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.
- aoz
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 2
14 Jul 2019 16:13 #139318
by aoz
Replied by aoz on topic Mesa 7i93 firmware for 3 axes 2PWM and 38GPIO
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.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17867
- Thank you received: 4776
14 Jul 2019 16:26 - 14 Jul 2019 16:27 #139320
by PCW
Replied by PCW on topic Mesa 7i93 firmware for 3 axes 2PWM and 38GPIO
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.
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: PCW, jmelson
Time to create page: 0.066 seconds