USBmicro

Your source for USB electrical device interface products.

  • Home
  • Services
    • Design
    • Contact USBmicro
  • Where to buy…
You are here: Home / Documentation / Device Commands

Device Commands

The Command Format Table below summarizes all of the allowed commands that deal with device manipulation. The individual command pages that follow this summary give detailed information on the format and use of these commands.

Command Name Description
InitPorts (and variations) Initialize both 8-bit ports, reset internal latches.
WriteA Write byte value to port A
WriteB Write byte value to port B
WriteABit Write select bits (masked and⁄or term) to port A
WriteBBit Write select bits (masked and⁄or term) to port B
ReadA Read byte value from port A
ReadB Read byte value from port B
SetBit Set a single one of the port bits to 1⁄high
ResetBit Set a single one of the port bits to 0⁄low
DirectionA (and variations) Direction of port A
DirectionB (and variations) Direction of port B
StrobeWrite Write to a port and strobe a line
StrobeWrite2 Write to a port and strobe a line
StrobeRead Read from a port and strobe a line
StrobeRead2 Read from a port and strobe a line
StrobeWrites Write bytes to a port and strobe a line
StrobeReads Read bytes from a port and strobe a line
ReadLatches Read internal pin-change latches
InitLCD Set up the device to use an LCD
LCDCmd Send a command to the LCD
LCDData Send a character to the LCD
InitSPI Set up the device to use SPI (3-wire interface)
SPIMaster Communicate with (read⁄write) a SPI device
SPISlaveWrite Write bytes for a SPI master to read
SPISlaveRead Read bytes sent by a SPI master
Wire2Control Send a 2-wire signal to the 2-wire port
Wire2Data Send 2-wire data (8 or 9 bits) to the 2-wire port, receive data
Stepper Set up ⁄ control a stepper motor
Reset1Wire Set up and reset a 1-wire bus⁄device
Write1Wire Write a byte to a 1-wire bus⁄device
Read1Wire Read byte from a 1-wire bus⁄device
Write1WireBit Write bit to a 1-wire bus⁄device
Read1WireBit Read bit from a 1-wire bus⁄device

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Documentation

Open all | Close all
USBmicro Products
Ordering USBmicro Products
U401 USB Interface
U401 Specifications
U401 Connector Pin Out
U401 Capabilities
U421 USB Interface
U421 Specifications
U421 PCB Pin Out
U421 Capabilities
U451 USB Relay Interface
U451 Specifications
U451 PCB Pin Out
U4x1 Installation
U4xx Troubleshooting
Programming Overview
Dynamic Link Library Programming
Visual Basic Example
C#⁄.NET Information
RobotBASIC
MSVC++ Example
Delphi Interfacing
LabView Interfacing
Raw Device Programming
General VB Example
Linux Info
Mac OSX Info
DLL Commands
About
SetReadTimeout
Version
WriteDevice
ClearRecentError
CloseDevice
Copyright
DebugString
DeviceDID
DeviceFirmwareVer
DeviceMfr
DevicePID
DeviceProd
DeviceSer
DeviceValid
DeviceVID
FindDevices
NumberOfDevices
ReadDevice
RecentError
Device Commands
InitPorts (and variations)
WriteA
WriteB
WriteABit
WriteBBit
ReadA
ReadB
SetBit
ResetBit
DirectionA (and variations)
DirectionB (and variations)
StrobeWrite
StrobeWrite2
StrobeRead
StrobeRead2
StrobeWrites
StrobeReads
ReadLatches
InitLCD
LCDCmd
LCDData
InitSPI
SPIMaster
SPISlaveWrite
SPISlaveRead
Wire2Control
Wire2Data
Stepper
Reset1Wire
Write1Wire
Read1Wire
Write1WireBit
Read1WireBit
Download Files
Application Notes
App0: Command Test
App1: Output
App2: Input
App3: LCD
App4: SPI Output
App5: SimmSticks
App6: USB Digio
App7: Stepper Motor
App8: SPI ADC
App9: 1-Wire
AppX: OSX Interface
App11: Home Domination
App12: Large LED Display
App13: Magnetic Angle Sensor
App14: 2-Wire to PCF8574
App17: REALBasic OSX
Frequently Asked Questions