參數(shù)資料
型號(hào): MCP2200-I/SS
廠商: Microchip Technology
文件頁(yè)數(shù): 14/44頁(yè)
文件大小: 0K
描述: IC USB TO UART 20SSOP
特色產(chǎn)品: MCP2200 USB-to-UART Serial Converter
標(biāo)準(zhǔn)包裝: 67
特點(diǎn): USB 至 UART
通道數(shù): 8
FIFO's: 256 字節(jié)
規(guī)程: USB 2.0
電源電壓: 3 V ~ 5.5 V
帶自動(dòng)流量控制功能:
安裝類型: 表面貼裝
封裝/外殼: 20-SSOP(0.209",5.30mm 寬)
供應(yīng)商設(shè)備封裝: 20-SSOP
包裝: 管件
產(chǎn)品目錄頁(yè)面: 684 (CN2011-ZH PDF)
工具箱: AC160135-1-KIT-ND - KIT
2011 Microchip Technology Inc.
DS22228B-page 21
MCP2200
2.3.1.21
ReadPortValue
Function:
int SimpleIOClass::ReadPortValue()
EXAMPLE 2-21:
2.3.1.22
SelectDevice
Function:
int SimpleIOClass::SelectDevice(unsigned int uiDeviceNo)
EXAMPLE 2-22:
Summary:
Reads the GPIO port as digital input.
Description:
Reads the GPIO port and returns the value of the port. This provides a method to read all pins
simultaneously, instead of one-by-one. In case of an error, the returned value will be 0x8000.
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:
None.
Returns:
This function returns True if the transmission is successful and returns False if the transmission fails.
Remarks:
Pins configured for output return the current state of the port. Pins configured as input read as zero.
Summary:
Selects one of the active devices in the system.
Description:
The function is used to select one of the detected devices in the system as the “active device”.
Precondition:
At least one call to the InitMCP2200() is required in order to initiate a DLL search for the compatible
devices. Also, in order to know the actual number of devices in the system, call the
SimpleIOClass::IsConnected()
function. VID and PID must be previously set via a call to
InitMCP2200(VID, PID)
.
Parameters:
uiDeviceNo
- the ID of the device to be selected (can have a value between 0 and the number of
devices minus 1).
Returns:
This function returns ‘0’ in case of selection success, otherwise it will return:
E_WRONG_DEVICE_ID (-1) for a device ID that is out of range
E_INACTIVE_DEVICE (-2) for an inactive device.
Remarks:
Call the SimpleIOClass::IsConnected() prior to the call of this function in order to have the most
recent number of devices that are present in the system.
int rv;
rv = SimpleIOClass::ReadPortValue()
if (rv != 0x8000)
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Invalid command ” +
SimpleIOClass::LastError;
int iResult;
iResult = SimpleIOClass::SelectDevice(1)
if (iResult == 0)
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Error selecting device”;
相關(guān)PDF資料
PDF描述
CAT9534YI-GT2 IC I/O EXPANDER I2C 8B 16TSSOP
CAT9534WI-GT2 IC I/O EXPANDER I2C 8B 16SOIC
ATMEGA8535L-8MUR MCU AVR 8K FLASH 8MHZ 44QFN
PCA9535EDTR2G 16-BIT I/O EXPANDER 24TSSOP
PCA9535ECMTTXG 16-BIT I/O EXPANDER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MCP2200T-I/MQ 功能描述:USB 接口集成電路 USB-to-UART Protocol Converter w/ GPIO RoHS:否 制造商:Cypress Semiconductor 產(chǎn)品:USB 2.0 數(shù)據(jù)速率: 接口類型:SPI 工作電源電壓:3.15 V to 3.45 V 工作電源電流: 最大工作溫度:+ 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:WLCSP-20
MCP2200T-I/NQ 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:USB 2.0 to UART Protocol Converter with GPIO
MCP2200T-I/SO 功能描述:USB 接口集成電路 USB-to-UART Protocol Converter w/ GPIO RoHS:否 制造商:Cypress Semiconductor 產(chǎn)品:USB 2.0 數(shù)據(jù)速率: 接口類型:SPI 工作電源電壓:3.15 V to 3.45 V 工作電源電流: 最大工作溫度:+ 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:WLCSP-20
MCP2200T-I/SS 功能描述:USB 接口集成電路 USB-to-UART Protocol Converter w/ GPIO RoHS:否 制造商:Cypress Semiconductor 產(chǎn)品:USB 2.0 數(shù)據(jù)速率: 接口類型:SPI 工作電源電壓:3.15 V to 3.45 V 工作電源電流: 最大工作溫度:+ 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:WLCSP-20
MCP2200T-IMQ 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:USB 2.0 to UART Protocol Converter with GPIO