On Tuesday 20 October 2020 06:41:53 andy pugh wrote: > On Tue, 20 Oct 2020 at 10:30, Gene Heskett <ghesk...@shentel.net> wrote: > > I forget, whatever puts a std bob on its p2, and a 7i76D on its p3. > > dmesg doesn't show the 5i25 bit file in use. > > Does dmesg tell you anything? Are you getting the pinout listing?
Sure, and I've posted the those applicable bits several times now. Here is the complete list, but be aware that the pin numbers shown for 5i25-p3 are meaningless as they correspond to what would be seen if a bob was plugged into the 5i25, not the pins they actually come out of the 7i76D on. Here is the whole thing but I've stripped the leading times: hm2: loading Mesa HostMot2 driver version 0.15 hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7 hm2_pci: discovered 5i25 at 0000:05:00.0 hm2/hm2_5i25.0: Low Level init 0.15 hm2/hm2_5i25.0: Smart Serial Firmware Version 43 Board hm2_5i25.0.7i76.0.0 Hardware Mode 0 = standard Board hm2_5i25.0.7i76.0.0 Software Mode 0 = io_spin Board hm2_5i25.0.7i76.0.0 Software Mode 1 = io_ana_spin Board hm2_5i25.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv hm2/hm2_5i25.0: 34 I/O Pins used: hm2/hm2_5i25.0: IO Pin 000 (P3-01): StepGen #0, pin Direction (Output) hm2/hm2_5i25.0: IO Pin 001 (P3-14): StepGen #0, pin Step (Output) hm2/hm2_5i25.0: IO Pin 002 (P3-02): StepGen #1, pin Direction (Output) hm2/hm2_5i25.0: IO Pin 003 (P3-15): StepGen #1, pin Step (Output) hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #2, pin Direction (Output) hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #2, pin Step (Output) hm2/hm2_5i25.0: IO Pin 006 (P3-04): StepGen #3, pin Direction (Output) hm2/hm2_5i25.0: IO Pin 007 (P3-17): StepGen #3, pin Step (Output) hm2/hm2_5i25.0: IO Pin 008 (P3-05): PWMGen #0, pin Out1 (Dir or Down) (Output) hm2/hm2_5i25.0: IO Pin 009 (P3-06): PWMGen #0, pin Out0 (PWM or Up) (Output) hm2/hm2_5i25.0: IO Pin 010 (P3-07): Smart Serial Interface #0, pin tx0 (Output) hm2/hm2_5i25.0: IO Pin 011 (P3-08): Smart Serial Interface #0, pin rx0 (Input) hm2/hm2_5i25.0: IO Pin 012 (P3-09): IOPort hm2/hm2_5i25.0: IO Pin 013 (P3-10): IOPort hm2/hm2_5i25.0: IO Pin 014 (P3-11): Encoder #0, pin Index (Input) hm2/hm2_5i25.0: IO Pin 015 (P3-12): Encoder #0, pin B (Input) hm2/hm2_5i25.0: IO Pin 016 (P3-13): Encoder #0, pin A (Input) hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort hm2/hm2_5i25.0: IO Pin 025 (P2-05): PWMGen #1, pin Out1 (Dir or Down) (Output hm2/hm2_5i25.0: IO Pin 026 (P2-06): PWMGen #1, pin Out0 (PWM or Up) (Output) hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort hm2/hm2_5i25.0: IO Pin 031 (P2-11): Encoder #1, pin Index (Input) hm2/hm2_5i25.0: IO Pin 032 (P2-12): Encoder #1, pin B (Input) hm2/hm2_5i25.0: IO Pin 033 (P2-13): Encoder #1, pin A (Input) hm2/hm2_5i25.0: registered hm2_5i25.0: initialized AnyIO board at 0000:05:00.0 Note that the 5i25 p3 pins pin-nums as delivered to the 7i76D are phony as a $3 bill, you have to reference the 7i76D.pdf printout for clues as to where they actually are, because both a true and complement of each pin of the 5i25 are present on the 7i76D on its p2 and p3 connectors. pwmgen.0 when enabled, replaces stepgen #4 in the assignments above. The p2 connections are valid, but subject to the direction limits of the std parport bob plugged into the 5i25's p2 connector so you need the setp's for those gpio pins to actually become outputs. And signal traceing thru this mess can only be done with an external scope, it doesn't show in the halscope channel menu's, nor in the halmeter. AND its the only inputs on the 7i76D that respond to 5 volt logic levels except the encoder.0 signals. Its confusing as can be to put it kindly. In the original .hal file, before I discovered that, is the reason I used both pwmgen's for the spindle, I was actually getting my signals to run the spindle from the bob and pwmgen.1. But now I need it for axis A and this BS-1 motor. But I have to use 2 comp's to make the dir into 2 complementary signals, which I need to drive the enaA and enaB inputs of the olimex driver board for direction control. But I think I'm fighting with an iffy cable on p2 of the 5i25. Thats my first check when I get out there, but a prescription program ended and one of my meds for a DM-II went from $49, to $200/month. Needless to say, that gets sorted by Friday. Thanks Andy. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users