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

MCP2200-I/NQ 参数 Datasheet PDF下载

MCP2200-I/NQ图片预览
型号: MCP2200-I/NQ
PDF下载: 下载PDF文件 查看货源
内容描述: USB 2.0 UART协议转换器,具有GPIO [USB 2.0 to UART Protocol Converter with GPIO]
分类和应用: 转换器
文件页数/大小: 34 页 / 494 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号MCP2200-I/NQ的Datasheet PDF文件第7页浏览型号MCP2200-I/NQ的Datasheet PDF文件第8页浏览型号MCP2200-I/NQ的Datasheet PDF文件第9页浏览型号MCP2200-I/NQ的Datasheet PDF文件第10页浏览型号MCP2200-I/NQ的Datasheet PDF文件第12页浏览型号MCP2200-I/NQ的Datasheet PDF文件第13页浏览型号MCP2200-I/NQ的Datasheet PDF文件第14页浏览型号MCP2200-I/NQ的Datasheet PDF文件第15页  
MCP2200  
Parameters:  
2.3.1.8  
fnTxLED  
IOMap - A byte which represents the input/  
output state of the pins (each bit may be  
either a 1 for input, and 0 for output.  
Baudrate -  
RxLED & TxLED - constant OFF, TOGGLE,  
BLINKSLOW, BLINKFAST  
bool SimpleIOClass::fnTxLED (unsigned int  
mode)  
Summary:  
Configures the TxLED pin function.  
Boolean - HWFlow control, USBCFG, Suspend  
Description:  
Sets the  
Returns:  
Precondition:  
The Vendor and Product ID must have been  
specified by SimpleIOInit.  
Function returns true if the transmission is  
successful, returns False if there the  
transmission fails.  
Parameters:  
mode (constant): OFF, TOGGLE, BLINKSLOW,  
BLINKFAST  
Example:  
<code>  
if (SimpleIOClass::ConfigureMCP2200(0x43,  
9600, BLINKSLOW, BLINKFAST, false, false,  
Returns:  
Function returns true if the transmission is  
successful, returns False if there the  
transmission fails.  
false) == SUCCESS)  
lblStatusBar->Text = "Success";  
else  
lblStatusBar->Text = "Invalid command  
Error code logged in LastError.  
"
</code>  
Example:  
<code>  
2.3.1.7  
fnRxLED  
if (SimpleIOClass::fnTxLED(BLINKFAST) ==  
bool SimpleIOClass::fnRxLED (unsigned int  
mode)  
SUCCESS)  
lblStatusBar->Text = "Success";  
else  
Summary:  
lblStatusBar->Text = "Invalid command  
" + SimpleIOClass::LastError;  
</code>  
Configures the RxLED pin function.  
Description:  
Sets the  
2.3.1.9  
fnHardwareFlowControl  
bool SimpleIOClass::fnHardwareFlowControl  
(unsigned int onOff)  
Precondition:  
The Vendor and Product ID must have been  
specified by SimpleIOInit.  
Summary:  
Configures the device.  
Parameters:  
mode (constant): OFF, TOGGLE, BLINKSLOW,  
BLINKFAST  
Description:  
Sets the  
Returns:  
Precondition:  
The Vendor and Product ID must have been  
specified by SimpleIOInit.  
Function returns true if the transmission is  
successful, returns False if there the  
transmission fails.  
Parameters:  
Error code logged in LastError.  
IOMap - An array of configuration parameters,  
one byte per IO Line  
Example:  
<code>  
Returns:  
Function returns true if the transmission is  
successful, returns False if there the  
transmission fails.  
if (SimpleIOClass::fnRxLED(BLINKFAST) ==  
SUCCESS)  
lblStatusBar->Text = "Success";  
else  
lblStatusBar->Text = "Invalid command  
" + SimpleIOClass::LastError;  
</code>  
2010 Microchip Technology Inc.  
DS22228A-page 11  
 复制成功!