> On Thu, 28 May 2009, Terry wrote: > >> Date: Thu, 28 May 2009 20:17:23 -0700 >> From: Terry <[email protected]> >> To: [email protected] >> Subject: [Emc-users] Mesa-Hm2 >> >> >> Hi, >> >> As I was looking through the SVST8_4IM2.pin file I saw >> that the connections for P2 are almost the same but P3 >> is alot different than the origional mi520. >> >> Do I make a new hal.io file for my machine and that >> will override the pinout that is listed for P3 in the SVST8_4IM2.bit >> file? > > HostMot2 is different from the original HostMot configuration in that all > FPGA > I/O pins are GPIO unless special functions (like encoders or PWM > generators) > are enabled. > > The original HostMot had only 4 axis of PWM and encoder signals on P2, > leaving > P3 and P4 as GPIO only. > > The SVST8_4IM2 HostMot2 configuration follows the same pinout for encoder > and > PWM connections as the original HostMot but adds the capability of 4 more > encoders and PWM generator on P3. It also adds and index mask inputs and 4 > hardware step generators on P4. > > Because these special functions are only enabled if requested, P3 can be > left > as GPIO just like the original HostMot configuration. > > For example if you invoke the HostMot2 driver with : > > loadrt hm2_pci config="firmware=hm2/5i20/SVST8_4IM2.BIT num_encoders=4 > num_pwmgens=4 num_stepgens=0" > > You will get a configuration that matches the pinout of the old HostMot > firmware, (encoders and PWM generators 0 through 3 enabled on P2, but P3 > and > P4 left as GPIO) > > Note the there are further HAL file changes needed as the old HostMot > driver > hardwired the GPIO pins as 8 out and 16 in on P3 and P4 to match the 7I37 > pinout. The HostMot2 driver needs to have the pin directions setup to suit > the > daughtercard/application Note also that the actual GPIO numbers will change. Since the hm2 firmware allows all pins to be used as GPIO, the first connector (P2 I think) is GPIO 0-23, then 24-47 on P3, then 48-71 on P4. The GPIO number for a particular pin doesn't change when you enable or disable advanced functions, so the first I/O on P3 is gpio.24. Another artifact is that the inputs and outputs share the same set of numbers (ie, GPIO.24 is the first one on P3, regardless of whether it's set for input or output).
I'm working on a converter to turn 5i20 configs into hm2_5i20 configs, but it's going pretty slowly. I'm not sure when (or if) it will be done. - Steve > >> I would then call this new .io file from the .ini file? >> A little direction here and I wont bother you guys >> anymore.The last statement was probably inaccurate. >> >> Thanks >> >> Terry Christophersen ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
