Electronic Components Datasheet Search
  English  ▼

X  

MCP2200 Datasheet(PDF) 10 Page - Microchip Technology

Part # MCP2200
Description  USB 2.0 to UART Protocol Converter with GPIO
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

MCP2200 Datasheet(HTML) 10 Page - Microchip Technology

Back Button MCP2200 Datasheet HTML 6Page - Microchip Technology MCP2200 Datasheet HTML 7Page - Microchip Technology MCP2200 Datasheet HTML 8Page - Microchip Technology MCP2200 Datasheet HTML 9Page - Microchip Technology MCP2200 Datasheet HTML 10Page - Microchip Technology MCP2200 Datasheet HTML 11Page - Microchip Technology MCP2200 Datasheet HTML 12Page - Microchip Technology MCP2200 Datasheet HTML 13Page - Microchip Technology MCP2200 Datasheet HTML 14Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 34 page
background image
MCP2200
DS22228A-page 10
 2010 Microchip Technology Inc.
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.
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)
2.3.1.3
I/O Control
bool ClearPin(pinnumber)
bool ReadPin(pinnumber)
bool SetPort (portValue)
bool ReadPort(*portValue)
bool WriteEEPROM (Address, Data)
bool 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)
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 int OFF = 0;
const unsigned int ON = 1;
const unsigned int TOGGLE = 3;
const unsigned int BLINKSLOW = 4;
const unsigned int 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.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.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com