On 2/22/2018 9:41 PM, Richard Thornton wrote: > Thanks Charles, > > Just looking at the commit. > > The meat of it is lines 113-192. > > So you have created two DB25's with just GPIO_0?
There are two DB25's connected to the DE0-Nano's GIPO_0 header, both of which will support a G540. This part is basically a copy of the Mesa G540 configuration for th 5i25. There are two more DB25's with just I/O pins connected to the DE0-Nano's GPIO_1 header. You should probably use the first set of DB25 pins on GPIO_0: https://github.com/machinekit/mksocfpga/blob/master/HW/hm2/config/DE0_Nano_SoC_DB25/PIN_G540_G540_GPIO_GPIO.vhd#L113-L129 > GPIO_1 is unused, or its pure GPIO (this is what disabled the "special > function" I/O looks like)? Yes, GPIO_1 is just plain I/O pins in hostmot2, no special functions. > Line 112, 133, 154 shows DB25-P2, three P2? > Line 175 shows DB25-P3 Line 133 should be P3. P2 and P3 are the DB25 headers on the DE0-Nano_DB25 breakout board. > Line 115, 118, 119, 122, 124 are StepGenStepPin, five of those? > Line 117, 121, 123, 125 are StepGenDirPin Yes, I just copied the Mesa setup. You don't have to use the pins as stepper driver outputs, they can be used as GPIO instead. > With this config which pins would I use for GPIO, GPIO_1 (LCD, relay, > VFD, pendant, limits, T.O.P)? Whichever pins you need. Any pin can be an I/O pin. > Line 114 is PWMAOutPin, what is that to connect to Pulse Width > Modulation right, maybe for a VFD for the spindle? Yes. > Because I only need four steppers and one encoder should I just make > lines 134-150 the same as lines 155-171? You shouldn't have to make any changes to the VHDL file or FPGA bit file, just setup the hostmot2 driver properly in HAL. > Would you know of a reference guide that shows the format, syntax and > what the special function are in these vhd files? There's no real documentation other than the VHDL source. I asked Peter if he has a utility for creating the PIN files since there are so many of them and he just creates them by hand. -- Charles Steinkuehler [email protected] -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
