On Fri, 2009-03-27 at 22:32 +0100, Lars Andersson wrote: > Hi list, > Would "serial_dac.comp" be a good starting point for making a "SPI.comp" or > do you recommend anything else to start from? Maybe there is something > written already? > > If reasonable I would like to send more than one half bit per BASE thread > click. > I am talking to a PIC18F4520 so 8 bits at a time would be nice. > > Regards, > Lars
Talking to a PIC at base period rates seems to be pretty fast to me. Is the communication to your PIC for motion control? Since the PIC can have allot of intelligence, it seems that the communication rate can be fairly slow, because the PIC will be handling the the high rate functions locally. I am not a proficient programmer, but I don't see much that can be done to get around having to convert bytes to bits and then clocking them out. Peter at mesanet.com may be able to get base rate SPI output from his Anything I/O cards. >From the 5i20 manual: " SUPPLIED CONFIGURATIONS HOSTMOT2 HOSTMOT2 is available in several configurations the vary the number of servo or step generator channels, plus miscellaneous I/O options including 32 bit buffered UARTs, SPI interfaces, SSI interfaces etc. " ---------------- Kirk http://www.wallacecompany.com/machine_shop/ ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users