ADM00310 Microchip Technology, ADM00310 Datasheet - Page 22

no-image

ADM00310

Manufacturer Part Number
ADM00310
Description
BOARD EVAL FOR MCP3903 AFE
Manufacturer
Microchip Technology
Series
-r
Datasheets

Specifications of ADM00310

Design Resources
MCP3903 Eval Brd BOM MCP3903 Eval Brd Schematic
Main Purpose
Interface, Analog Front End (AFE)
Embedded
Yes, MCU, 16-Bit
Utilized Ic / Part
MCP3903, PIC24F, PIC24H, dsPIC33, MCP2200
Primary Attributes
-
Secondary Attributes
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MCP2200
2.3.1.23
Function:
bool SimpleIOClass::SetPin(unsigned int pin)
EXAMPLE 2-23:
2.3.1.24
Function:
int SimpleIOClass::WriteEEPROM(unsigned int uiEEPAddress, unsigned char ucValue)
EXAMPLE 2-24:
DS22228B-page 22
Summary:
Description:
Precondition:
Parameters:
Returns:
Remarks:
Summary:
Description:
Precondition:
Parameters:
Returns:
Remarks:
int iRetValue = SimpleIOClass::WriteEEPROM(0x01, 0xAB);
if (SimpleIOClass::SetPin (2))
{
}
else
if (iRetValue == 0)
{
}
else
lblStatusBar->Text = “Success”;
lblStatusBar->Text = “Invalid command ” +
lblStatusBar->Text = “Success”;
lblStatusBar->Text = “Error writting to EEPROM” +
SetPin
WriteEEPROM
Sets the specified pin.
Sets the specified pin to logic
Must be previously configured as an output via a
VID and PID must be previously set via a call to
pin - the pin number to set (0-7)
This function returns True if the transmission is successful and returns False if the transmission fails.
None.
Writes a byte into the MCP2200’s EEPROM.
Writes a byte at the given address into the internal 256 bytes EEPROM.
At least one call to the InitMCP2200() is required in order to initiate a DLL search for the
compatible devices. VID and PID must be previously set via a call to
This function returns ‘0’ if the write command was successfully sent to the device, otherwise it
returns:
The function will send the write EEPROM command, but has no confirmation whether the EEPROM
location was actually written. In order to verify the correctness of the EEPROM write, the user can
issue a
uiEEPAddress
inclusively).
ucValue
E_WRONG_ADDRESS (-3)
E_CANNOT_SEND_DATA (-4)
SimpleIOClass::ReadEEPROM()
- the byte value required for writing to the given location.
- the EEPROM address location we need to write to (must be from 0 to 255
in case the given EEPROM address is out of range
‘1’
in case the function cannot send the command to the device.
.
and check if the returned value matches the written one.
SimpleIOClass::LastError;
InitMCP2200(VID, PID)
ConfigureIO or ConfigureIoDefaultOutput
SimpleIOClass::LastError;
InitMCP2200(VID, PID)
 2011 Microchip Technology Inc.
.
.
call.

Related parts for ADM00310