ADM00310 Microchip Technology, ADM00310 Datasheet - Page 13

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
2.3.1.2
Function:
bool SimpleIOClass::ConfigureIO (unsigned char IOMap)
EXAMPLE 2-2:
2.3.1.3
Function:
bool SimpleIOClass::ConfigureIoDefaultOutput (unsigned char ucIoMap, unsigned char ucDefValue)
EXAMPLE 2-3:
 2011 Microchip Technology Inc.
Summary:
Description:
Precondition:
Parameters:
IOMap - a byte that represents a bitmap of the GPIO configuration:
• a bit set to ‘
• a bit set to ‘
• MSB
Returns:
Remarks:
Summary:
Description:
Precondition:
Parameters:
1.
2.
Returns:
Remarks:
if (SimpleIOClass::ConfigureIoDefaultOutput(IoMap, DefValue) == SUCCESS)
GP7 GP6 GP5 GP4 GP3 GP2 GP1 GP0
ucIoMap
ucDefValue
outputs).
if (SimpleIOClass::ConfigureIO(0xA5) == SUCCESS)
else
else
• ‘
• ‘
• MSB
1
0
GP7 GP6 GP5 GP4 GP3 GP2 GP1 GP0
lblStatusBar->Text = “Success”;
lblStatusBar->Text = “Invalid command ” + SimpleIOClass::LastError;
’ configures GPIO as input
’ configures GPIO as output
lblStatusBar->Text = “Success”;
lblStatusBar->Text = “Invalid command ” + SimpleIOClass::LastError;
ConfigureIO
ConfigureIoDefaultOutput
- a byte that represents a bitmap used to set the GPIOs as either input or output.
1
0
’ will be a digital input
’ will be a digital output
Configures the IO pins for Digital Input, Digital Output and also the default output latch value.
IO Pins can be configured as Digital Input, Digital Output. The default output latch value is received
as a parameter.
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.
Error code is returned in
Configures the GPIO pins for Digital Input, Digital Output.
GPIO Pins can be configured as Digital Input, Digital Output.
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.
Error code is returned in
- the default value that will be loaded to the output latch (affects only the pins configured as
LastError
LastError
LSB
LSB
.
.
InitMCP2200(VID, PID)
InitMCP2200(VID, PID)
.
.
MCP2200
DS22228B-page 13

Related parts for ADM00310