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

MCP2200T-I/SO 参数 Datasheet PDF下载

MCP2200T-I/SO图片预览
型号: MCP2200T-I/SO
PDF下载: 下载PDF文件 查看货源
内容描述: USB 2.0 UART协议转换器,具有GPIO [USB 2.0 to UART Protocol Converter with GPIO]
分类和应用: 转换器
文件页数/大小: 34 页 / 494 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号MCP2200T-I/SO的Datasheet PDF文件第10页浏览型号MCP2200T-I/SO的Datasheet PDF文件第11页浏览型号MCP2200T-I/SO的Datasheet PDF文件第12页浏览型号MCP2200T-I/SO的Datasheet PDF文件第13页浏览型号MCP2200T-I/SO的Datasheet PDF文件第15页浏览型号MCP2200T-I/SO的Datasheet PDF文件第16页浏览型号MCP2200T-I/SO的Datasheet PDF文件第17页浏览型号MCP2200T-I/SO的Datasheet PDF文件第18页  
MCP2200  
Returns:  
2.3.1.18  
ReadPort  
true if the pin was successfully read.  
false if the pin was not read (not  
configued as an input).  
bool SimpleIOClass::ReadPort(unsigned int  
*returnvalue)  
Summary:  
Example:  
Reads the GPIO port as digital input.  
<code>  
unsigned int rv;  
if (SimpleIOClass::ReadGPIOn (0, &rv))  
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.  
{
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:  
returnvalue - the value read on the port.  
2.3.1.17  
WritePort  
bool SimpleIOClass::WritePort(unsigned int  
portValue)  
Returns:  
Function returns true if the read is  
Summary:  
successful  
Writes a value to the GPIO port.  
returns False if there the transmission  
fails.  
Description:  
Writes the GPIO port. This provides a means  
to write all pins at once instead of one-at-  
a-time.  
Example:  
<code>  
unsigned int rv;  
if (SimpleIOClass::ReadGPIOPort (&rv))  
Precondition:  
{
Must have previously been configured as an  
output via a ConfigureGPIO call.  
lblStatusBar->Text = "Success";  
}
else  
Parameters:  
portValue - Byte value to set on the port.  
lblStatusBar->Text = "Invalid command  
" + SimpleIOClass::LastError;  
</code>  
Returns:  
Function returns true if the transmission is  
Remarks:  
successful  
returns False if there the transmission  
fails.  
Pins configured for output returns the  
current state of the port.  
Pins configured as input read as zero.  
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.  
DS22228A-page 14  
2010 Microchip Technology Inc.