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

MCP2200_13 参数 Datasheet PDF下载

MCP2200_13图片预览
型号: MCP2200_13
PDF下载: 下载PDF文件 查看货源
内容描述: USB 2.0 UART协议转换器,具有GPIO [USB 2.0 to UART Protocol Converter with GPIO]
分类和应用: 转换器
文件页数/大小: 44 页 / 503 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号MCP2200_13的Datasheet PDF文件第12页浏览型号MCP2200_13的Datasheet PDF文件第13页浏览型号MCP2200_13的Datasheet PDF文件第14页浏览型号MCP2200_13的Datasheet PDF文件第15页浏览型号MCP2200_13的Datasheet PDF文件第17页浏览型号MCP2200_13的Datasheet PDF文件第18页浏览型号MCP2200_13的Datasheet PDF文件第19页浏览型号MCP2200_13的Datasheet PDF文件第20页  
MCP2200  
EXAMPLE 2-8:  
if (SimpleIOClass::fnSuspend(1) == SUCCESS)  
lblStatusBar->Text = “Success”;  
else  
lblStatusBar->Text = “Invalid command ” + SimpleIOClass::LastError;  
2.3.1.9  
fnTxLED  
Function:  
bool SimpleIOClass::fnTxLED (unsigned int mode)  
Summary:  
Configures the Tx LED mode. Tx LED configuration will be stored in NVRAM.  
Sets the Tx LED mode to one of the possible values.  
Description:  
Precondition: VID and PID must be previously set via a call to InitMCP2200(VID, PID).  
Parameters:  
Returns:  
mode (constant): OFF, TOGGLE, BLINKSLOW, BLINKFAST  
This function returns True if the transmission is successful and returns False if the transmission fails.  
Error code is returned in LastError.  
Remarks:  
EXAMPLE 2-9:  
if (SimpleIOClass::fnTxLED (BLINKSLOW) == SUCCESS)  
lblStatusBar->Text = “Success”;  
else  
lblStatusBar->Text = “Invalid command ” + SimpleIOClass::LastError;  
2.3.1.10  
Function:  
fnULoad  
bool SimpleIOClass::fnULoad (unsigned int onOff)  
Summary:  
Configures the GP1 pin of the MCP2200 to show the status of the USB configuration.  
Description:  
When the GP1 is designated to show the USB configuration status, the pin will start low (during  
power-up or after Reset), and it will go high after the MCP2200 is successfully configured by the  
host.  
Precondition:  
Parameters:  
VID and PID must be previously set via a call to InitMCP2200(VID, PID).  
onOff:  
1GP1 will reflect the USB configuration status  
• ‘0’ GP1 will not reflect the USB configuration status (can be used as GPIO)  
Returns:  
This function returns True if the transmission is successful and returns False if the transmission fails.  
Remarks:  
Error code is returned in LastError.  
EXAMPLE 2-10:  
if (SimpleIOClass::fnULoad(1) == SUCCESS)  
lblStatusBar->Text = “Success”;  
else  
lblStatusBar->Text = “Invalid command ” + SimpleIOClass::LastError;  
DS22228B-page 16  
2011 Microchip Technology Inc.