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

MCP2200-I/SO 参数 Datasheet PDF下载

MCP2200-I/SO图片预览
型号: MCP2200-I/SO
PDF下载: 下载PDF文件 查看货源
内容描述: USB 2.0 UART协议转换器,具有GPIO [USB 2.0 to UART Protocol Converter with GPIO]
分类和应用: 转换器网络接口电信集成电路电信电路光电二极管PC
文件页数/大小: 34 页 / 494 K
品牌: MICROCHIP [ MICROCHIP TECHNOLOGY ]
 浏览型号MCP2200-I/SO的Datasheet PDF文件第6页浏览型号MCP2200-I/SO的Datasheet PDF文件第7页浏览型号MCP2200-I/SO的Datasheet PDF文件第8页浏览型号MCP2200-I/SO的Datasheet PDF文件第9页浏览型号MCP2200-I/SO的Datasheet PDF文件第11页浏览型号MCP2200-I/SO的Datasheet PDF文件第12页浏览型号MCP2200-I/SO的Datasheet PDF文件第13页浏览型号MCP2200-I/SO的Datasheet PDF文件第14页  
MCP2200
2.3
Simple Configuration and I/O DLL
A DLL is provided by Microchip to help the user
develop a custom configurator. See the documentation
on the MCP2200 product page for details on
associating the DLL with a Visual C++ project.
While ConfigureMCP2200 configures the device
with one call, it may also be configured one
parameter at a time:
bool SimpleIOClass::fnRxLED (unsigned int
mode)
bool SimpleIOClass::fnTxLED (unsigned int
mode)
bool SimpleIOClass::fnHardwareFlowControl
(unsigned int onOff)
bool SimpleIOClass::fnUSBCFG (unsigned int
onOff)
bool SimpleIOClass::fnSuspend (unsigned int
onOff)
bool SimpleIOClass::fnSetBaudRate (unsigned
long BaudRateParam)
bool SimpleIOClass::ConfigureIO (unsigned
char IOMap)
Constants:
const unsigned
const unsigned
const unsigned
const unsigned
const unsigned
2.3.1
SIMPLE I/O DLL CALLS
The DLL provides the following functions to allow
configuration of the device and control of the I/O.
2.3.1.1
Initialization
void InitMCP2200(VID, PID)
bool IsConnected()
2.3.1.2
Configuration (only needs to be set
once; stored in NVM)
bool ConfigureIOPins(mask)
bool fnRxLED (On/Off, Toggle/Blink, 100/
200mS)
bool fnTxLED (On/Off, Toggle/Blink, 100/
200mS)
bool fnHardwareFlowControl (On/Off)
bool fnUSBcfg(on/off)
bool fnSuspend (on/off)
bool SetBaudRate (baudrate)
bool ConfigureAll (TRISmask, RxLED, TxLED,
RxTGL, TxTGL, LEDX, FLOW, USBCFG, SSPND,
BaudRate)
int
int
int
int
int
OFF = 0;
ON = 1;
TOGGLE = 3;
BLINKSLOW = 4;
BLINKFAST = 5;
2.3.1.5
InitMCP2200
SimpleIOClass::InitMCP2200 (unsigned int
VendorID, unsigned int ProductID)
Configures the Simple IO class for a specific
Vendor and product ID.
Parameters:
Vendor ID - Assigned by USB IF (www.usb.org)
Product ID - Assigned by the Vendor ID
Holder
Returns:
none
Example:
InitMCP2200 (0x04D8, 0x00DF);
2.3.1.3
bool
bool
bool
bool
bool
bool
I/O Control
ClearPin(pinnumber)
ReadPin(pinnumber)
SetPort (portValue)
ReadPort(*portValue)
WriteEEPROM (Address, Data)
ReadEEPROM (Address)
2.3.1.4
Summary
Summary:
SimpleIOClass::InitMCP2200 (unsigned int
VendorID, unsigned int ProductID)
bool SimpleIOClass::ConfigureMCP2200
(unsigned char IOMap,
unsigned long BaudRate,
unsigned int RxLED,
unsigned int TxLED,
bool
Hardware Flow Control,
bool
USBCFG pin function,
bool
Suspend pin function)
bool SimpleIOClass::SetPin(unsigned int pin)
bool SimpleIOClass::ClearPin(unsigned int
pin)
bool SimpleIOClass::ReadPin(unsigned int pin,
unsigned int *returnvalue)
bool SimpleIOClass::WritePort(unsigned int
value)
bool SimpleIOClass::ReadPort(unsigned int
*returnvalue)
2.3.1.6
ConfigureMCP2200
bool SimpleIOClass::ConfigureMCP2200
(unsigned char IOMap,
unsigned long BaudRate,
unsigned int RxLED,
unsigned int TxLED,
bool
Hardware Flow Control,
bool
USBCFG pin function,
bool
Suspend pin function)
Configures the device's default baudrate,
GPIO configuration and pin functions. Other
functions set each parameter one at a time.
This configures the part in one call.
Precondition:
The Vendor and Product ID must have been
specified by SimpleIOInit.
DS22228A-page 10
2010 Microchip Technology Inc.