參數(shù)資料
型號: MCP2200-I/SO
廠商: Microchip Technology
文件頁數(shù): 13/44頁
文件大?。?/td> 0K
描述: IC USB TO UART 20SOIC
特色產(chǎn)品: MCP2200 USB-to-UART Serial Converter
標準包裝: 38
特點: USB 至 UART
通道數(shù): 8
FIFO's: 256 字節(jié)
規(guī)程: USB 2.0
電源電壓: 3 V ~ 5.5 V
帶自動流量控制功能:
安裝類型: 表面貼裝
封裝/外殼: 20-SOIC(0.295",7.50mm 寬)
供應商設備封裝: 20-SOIC
包裝: 管件
產(chǎn)品目錄頁面: 684 (CN2011-ZH PDF)
MCP2200
DS22228B-page 20
2011 Microchip Technology Inc.
2.3.1.19
ReadPinValue
Function:
int SimpleIOClass::ReadPinValue(unsigned int pin)
EXAMPLE 2-19:
2.3.1.20
ReadPort
Function:
bool SimpleIOClass::ReadPort(unsigned int *returnvalue)
EXAMPLE 2-20:
Summary:
Reads the specified pin.
Description:
Reads the specified pin and returns the value as the return value. If the pin has been configured as a
digital input, the return value will be either ‘0’ or ‘1’. If an error occurs, the function will return a value
of 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:
pin
- the pin number to set (0-7)
Returns:
This function returns the read value of the pin, or returns a value of 0x8000, if an error occurs.
Remarks:
None.
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
simultaneously, instead of one-by-one.
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:
Pins configured for output return the current state of the port. Pins configured as input read as zero.
unsigned int rv;
if (SimpleIOClass::ReadPinValue(0) != 0x8000)
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Invalid command ” +
SimpleIOClass::LastError;
unsigned int rv;
if (SimpleIOClass::ReadGPIOPort (0, &rv))
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Invalid command ” +
SimpleIOClass::LastError;
相關PDF資料
PDF描述
ATMEGA48-15MZ MCU AVR 4K FLASH 15MHZ 32-QFN
CS82C55A-5Z IC I/O EXPANDER 24B 44PLCC
MCP2200-I/SS IC USB TO UART 20SSOP
CAT9534YI-GT2 IC I/O EXPANDER I2C 8B 16TSSOP
CAT9534WI-GT2 IC I/O EXPANDER I2C 8B 16SOIC
相關代理商/技術參數(shù)
參數(shù)描述
MCP2200-ISS 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:USB 2.0 to UART Protocol Converter with GPIO
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 安裝風格: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 安裝風格: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 安裝風格:SMD/SMT 封裝 / 箱體:WLCSP-20