On Sun, 3 Nov 2019, John Dammeyer wrote:
Date: Sun, 3 Nov 2019 08:22:44 -0800
From: John Dammeyer <[email protected]>
Reply-To: "Enhanced Machine Controller (EMC)"
<[email protected]>
To: "'Enhanced Machine Controller (EMC)'" <[email protected]>
Subject: [Emc-users] MESA 7i92H changes
Currently my MESA 792H is configured with DB25-14 and DB25-1616 set as Spindle
PWM and Spindle Direction on the P2 connector using the MESA 7i92_C11Gx2D.pin
file. I don't have the hardware set up yet for step/dir on the P1 connector to
access StepGen #5.
1 0 IOPort None
14 1 IOPort PWM 0 PWM (Out)
2 2 IOPort StepGen 0 Step/Table1 (Out)
15 3 IOPort None
3 4 IOPort StepGen 0 Dir/Table2 (Out)
16 5 IOPort None
Is it possible to create a version of the FPGA configuration that lets me use
the HAL file to set P2 pins 1,3 to say StepGen #5 _OR_ PWM. Or if I want
StepGen #5 on P1 and just I/O on P2 pins 2,3 will I need something other than
the MESA 7i92_C11Gx2D.pin file depending on whether I want PWM or StepGen?
Thanks
John
You can make the secondary connector (P1) be just I/O by turning off its
stepgens/pwmgens/encoders (by setting the number of each that are enabled)
Also depending on how the PWM is used, you can generate something close
to PWM with a stepgen by using PDM. For example if you set the output
step pulse width to say 100 usec, setting the steprate from 0 to 10000 Hz
gives you 0 to 100% duty cycle PDM
All that said, you can change firmware easily so perhaps having a script would
make sense:
mesaflash --device 7i92 --addr youripaddr --write newbitfile
mesaflash --device 7i92 --addr youripaddr --reload
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users
Peter Wallace
Mesa Electronics
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users