| Electronic Components Datasheet Search |
|
MCP2200 Datasheet(PDF) 10 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP2200 Datasheet(HTML) 10 Page - Microchip Technology |
|
10 / 34 page ![]() 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. |
|
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 |
| 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 |