MATLAB: Triggering a slave target with parallel port

masterparallel portSimulink Real-Timeslavesyncronizationtriggerxpc target

Hi, I need to syncronize two targets running xPC Target. I use a Master/Slave approach. I read I have to set the slave model to run on IRQ7 (coming from parallel port) instead of using the Real Time Clock of the machine.
I correctly did this but…how can I send the clock signal from the master target? I read I need to send a square waveform on pin 10 of the parallel port in order to generate the interrupt on the slave. But I am only able to find blocks writing on data pins (1-8) and control pins of the parallel port. Pin 10 is a status pin, how can I write on this pin from the master target?
Thanks

Best Answer

To confirm: you need to send your square wave on the nACK pin? You cannot do that: ACK is input only.
Bit 4 of the control port (see page 7 of http://retired.beyondlogic.org/spp/parallel.pdf) enables the host to generate an IRQ when an edge is seen on the nACK pin; see page 12 of that document.
Does your slave need an edge to trigger a particular action, or does it need a full clock? If it needs an edge then you could potentially use the strobe (pin 1) or nSelect (pin 17). If it needs a full clock then you have a problem as parallel ports are not designed for shared clocks: they are designed for asynch work with multiple inputs per asynch cycle.
Clock sync is better done with an D/A convertor that offers a shared clock. Or, I suppose, perhaps one of the old BISYNC connectors (if you can still find one.)