Hi Lior,The most straight-forward way to do SPI communication with an M Series board is to generate the entire command sequence on the digital lines. You can clock your communication with either software or hardware. Software would be a bit simpler to implement, but hardware is uniform in time.In either case, you would create an output waveform that contained your clock, select, and MOSI lines and write it to the digital output lines. For MISO, you would need an output waveform that generated the clock and select lines and read the digital input line at the same time.If you want to use hardware to time the operation, you'll need to use a counter to generate the sample clock.