欢迎访问ic37.com |
会员登录 免费注册
发布采购

MCP2200-I/SS 参数 Datasheet PDF下载

MCP2200-I/SS图片预览
型号: MCP2200-I/SS
PDF下载: 下载PDF文件 查看货源
内容描述: USB 2.0 UART协议转换器,具有GPIO [USB 2.0 to UART Protocol Converter with GPIO]
分类和应用: 转换器网络接口电信集成电路电信电路光电二极管
文件页数/大小: 34 页 / 494 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号MCP2200-I/SS的Datasheet PDF文件第9页浏览型号MCP2200-I/SS的Datasheet PDF文件第10页浏览型号MCP2200-I/SS的Datasheet PDF文件第11页浏览型号MCP2200-I/SS的Datasheet PDF文件第12页浏览型号MCP2200-I/SS的Datasheet PDF文件第14页浏览型号MCP2200-I/SS的Datasheet PDF文件第15页浏览型号MCP2200-I/SS的Datasheet PDF文件第16页浏览型号MCP2200-I/SS的Datasheet PDF文件第17页  
MCP2200  
Precondition:  
The Vendor and Product ID must have been  
specified by SimpleIOInit.  
2.3.1.15  
ClearPin  
bool SimpleIOClass::ClearPin(unsigned int  
pin)  
Parameters:  
Summary:  
Clears the specified pin.  
IOMap - one byte, with each bit corresponding  
to each GP pin. 0 for output, 1 for input.  
Description:  
Sets the specified pin to zero.  
Returns:  
Function returns true if the transmission is  
successful, returns False if there the  
transmission fails.  
Precondition:  
Must have previously been configured as an  
output via a ConfigureGPIO call.  
Example:  
<code>  
Parameters:  
pin - The pin number to set (0-7)  
if  
(SimpleIOClass::ConfigureGPIO(OutputPacketBuf  
fer) == SUCCESS)  
Returns:  
Function returns true if the transmission is  
successful, returns False if there the  
transmission fails.  
lblStatusBar->Text = "Success";  
else  
lblStatusBar->Text = "Invalid command  
" + SimpleIOClass::LastError;  
</code>  
Example:  
<code>  
if (SimpleIOClass::ClearPin (2))  
{
2.3.1.14  
SetPin  
bool SimpleIOClass::SetPin(unsigned int pin)  
lblStatusBar->Text = "Success";  
}
Summary:  
else  
Sets the specified pin.  
lblStatusBar->Text = "Invalid command  
" + SimpleIOClass::LastError;  
</code>  
Description:  
Sets the specified pin to one.  
Remarks:  
none  
Precondition:  
Must have previously been configured as an  
output via a ConfigureGPIO call.  
2.3.1.16  
ReadPin  
bool SimpleIOClass::ReadPin(unsigned int pin,  
unsigned int *returnvalue)  
Parameters:  
pin - The pin number to set (0-7)  
Summary:  
Returns:  
Reads the specified pin.  
Function returns true if the transmission is  
successful, returns False if there the  
transmission fails.  
Description:  
Reads the specified pin and returns the value  
in returnvalue. If the pin has been  
configured as Digital Input, the return value  
will be either 0 or 1. If the pin has been  
configured as Analog Input, the pin will be  
read by the ADC and return a 10 bit value,  
right justified.  
Example:  
<code>  
if (SimpleIOClass::SetPin (2))  
{
lblStatusBar->Text = "Success";  
}
else  
Precondition:  
Must have previously been configured as an  
input via a ConfigureGPIO call.  
lblStatusBar->Text = "Invalid command  
" + SimpleIOClass::LastError;  
</code>  
Parameters:  
pin - The pin number to set (0-7)  
returnvalue - the value read on the pin (0 or  
1)  
Remarks:  
none  
2010 Microchip Technology Inc.  
DS22228A-page 13  
 复制成功!