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.
Joe FriedchickenNI Configuration Based Software |
---|
Get with your fellow OS users [ Linux ] [ macOS ] | Principal Software Engineer :: Configuration Based Software Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018) Software Engineer :: Measurements RLP Group (until Mar 2014) Applications Engineer :: High Speed Product Group (until Sep 2008) |