參數(shù)資料
型號: ADM00310
廠商: Microchip Technology
文件頁數(shù): 11/44頁
文件大?。?/td> 0K
描述: BOARD EVAL FOR MCP3903 AFE
產(chǎn)品培訓模塊: MCP3903 6-Channel Energy Measurement Analog Front End
設計資源: MCP3903 Eval Brd BOM
MCP3903 Eval Brd Schematic
標準包裝: 1
主要目的: 接口,模擬前端(AFE)
嵌入式: 是,MCU,16 位
已用 IC / 零件: MCP3903,PIC24F,PIC24H,dsPIC33,MCP2200
已供物品: 板,2 個模塊,線纜,CD,電源
2011 Microchip Technology Inc.
DS22228B-page 19
MCP2200
EXAMPLE 2-16:
2.3.1.17
ReadEEPROM
Function:
int SimpleIOClass::ReadEEPROM (unsigned int uiEEPAddress)
EXAMPLE 2-17:
2.3.1.18
ReadPin
Function:
bool SimpleIOClass::ReadPin (unsigned int pin, unsigned int *returnvalue)
EXAMPLE 2-18:
Summary:
Reads a byte from the EEPROM.
Description:
Reads a byte from the EEPROM at the given address.
Precondition:
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 InitMCP2200(VID, PID).
Parameters:
uiEEPAddress
- the EEPROM address location we need to write to (must be from 0 to 255, inclu-
sively).
Returns:
This function returns any positive value as being the EEPROM’s location value:
E_WRONG_ADDRESS (-3) - in case the given EEPROM address is out of range
E_CANNOT_SEND_DATA (-4) - in case the function cannot send the command to the device
Remarks:
None.
Summary:
Reads the specified pin.
Description:
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 ‘0’ or ‘1’.
Precondition:
Must be previously configured as an input via a ConfigureIO call.
VID and PID must be previously set via a call to InitMCP2200(VID, PID).
Parameters:
pin - the pin number to set (0-7)
returnvalue - the value read on the pin (‘0’ or ‘1’)
Returns:
This function returns True if the transmission is successful and returns False if the transmission fails.
Remarks:
None.
unsigned int rv;
if (SimpleIOClass::IsConnected ())
{
lblStatusBar->Text = “Device connected”;
}
else
lblStatusBar->Text = “Device Disconnected”;
int iRetValue = SimpleIOClass::ReadEEPROM(0x01);
if (iRetValue >= 0)
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Error reading to EEPROM” +
SimpleIOClass::LastError;
unsigned int rv;
if (SimpleIOClass::ReadGPIOn (0, &rv))
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Invalid command ” +
SimpleIOClass::LastError;
相關PDF資料
PDF描述
ELC-18B182L COIL CHOKE 1800UH RADIAL
GBM36DRTH CONN EDGECARD 72POS DIP .156 SLD
RCM12DRYF CONN EDGECARD 24POS DIP .156 SLD
RBM12DRTF-S13 CONN EDGECARD 24POS .156 EXTEND
M1BXA-4036J IDC CABLE - MSR40A/MC40G/X
相關代理商/技術參數(shù)
參數(shù)描述
ADM00313 功能描述:電源管理IC開發(fā)工具 73830L Li-Ion Battry Charger Eval Brd RoHS:否 制造商:Maxim Integrated 產(chǎn)品:Evaluation Kits 類型:Battery Management 工具用于評估:MAX17710GB 輸入電壓: 輸出電壓:1.8 V
ADM00317 功能描述:數(shù)據(jù)轉(zhuǎn)換 IC 開發(fā)工具 MCP47X6 PICtail Plus Daughter Board RoHS:否 制造商:Texas Instruments 產(chǎn)品:Demonstration Kits 類型:ADC 工具用于評估:ADS130E08 接口類型:SPI 工作電源電壓:- 6 V to + 6 V
ADM00333 功能描述:開發(fā)板和工具包 - PIC / DSPIC PIC18F87J72 Evaluation Board RoHS:否 制造商:Microchip Technology 產(chǎn)品:Starter Kits 工具用于評估:chipKIT 核心:Uno32 接口類型: 工作電源電壓:
ADM00344 功能描述:電源管理IC開發(fā)工具 RE46C190 Demo Board RoHS:否 制造商:Maxim Integrated 產(chǎn)品:Evaluation Kits 類型:Battery Management 工具用于評估:MAX17710GB 輸入電壓: 輸出電壓:1.8 V
ADM00345 功能描述:電源管理IC開發(fā)工具 3-Phase BLDC Snsrlss Fan Cntrllr RoHS:否 制造商:Maxim Integrated 產(chǎn)品:Evaluation Kits 類型:Battery Management 工具用于評估:MAX17710GB 輸入電壓: 輸出電壓:1.8 V