7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB

More
22 Mar 2025 19:05 - 22 Mar 2025 19:14 #324577 by PCW
For the parallel port output pins 4 and 5, you would first check
the pinout as  shown previously, this shows that DB25 pin 4 is GPIO 47
and that DB25 pin 5 is GPIO 49

PIN                             GPIO
P1-01/DB25-01          41   IOPort             
P1-02/DB25-14          42   IOPort          
P1-03/DB25-02          43   IOPort       
P1-04/DB25-15          44   IOPort     
P1-05/DB25-03          45   IOPort 
P1-06/DB25-16          46   IOPort     
P1-07/DB25-04          47   IOPort         
P1-08/DB25-17          48   IOPort         
P1-09/DB25-05          49   IOPort    


so

net spindle-cw      => parport.0.pin-05-out
net spindle-ccw     => parport.0.pin-04-out

become

net spindle-cw      => hm2_7i95.0.gpio.049.out
net spindle-ccw     => hm2_7i95.0.gpio.047.out

But there is one more step needed, because GPIO bits default to inputs at startup,
you must set these GPIO pins to output mode:

setp hm2_7i96s.0.gpio.049.is_output true
setp hm2_7i96s.0.gpio.047.is_output true

As far as the connections below  go, they are no longer relevant,
because both the PWMgen generation and encoder counting would likely
be done in hardware:

net spindle-pwm     => parport.0.pin-01-out

net spindle-phase-a <= parport.0.pin-10-in
net spindle-index   <= parport.0.pin-12-in

Note that this will only work on stock 7i95t firmware or 7i95t_5abob firmware
if you disable the stepgens on DB25 pins 4,5 and on.



 
Last edit: 22 Mar 2025 19:14 by PCW.

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

  • Nathan40
  • Away
  • Senior Member
  • Senior Member
More
23 Mar 2025 10:35 - 23 Mar 2025 10:38 #324639 by Nathan40
Hi

a. Please guide as how this can be done. Do we need a separate bit file for this. If yes, please share.
-Note that this will only work on stock 7i95t firmware or 7i95t_5abob firmware
-if you disable the stepgens on DB25 pins 4,5 and on.


b. Also how can I generate pwmgen on Pin 1 of the DB25 BoB with 7i95t. Please share instructions / commands.

 
Last edit: 23 Mar 2025 10:38 by Nathan40.

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

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