Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

MCP2200T-I/SS Datasheet(PDF) 19 Page - Microchip Technology

Part # MCP2200T-I/SS
Description  USB 2.0 to UART Protocol Converter with GPIO
PDF  44 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

MCP2200T-I/SS Datasheet(HTML) 19 Page - Microchip Technology

Back Button MCP2200T-I/SS Datasheet HTML 15Page - Microchip Technology MCP2200T-I/SS Datasheet HTML 16Page - Microchip Technology MCP2200T-I/SS Datasheet HTML 17Page - Microchip Technology MCP2200T-I/SS Datasheet HTML 18Page - Microchip Technology MCP2200T-I/SS Datasheet HTML 19Page - Microchip Technology MCP2200T-I/SS Datasheet HTML 20Page - Microchip Technology MCP2200T-I/SS Datasheet HTML 21Page - Microchip Technology MCP2200T-I/SS Datasheet HTML 22Page - Microchip Technology MCP2200T-I/SS Datasheet HTML 23Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 19 / 44 page
background image
 2011-2015 Microchip Technology Inc.
DS20002228C-page 19
MCP2200
EXAMPLE 2-16:
2.3.1.17
ReadEEPROM
Function:
int SimpleIOClass::ReadEEPROM (unsigned int uiEEPAddress)
EXAMPLE 2-17:
2.3.1.18
ReadPin
Function:
bool SimpleIOClass::ReadPin (unsigned int pin, unsigned int *returnvalue)
EXAMPLE 2-18:
Summary:
Reads a byte from the EEPROM.
Description:
Reads a byte from the EEPROM at the given address.
Precondition:
At least one call to the InitMCP2200() is required in order to initiate a DLL search for the compatible
devices. VID and PID must be previously set via a call to InitMCP2200(VID, PID).
Parameters:
uiEEPAddress
- the EEPROM address location we need to write to (must be from 0 to 255, inclu-
sively).
Returns:
This function returns any positive value as being the EEPROM’s location value:
• E_WRONG_ADDRESS (-3) - in case the given EEPROM address is out of range
• E_CANNOT_SEND_DATA (-4) - in case the function cannot send the command to the device
Remarks:
None.
Summary:
Reads the specified pin.
Description:
Reads the specified pin and returns the value in returnvalue. If the pin has been configured as a
digital input, the return value will be either ‘0’ or ‘1’.
Precondition:
Must be previously configured as an input via a ConfigureIO call.
VID and PID must be previously set via a call to InitMCP2200(VID, PID).
Parameters:
• pin - the pin number to set (0-7)
• returnvalue - the value read on the pin (‘0’ or ‘1’)
Returns:
This function returns True if the transmission is successful and returns False if the transmission fails.
Remarks:
None.
unsigned int rv;
if (SimpleIOClass::IsConnected ())
{
lblStatusBar->Text = “Device connected”;
}
else
lblStatusBar->Text = “Device Disconnected”;
int iRetValue = SimpleIOClass::ReadEEPROM(0x01);
if (iRetValue >= 0)
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Error reading to EEPROM” +
SimpleIOClass::LastError;
unsigned int rv;
if (SimpleIOClass::ReadGPIOn (0, &rv))
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Invalid command ” +
SimpleIOClass::LastError;



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 35 36 37 38 39 40 41 42 43 44


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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