-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/26/2012 8:18 AM, Kip wrote:
> Scott, I am working to add a latching shift register to my parallel
> port in LinuxCNC to expand the number of bits available where
> latency is less of a concern.
> 
> My original thought was to use an Arduino nano to control these
> functions, as I have several laying around.  But I quickly ran out
> of pins.  Then I was going to use shift registers to expand the
> Arduino.  Finally I realized that the arduino wasn't at all
> necessary, as I could directly drive the shift registers with the
> parallel port.  This has the added bonus that I no longer have to
> run a USB cable to my machine, along side the parallel port.
> 
> My plan is to shift data in and out simultaneously by using the
> same clock and latch pins for Serial-In Parallel-Out (SIPO) and
> Parallel-In Serial Out (PISO) shift registers.  This will consume 3
> output pins and 1 input pin on the parallel port.  I'll be using it
> it drive 16 output pins and read 16 input pins in my machine.

With 2 output pins and one input, you can implement an I2C bus and use
assorted I/O expanders, ADC/DAC chips, etc.  The bit-banging I2C
component I wrote might also be of some use as an example for coding a
HAL component to talk to your shift-register/SPI bus.  Configs, HAL
code, and an interface board to hook LinuxCNC to a RAMPS board can be
found here:

https://github.com/cdsteinkuehler/LinuxCNC-RepRap

- -- 
Charles Steinkuehler
[email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlCzvEkACgkQLywbqEHdNFzb9ACgvw1C9p2U1Mpqm0MjiKIgVllc
69sAoMsH4s0udgdyKPh6fTdNUFenu2Mb
=WB69
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to