On Sun, Nov 04, 2007 at 03:39:03PM +0100, [EMAIL PROTECTED] wrote: > Jeff Epler wrote: > > No USB hardware is supported by emc at this time. > The card implements the USB CDC class (it lookes like a serial card to > the operating system with the usbserial modul). So i thought since > serial connection can be used it would also be possible to use the USB > counterpart.
The existing "serport" driver merely uses some of the pins on a "serial port" as dumb I/O--for instance, you could produce a "step and direction" waveform and hook it to physical pins 3 and 4 on the 9-pin serial connector. It does not use a "serial protocol". > I already looked at the emc2/src/hal/drivers directory out i only found > functions which write directly to a set of i/o pins. Isn't there any > function/example to directly write a speed or number of step ticks with > a frequency? Many of the drivers do this, but in each case the structure of the code is specific to the device. For instance, in the case of the mesa 5i20 card, the requested analog output value value is turned into a device-specific "dacCount", then written to the board's memory mapped register: http://cvs.linuxcnc.org/lxr/source/src/hal/drivers/hal_m5i20.c#882 Jeff ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users