On Thu, 11 Aug 2011, Cliff Blackburn wrote: > Date: Thu, 11 Aug 2011 09:53:57 -0700 > From: Cliff Blackburn <cblackb...@powertechrepairs.com> > Reply-To: EMC developers <emc-developers@lists.sourceforge.net> > To: EMC developers <emc-developers@lists.sourceforge.net> > Subject: Re: [Emc-developers] Hostmot 2 7I65 Encoder Mux Patch > > On 8/11/2011 7:06 AM, Peter C. Wallace wrote: >> On Thu, 11 Aug 2011, Cliff Blackburn wrote: >> >>> Date: Thu, 11 Aug 2011 01:40:30 -0700 >>> From: Cliff Blackburn<cblackb...@powertechrepairs.com> >>> Reply-To: EMC developers<emc-developers@lists.sourceforge.net> >>> To: EMC developers<emc-developers@lists.sourceforge.net> >>> Subject: Re: [Emc-developers] Hostmot 2 7I65 Encoder Mux Patch >>> >>> I just realized I screwed up the previous patch. I forgot to include the >>> change to set NumInstances to 2. >>> >>> I found another issue I am had with the hostmot2 driver while using the 7i65 >>> board with the way it determines how many encoder select pins to allocate. >>> In >>> pins.c the encoder select pins are determined by how many encoders there >>> are, >>> >>> // muxed encoder gets the sel pins >>> hm2_pins_allocate_all(hm2, HM2_GTAG_MUXED_ENCODER_SEL, >>> hm2->encoder.num_instances); >>> >>> With this code if I set num_encoders to 8 emc for the 7I65 card it will >>> allocate the select pins from both connectors if using a 2x7i65 firmware. >>> Here is the output from dmesg with num_encoders set to 8. >> >> The way this is supposed to work is that the pin description for the first >> connectors mux signal is assigned channel 0 (so enabling channels 0 through 7 >> will enable the first connectors enc mux signal) The pin descriptor for the >> second connectors mux signal is assigned channel 8 so it will be activeated >> if >> encoders 8 though 15 are enabled >> >> this may be wrong in the 7I65 pinout > > Ok, I figured I might have missed something here. So I just needed to > change line 149 > > "IOPortTag & x"00" & MuxedQCountSelTag & MuxedQCountSel0Pin, -- I/O 37" > > from x"00" to x"08"?
Yep Known to work on the 7I48/7I52 configs so should work here as well. Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers