ADM00310 Microchip Technology, ADM00310 Datasheet - Page 19

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
EXAMPLE 2-16:
2.3.1.17
Function:
int SimpleIOClass::ReadEEPROM (unsigned int uiEEPAddress)
EXAMPLE 2-17:
2.3.1.18
Function:
bool SimpleIOClass::ReadPin (unsigned int pin, unsigned int *returnvalue)
EXAMPLE 2-18:
 2011 Microchip Technology Inc.
Summary:
Description:
Precondition:
Parameters:
Returns:
Remarks:
Summary:
Description:
Precondition:
Parameters:
Returns:
Remarks:
int iRetValue = SimpleIOClass::ReadEEPROM(0x01);
unsigned int rv;
if (SimpleIOClass::IsConnected ())
{
}
else
if (iRetValue >= 0)
{
}
else
if (SimpleIOClass::ReadGPIOn (0, &rv))
{
}
else
unsigned int rv;
lblStatusBar->Text = “Device connected”;
lblStatusBar->Text = “Device Disconnected”;
lblStatusBar->Text = “Success”;
lblStatusBar->Text = “Error reading to EEPROM” +
lblStatusBar->Text = “Success”;
lblStatusBar->Text = “Invalid command ” +
ReadEEPROM
ReadPin
Reads a byte from the EEPROM.
Reads a byte from the EEPROM at the given address.
At least one call to the
devices. VID and PID must be previously set via a call to
uiEEPAddress
sively).
This function returns any positive value as being the EEPROM’s location value:
None.
Reads the specified pin.
Reads the specified pin and returns the value in returnvalue. If the pin has been configured as a
digital input, the return value will be either ‘
Must be previously configured as an input via a
VID and PID must be previously set via a call to
This function returns True if the transmission is successful and returns False if the transmission fails.
None.
E_WRONG_ADDRESS (-3)
E_CANNOT_SEND_DATA (-4)
pin
returnvalue
- the pin number to set (0-7)
- the EEPROM address location we need to write to (must be from 0 to 255, inclu-
- the value read on the pin (‘
InitMCP2200()
- in case the given EEPROM address is out of range
- in case the function cannot send the command to the device
is required in order to initiate a DLL search for the compatible
0
’ or ‘
0
’ or ‘
SimpleIOClass::LastError;
ConfigureIO
1
InitMCP2200(VID, PID)
’.
1
’)
SimpleIOClass::LastError;
InitMCP2200(VID, PID)
call.
.
MCP2200
.
DS22228B-page 19

Related parts for ADM00310