Datasheet

Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 19 of 35
JF-02 SCL5
JF-03 SDA5
11.1 On-Board I
2
C Peripheral Device
The chipKIT Pro MX7 provides one on-board I
2
C peripheral device, a Microchip 24LC256 serial EEPROM. This
device is connected to I2C2. The 24LC256 is a 256Kbit (32Kbyte) serial EEPROM device to provide non-volatile
memory storage. The device address for the 24LC256 is 1010000 (0x50).
When using the MPIDE software, this device can be accessed using the Wire library Wire object, or using the
DTWI library via the DTWI1 object class.
Refer to the Microchip data sheet for detailed information on the operation of this device.
12 Analog Inputs
The PIC32MX795 microcontroller provides a 10-bit analog to digital (A/D) converter that provides up to sixteen
analog inputs. The chipKIT Pro MX7 board provides access to 10 of these inputs via the Pmod connectors. The
converted values produced by the A/D converter will be in the range 01023.
For detailed information on the operation and use of the A/D converter, refer to the PIC32 Family Reference
Manual, Section 17, 10-bit AD Converter.
The analog inputs are accessed using the analogRead() function in the MPIDE software. The analog input pin
number is specified using the symbols A0A9. The digital pin numbers for the pins or the numbers 09 can also be
used, but using the symbols A0A9 is recommended.
The following gives the Pmod connector position, digital pin number, microcontroller I/O port, and bit number for
the analog inputs:
A0 JA-01, digital pin 0, RB02
A1 JA-02, digital pin 1, RB03
A2 JA-03, digital pin 2, RB04
A3 JA-04, digital pin 3, RB06
A4 JA-07, digital pin 4, RB07
A5 JA-08, digital pin 5, RB08
A6 JA-09, digital pin 6, RB09
A7 JA-10, digital pin 7, RB10
A8 JC-07, digital pin 20, RB15
A9 JC-10, digital pin 23, RB14
12.1 A/D Converter Voltage Reference
The PIC32 microcontroller provides two voltage reference inputs to the analog to digital converter. Vref- is used
set the lower reference level and Vref+ is used to set the upper reference level. These references can be connected
to internal references or to external references using two of the analog input pins.