MCP2200 Microchip Technology, MCP2200 Datasheet - Page 14

no-image

MCP2200

Manufacturer Part Number
MCP2200
Description
USB-to-UART Serial Converter
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCP2200-I/MQ
Manufacturer:
MICROCHIP
Quantity:
1 000
Part Number:
MCP2200-I/MQ
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP2200-I/SO
Manufacturer:
Microchip
Quantity:
719
Part Number:
MCP2200-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP2200-I/SP
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP2200-I/SS
Manufacturer:
MICROCHIP
Quantity:
3 000
Part Number:
MCP2200-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP2200EV-VCP
Manufacturer:
LT
Quantity:
910
Part Number:
MCP2200EV-VCP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP2200T-I/MQ
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
MCP2200
Returns:
configued as an input).
Example:
" +
2.3.1.17
bool SimpleIOClass::WritePort(unsigned int
portValue)
Summary:
Writes a value to the GPIO port.
Description:
Writes the GPIO port.
to write all pins at once instead of one-at-
a-time.
Precondition:
Must have previously been configured as an
output via a ConfigureGPIO call.
Parameters:
portValue - Byte value to set on the port.
Returns:
Function returns true if the transmission is
successful
returns False if there the transmission
fails.
" +
Remarks:
Pins configured for output returns the
current state of the port.
DS22228A-page 14
<code>
</code>
Example:
<code>
</code>
if (SimpleIOClass::ReadGPIOn (0, &rv))
{
}
else
if (SimpleIOClass::WritePort (0x5A))
{
}
else
Pins configured as input read as zero.
true if the pin was successfully read.
false if the pin was not read (not
unsigned int rv;
SimpleIOClass::LastError;
SimpleIOClass::LastError;
lblStatusBar->Text = "Success";
lblStatusBar->Text = "Invalid command
lblStatusBar->Text = "Success";
lblStatusBar->Text = "Invalid command
WritePort
This provides a means
2.3.1.18
bool SimpleIOClass::ReadPort(unsigned int
*returnvalue)
Summary:
Description:
Reads the GPIO port and returns the value in
returnvalue.
all pins at once instead of one-at-a-time.
Precondition:
Must have previously been configured as an
input via a ConfigureGPIO call.
Parameters:
returnvalue - the value read on the port.
Returns:
successful
fails.
Example:
unsigned int rv;
" +
Remarks:
current state of the port.
<code>
</code>
if (SimpleIOClass::ReadGPIOPort (&rv))
{
}
else
Pins configured for output returns the
Pins configured as input read as zero.
Reads the GPIO port as digital input.
Function returns true if the read is
returns False if there the transmission
SimpleIOClass::LastError;
lblStatusBar->Text = "Success";
lblStatusBar->Text = "Invalid command
ReadPort
This provides a means to read
 2010 Microchip Technology Inc.
www.DataSheet4U.com

Related parts for MCP2200