Online Development Notebook > Index > Programming Overview > 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


Hardware:  U401 USB Interface    U421 USB Interface   U451 USB Interface

Programming:  USBm DLL Programming    Download Files

Application Notes:  U4x1 Application Notes    Misc Applications and Information    FAQ

While every effort has been made to make sure that the information posted on this site is correct, the author can not be held liable for any damages whatsoever for losses as a result of the application of this information. Use this information at your own risk.

USBmicro can design your custom and semi-custom USB product. Email about USB design can be directed to " Robert " at usbmicro.com.

Copyright © USBmicro, L.L.C., 2002-2010

Previous  |  Next ]     [ Up  |  First  |  Last ]     (Article 52 of 126)

This page is created with TreePad