communication and timing in the same time

hi.
I need to get information by USB/eth and get it out through the DIO in the same time.
Can it be done? Timing and communications do not interfere with one another?
thanks.

Only have 1 thread - which one are you doing 1st, and which 2nd?
Course, kind of hard to do the 2nd before the 1st.

Sending it via SPI? I2C? parallel? Just toggling a bit?

I need to get information by USB/eth and get it out through the DIO in the same time.

What information do you need to get from Ethernet or USB (and which is it?)? What do you need to get from a digital pin?

Can it be done?

That depends on your definition of "in the same time".

Timing and communications do not interfere with one another?

Sure. No. Silly questions deserve silly answers.

I need to get series of '1' & '0' and get it out via output pin. A fast and accurate (in time) DIO that don't get the information in advanced.
I meant, if i take USB shield (for input) and arduino base (for output), can they work independently and simultaneously and share the memory?

I meant, if i take USB shield (for input) and arduino base (for output), can they work independently and simultaneously and share the memory?

Independently, yes. Simultaneously, no. Close enough to not matter? Maybe. Depends on how YOU write the code.

slik:
fast and accurate (in time)

Can you put some numbers to these requirements?

I not sure yet. I guess 1MHz or little more (than I will need the Due)

You don't say what your latency requirements are for the digital output, but I suspect that's academic.

I doubt that you will be able to run the USB serial port at 1MHz.

I doubt that the Ethernet shield will sustain 1Mbps.

Assuming you managed to pull off either of them, 1us does not give you enough time to run any significant code to get the data from the input device to the output device so you can forget about any idea of sending a bitstream out via a digital I/O pin at 1MHz. The only options worth considering would be to use the hardware UART as a sender, I don't know whether it would be possible but if so it would be hard to achieve. In any case, if the Arduino is essentially just passing through an async bitstream in real time, I don't see the point of using it. If you literally just want to send a bitstream out using TTL signalling, I suspect your best bet would be to use a USB serial converter directly. There are some commonly available USB / TTL serial adapters often used to program Arduinos based on the FTDI FT232R which will just about reach 1Mbps, and faster ones such as FT232H which can run up to about 12Mbps.