поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

MCP2200 датащи(PDF) 14 Page - Microchip Technology

номер детали MCP2200
подробное описание детали  USB 2.0 to UART Protocol Converter with GPIO
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MICROCHIP [Microchip Technology]
домашняя страница  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

MCP2200 датащи(HTML) 14 Page - Microchip Technology

Back Button MCP2200 Datasheet HTML 10Page - Microchip Technology MCP2200 Datasheet HTML 11Page - Microchip Technology MCP2200 Datasheet HTML 12Page - Microchip Technology MCP2200 Datasheet HTML 13Page - Microchip Technology MCP2200 Datasheet HTML 14Page - Microchip Technology MCP2200 Datasheet HTML 15Page - Microchip Technology MCP2200 Datasheet HTML 16Page - Microchip Technology MCP2200 Datasheet HTML 17Page - Microchip Technology MCP2200 Datasheet HTML 18Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 34 page
background image
MCP2200
DS22228A-page 14
 2010 Microchip Technology Inc.
Returns:
true if the pin was successfully read.
false if the pin was not read (not
configued as an input).
Example:
<code>
unsigned int rv;
if (SimpleIOClass::ReadGPIOn (0, &rv))
{
lblStatusBar->Text = "Success";
}
else
lblStatusBar->Text = "Invalid command
" +
SimpleIOClass::LastError;
</code>
2.3.1.17
WritePort
bool SimpleIOClass::WritePort(unsigned int
portValue)
Summary:
Writes a value to the GPIO port.
Description:
Writes the GPIO port.
This provides a means
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.
Example:
<code>
if (SimpleIOClass::WritePort (0x5A))
{
lblStatusBar->Text = "Success";
}
else
lblStatusBar->Text = "Invalid command
" +
SimpleIOClass::LastError;
</code>
Remarks:
Pins configured for output returns the
current state of the port.
Pins configured as input read as zero.
2.3.1.18
ReadPort
bool SimpleIOClass::ReadPort(unsigned int
*returnvalue)
Summary:
Reads the GPIO port as digital input.
Description:
Reads the GPIO port and returns the value in
returnvalue.
This provides a means to read
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:
Function returns true if the read is
successful
returns False if there the transmission
fails.
Example:
<code>
unsigned int rv;
if (SimpleIOClass::ReadGPIOPort (&rv))
{
lblStatusBar->Text = "Success";
}
else
lblStatusBar->Text = "Invalid command
" +
SimpleIOClass::LastError;
</code>
Remarks:
Pins configured for output returns the
current state of the port.
Pins configured as input read as zero.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com