Re: Using a mac classic 1 to send a signal through a cable



In article <1143728217.851282.233740@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Mu0n" <micjuneau@xxxxxxxxx> wrote:

I'm just looking for general principles to guide me in this.

I want to use a (compact) mac classic (system 7.1) to send a signal
through either of the possible cables that connect to it. It could be
appletalk, a serial cable, printer port, etc. Which should I use to
reduce the lag as much as possible? The signal doesn't have to change
quickly, it just needs to be on for a long time, and turned off at a
microsecond-precise schedueled time. It will be used to cut off another
independant circuit that is discharging a condenser.

The part about microsecond precision - I've done it before by using the
various time managers and I need no help with this.

I just need some vague pointers that would guide my choice over the
best option that I can use for this project. Is appletalk better? Is
the printer port more responsive?

The printer serial port and the modem serial port are essentially the
same. you can use PBControl() calls to directly set bits on the
dual-UART chip that controls them, which is connected to the DTR (Data
Terminal Ready) line on the cable (I may have the exact name of the
serial port ready line wrong). You can actually bypass the operating
system, get the address of the chip, and directly write to the registers
on the chip. You can't get much better latency than that.

You will get jitter because of other interrupt tasks on the machine. In
Macsbug:

hz

will give you an idea of what else is running. Get rid of as much as you
can. Turn off appleTalk. But a floppy in the floppy drive so you won't
be polling for disk insertion events.


(I once wrote a digital oscilloscope that used a similar technique to
poll the CTS line on the serial port at regular intervals, and
graphically display the results. It worked, but it couldn't show me that
the digital signal I was trying to decode had a much higher voltage
swing than the chip could handle.)
.



Relevant Pages

  • Re: After a weekend with the old IIgs, ADTPro and modern computers.....
    ... few:)  Not a single serial port to be found ANYWHERE. ... I figured I would just buy a USB->Serial adapter. ... and it fails to install the driver. ... I've managed to build quite the collection of cables, adapters (DB25, ...
    (comp.sys.apple2)
  • Re: DAQ Circuit Diagram for Matlab
    ... this sampling must be performed over a serial port, ... Another method is to use a UART chip, ... As far as reading the signals that the device is sending to the PC, ... The TLC548 ADC chip needs a pulse train for the i/o clock. ...
    (comp.soft-sys.matlab)
  • Re: Brocade 2800 serial connect
    ... "std" null modem cables vary and may not work on a brocade switch. ... Table A-6 Cabling Pinouts if Pin 7 is Used ... Read in the Brocade message boards that internal serial port can be ...
    (comp.arch.storage)
  • Re: Log Phone Calls
    ... Many centuries ago, the serial port on many communication devices was standardised to a 25 pin/socket connector, depending on whether they were Data Communication Equipment or Data Terminal equipment ... Bugger it, the standard should have just specified pin OR socket connectors, not both for the two groups ... Yep, you had to have another type of cable where sockets 2 and 3 (no pins in these cables) were swapped, and a heap of others were hooked up in various ways so that eventually the computers could talk. ...
    (microsoft.public.vb.general.discussion)
  • Re: HP 50g Connector, Cable & Legacy
    ... My 48 series calculators didn't have cables included in the ... how the serial port worked; HP had already taken care of that. ... emulation I only see USB as a port and KERMIT as the transfer protocokl. ... connectivity kits to attach to what I believe is a non-functional RS-232 ...
    (comp.sys.hp48)