LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3-wire serial bus interface

Can anyone tell me how to code a 3-wire serial bus interface?  I need to send data words using CLK, DATA, and LE through the parallel port.
0 Kudos
Message 1 of 9
(4,092 Views)
hi
can u explain more about ur application so that i can try to answer for ur question..

------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
0 Kudos
Message 2 of 9
(4,066 Views)
I need to load a synthesizer with a 24-bit word.  I need to clock in the serial data on the rising edge while keeping the load enable line low.  Clock low/high hold times and data-clock setup times would apply.
0 Kudos
Message 3 of 9
(4,051 Views)
You woud use the Out Port.vi which can write data to the parallel port.  You will have to write code for the handshaking yourself.  If you look in the exaples, NI provides an example of controlling the parallel port using the Out Port method.
0 Kudos
Message 4 of 9
(4,042 Views)

Look here for vi's (take a look at the diagram, the schematic can be found in there

http://forums.ni.com/ni/board/message?board.id=170&message.id=137823

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 9
(4,021 Views)

Thanks Henrik,

This will be a good start for me.  Are the hold times and setup times in the serial timing adjustable?  Or is it processor dependant?  I have min timing specs, but I'm not sure if it's something I can control.

0 Kudos
Message 6 of 9
(3,999 Views)
You work with MS Windows? You want to use system devices?
My tests came up with 1ms , however 12-16ms are possible......
If you need deterministic timing use hardware timed IO !!!
 
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 7 of 9
(3,989 Views)
See attached code.  This should help.  It is for an 8-bit word, but for 24-bit, you just keep clocking in data for 16 more data bits before you end the operation with the strobe/enable.

-James
0 Kudos
Message 8 of 9
(3,984 Views)

Hi James,

Thanks for replying, unfortunately, I have an earlier version of LabVIEW and I can't open your VI.

0 Kudos
Message 9 of 9
(3,972 Views)