Online Development Notebook > Index > ODN > USBm DLL Programming > Device Commands > StrobeWrite2

StrobeWrite2


VERSION 1.34+ of the firmware, VERSION 42+ of the DLL

Description:

StrobeWrite with strobe pulse length.

 

Command Syntax: (USBm.dll)

USBm_StrobeWrite2(device, data, port, sel, len)

The USBm_StrobeWrite2 function syntax has these parts:

Part Description
device A zero-based index to address the appropriate USB device.
data Data to write.
port The port to write the byte. A value of 00h is port A, a value of 01h is port B.
sel The strobe direction and the strobe line selection.
len The strobe length.
del The delay between multiple bytes. VERSION 1.46+ of the firmware, VERSION 56+ of the DLL

 

Remarks:

Same as StrobeRead, but "len" is the strobe length from about 10 microseconds to about 200 microseconds. Tha value of "del" is the delay between bytes.

 

VB Declaration

Public Declare Function USBm_StrobeWrite2 _
    Lib "USBm.dll" _
        (ByVal device As Byte, _
        ByVal data As Byte, _
        ByVal port As Byte, _
        ByVal sel As Byte, _
        ByVal len As Byte) _
        ByVal del As Byte) _
   As Integer

 

VB Example

USBm_SetBit 1, 15
USBm_StrobeWrite2 1, &H55, 0, &H0F, 20

The "20" selects a longer strobe pulse.

 

C Example

-TBD-


Hardware:  U401 USB Interface    U421 USB Interface
Programming:  USBm DLL Programming    Download Files
Application Notes:  U4x1 Application Notes    Misc Applications and Information    FAQ