09-23-2008 12:10 PM
Hi,
I would like to use the parallel port for serial communication. My application calls for programming an IC which has four serial lines working on SPI protocol. There are four serial lines, SCLK – Serial Clock, SDFS – Frame strobe, SDI – Serial Data In and SDO – Serial Data Out. So I should configure any 4 lines of the parallel port to output signals serially. Using VISA is it possible to configure the parallel port in this manner.
Yours faithfully,
R. Vishnu
09-23-2008 03:32 PM
09-23-2008 05:18 PM
This device uses USB and has a labview driver.
http://www.totalphase.com/products/aardvark_i2cspi/?gclid=CI_cysT48pUCFQNbxwodYmT5Nw
09-24-2008 09:27 AM
If you're going to use a SPI device I would suggest looking at this one:
http://www.diolan.com/i2c/u2c12.html
It's cheaper than the Aardvark unit, though it's not as programmable as the Aardvark. At work here we actually have both the U2C-12 and the Aardvark, as well as a Cal-Bay unit.
09-24-2008 11:21 PM
Here the RJ45 connector is the one on the evaluation board which routes the lines to the SPI port. That was why I went for this method (the main advantage of which is that it doesn’t require a micro-controller).
Regards,
R. Vishnu.
09-25-2008 09:59 AM
vishnu4100 wrote:
Hi,Thank you for all the suggestions. But I don’t plan to use any other external hardware for this purpose, simply because it is waste of money and resources.
I would strongly disagree with this statement.
As I indicated, you can write to the parallel port. You have to do bit-banging, and you have to update the whole port, not just individual bits. The examples that ship with LabVIEW show you how to write to the parallel port. That's pretty much your answer, so I'm not sure what more you're looking for?
09-25-2008 10:56 AM
to re-iterate, you do not need any additional hardware as you can use the parrallel port to write to SPI. As smercurio says this is a way of doing it, however you will be writing one 'bit' of the serial word each time you write to the entire parrallel port. I have no direct experience with SPI but i imagine like many of the others it is a latched asynchronous comms link, which means timing is not essential, hence this is a possible solution, even though the serial clock will be software timed.
Craig