LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI protocol on serial port

Hallo newsgroup,

I'm looking for a solution, which uses the serial port of a PC to run a SPI
communication with PC-Master and any device as slave.
Are the any ready usable VIs, or a VISA thing or at least some good ideas to
implement such a communication.

Many thanks for your help

Oliver
0 Kudos
Message 1 of 6
(6,407 Views)
Hallo Oliver,

The Serial Peripheral Interface (SPI) circuit is a synchronous serial
data link that is standard across many Motorola microprocessors and other
peripheral chips. It provides support for a high bandwidth (1 megabaud)
network connection amongst CPUs and other devices supporting the SPI.

To implement this without special hardware on a PC, you'll have to "bit
bang" it. While this could be done using CTS, RTS and DTR on the PC, it
would require some level shifting hardware to convert to/from RS232 signal
levels.Really the parallel port would be much easier.

I'd consider writing a DLL in C and calling that. Better still, grab a
microcontroller with a built in full speed hardware supported SPI interface
as well as a UART, and stick that on the
serial port.

--
Regards,
Alf Katz,
alfkatz@removethis.ieee.org


"Oliver Friedrich" wrote in message
news:3a9cacc9@newsgroups.ni.com...
> Hallo newsgroup,
>
> I'm looking for a solution, which uses the serial port of a PC to run a
SPI
> communication with PC-Master and any device as slave.
> Are the any ready usable VIs, or a VISA thing or at least some good ideas
to
> implement such a communication.
>
> Many thanks for your help
>
> Oliver
>
>
0 Kudos
Message 2 of 6
(6,403 Views)
I'm looking for Parallel to SPI converter component in order to convert SPI from DAC and ADC after opto-couplers to 60x-bus of MPC875.

If you know device that can fit my needs please advice me

Tkanks Roman.
0 Kudos
Message 3 of 6
(5,991 Views)

hi there

i'd recommend to use the NI USB-8451. this device provides I2C and SPI. programming is very simple. it's really worth its price.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 6
(5,980 Views)
Thanks,
But I'm looking for SMT (PCB assembly) single chip witch have Parallel interface and SPI HOST interface and can easily convert data from parallel to SPI and vice versa.
0 Kudos
Message 5 of 6
(5,975 Views)

Hello Everybody,

I am trying to develop my own digital communication protocol in LabVIEW, is basic SPI communication, I will be using a parallel port to talk to my device, has anyone done anything like it in LabVIEW, I believe I would need some DAQ built-in functions to acomplish this as well as some Port I/O libraries, does anyone know where I can download this from NI?

Thanks

JB

 

 

0 Kudos
Message 6 of 6
(5,958 Views)