Hi Andy,

> -----Original Message-----
> From: andy pugh [mailto:bodge...@gmail.com]
> Sent: September-20-19 1:58 AM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] MESA 7i92H Power
> 
> On Fri, 20 Sep 2019 at 07:03, John Dammeyer <jo...@autoartisans.com>
> wrote:
> 
> >
> > However the problem is that under MACH3 I can select which pin is the
> PWM
> > and which pin is the direction and I can't do that with the 7i92H.
> >
> 
> It seems that the Smoothstepper has a utility that can map functions to
> individual pins, though pins are dedicated in direction (with some
> bidirectional)
> 
> On the Mesa cards the IO pins can all be configured as input or output, but
> this is all set by the firmware rather than configured by a utility. (Or
> maybe the Smoothstepper utility creates a firmware on the fly?)
> 
> To re-allocate pins on the Mesa card you need to create a different bit
> file. (so, once again, the LinuxCNC option is much more configurable, but
> much more difficult to configure...)
> 
> It is possible to create custom bitfiles, I have done it, but it's not
> trivial and needs utilities from the FPGA manufacturer. (Xylinx)
> 
> The pragmatic answer might be a couple of D-sub headers and some
> point-to-point wiring to make a pin-swapper.
> 
> Which pin do you want the PWM to be on? You might find a firmware to suit
> by grep-ing (or using find-in-files in Geany or Notepad++)  the .vhd files.

I may not have explained it well in the previous posting.  My apologies.
Currently the allocation for the PWM section of the FPGA can be mapped (or just 
used as a output) onto the DB-25 Pin 14 which I want for SPINDLE RPM.
IO Connections for P2
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir
14      1   IOPort       PWM              0        PWM             (Out)

Pin 16 is simply set as an output and I'd map it as the direction for the 
Spindle r if I used the R990x2D pin file it's already set that way.
And in 7i92_C11Gx2D.pin
16      5   IOPort       None 
Or in 7i92_R990x2D.pin
16      5   IOPort       PWM              0        Dir             (Out)

However, the PWM module from PMDX is hard wired for PWM on pin 16 and PWM 
Direction on pin 14.  I suspect in the source code for the FPGA this is a two 
line change.  And that's all I really need done.

Thanks
John


> 
> I did once consider the idea of an Amazon VM that would build a custom
> bitfile on-demand (and got s far as setting up an instance that could build
> bitfiles, then stalled at the point where a web interface was needed)
> 
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is designed
> for the especial use of mechanical geniuses, daredevils and lunatics."
> � George Fitch, Atlanta Constitution Newspaper, 1916
> 
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to