>kayser@... wrote:The serial ports do provide binary signals (handshaking control lines)
>
> >
> > Other question: I would like to trigger the stimulus presentation
> > from outside using a TTL +-5V signal. What's an easy way to do
> > this on a G4: Serial port, USB, FireWire etc.?
>
>TTL logic levels are +5 and 0 volts, not +-5V. (And only nominally, real
>TTL ( LS, F, AS etc. families) does not swing to the poles, though the HC
>and HCT stuff does).
>
>Neither Serial, USB, nor FireWire ports provide a TTL output directly. You
>can attach to those ports devices which provide parallel digital inputs and
>outputs. One such device is this:
>http://www.activewireinc.com/
and at least one of these (CTS) may be written from the SERIAL MEX
file (Mac version at least, not sure about Windows). Although the
output levels are not TTL, it is pretty easy to build a little circuit
that converts what you do get to TTL -- probably one transistor
or op amp is enough, along with a 5 volt power supply.
DB